@php $rec = $data['receivables']; @endphp

Total receivable

{{ \App\Support\Format::mwk($rec['total_receivable']) }}

Overdue

{{ \App\Support\Format::mwk($rec['overdue_amount']) }}

Current

{{ \App\Support\Format::mwk($rec['current_receivable']) }}

Largest debtor

{{ $rec['largest_debtor']?->name ?? '—' }}

@forelse($rec['rows'] as $wrap) @php $inv = $wrap['invoice']; @endphp @empty @endforelse
Client Invoice # Project Invoice date Due date Total Paid Balance Aging Status
{{ $inv->client?->name ?? '—' }} {{ $inv->invoice_number }} {{ $inv->project?->name ?? '—' }} {{ optional($inv->invoice_date)?->format('Y-m-d') }} {{ optional($inv->due_date)?->format('Y-m-d') }} {{ \App\Support\Format::mwkDecimal($inv->total_amount) }} {{ \App\Support\Format::mwkDecimal($inv->paid_amount) }} {{ \App\Support\Format::mwkDecimal($inv->balance_due) }} {{ $wrap['aging_bucket'] }} {{ $inv->status }}
No outstanding receivables for this view.
@if(count($rec['warnings'])) @foreach($rec['warnings'] as $w)
{{ $w }}
@endforeach @endif