Customer Summary

{{ $customer->name }} @if($customer->mobile) ({{ $customer->mobile }}) @endif

Back
Total Due Balance
{{ number_format($summary['total_due'] ?? 0, 2) }}
Total Amount
{{ number_format($summary['total_amount'] ?? 0, 2) }}
Total Payment
{{ number_format($summary['total_paid'] ?? 0, 2) }}

Invoices

@if($invoices->isEmpty())

No invoices for this customer.

@else
@foreach($invoices as $invoice) @php $payment = ($invoice->paid_cash ?? 0) + ($invoice->paid_pos ?? 0) + ($invoice->paid_credit ?? 0); $due = $invoice->current_balance ?? (($invoice->total ?? 0) - $payment); @endphp @endforeach
Invoice Time User Amount Payment Due Balance  
{{ $invoice->invoice_number ?? ('INV-'.$invoice->id) }}
{{ optional($invoice->created_at)->format('Y/m/d h:i A') }} {{ $invoice->user->name ?? '—' }} {{ number_format($invoice->total ?? 0, 2) }} {{ number_format($payment, 2) }} {{ number_format($due, 2) }} Print
@endif