@extends('customers.layout') @section('customers.content')
| ID: | {{$customer->id}} |
|---|---|
| Name: | {{ $customer->name ?: "-" }} |
| Contact: | {{ $customer->contact ?: "-" }} |
| Alt Contact: | {{ $customer->alt_contact ?: "-" }} |
| Balance: | {{ $customer->balance ?: "-" }} |
| Created at | {{Carbon\Carbon::parse($customer->created_at)->format('d/m/Y H:i:s')}} |
| Updated at | {{Carbon\Carbon::parse($customer->updated_at)->format('d/m/Y H:i:s')}} |
| Date | Branch | Receipt No. | Amount | @foreach($customer->credits as $credit)
|---|---|---|---|
| {{ date('d-M-Y',strtotime($credit->date)) }} | {{ $credit->branch?->name }} | {{ $credit->receipt_no }} | UGX {{ (($credit->amount)?number_format($credit->amount) : 0) }} |
| Date | Amount | Balance | @foreach($customer->payments as $payment)
|---|---|---|
| {{ date('d-M-Y',strtotime($payment->date)) }} | {{ (($payment->amount)?number_format($payment->amount) : '0') }} | {{ (($payment->amount)?number_format($payment->balance):'0') }} |