@php $pay = $data['payables']; @endphp

Total payable

{{ \App\Support\Format::mwk($pay['total_payable']) }}

Supplier bills

{{ \App\Support\Format::mwk($pay['bill_total']) }}

Payroll payable

{{ \App\Support\Format::mwk($pay['payroll_payable']) }}

Largest supplier

{{ $pay['largest_supplier']?->name ?? '—' }}

@forelse($pay['rows'] as $r) @if($r['type'] === 'bill') @php $bill = $r['bill']; @endphp @else @php $run = $r['payroll_run']; @endphp @endif @empty @endforelse
Payee Reference Project Date Due Total Paid Balance Aging
{{ $r['supplier']?->name ?? '—' }} {{ $bill->bill_number }} {{ $r['project']?->name ?? '—' }} {{ optional($bill->bill_date)?->format('Y-m-d') }} {{ optional($bill->due_date)?->format('Y-m-d') }} {{ \App\Support\Format::mwkDecimal($bill->total_amount) }} {{ \App\Support\Format::mwkDecimal($bill->paid_amount) }} {{ \App\Support\Format::mwkDecimal($bill->balance_due) }} {{ $r['aging_bucket'] }}
Payroll {{ $r['label'] }} {{ optional($run->period_end)?->format('Y-m-d') }} {{ \App\Support\Format::mwkDecimal($run->total_net) }} {{ \App\Support\Format::mwkDecimal($run->total_net) }} current
No payables for this view.
@if(count($pay['warnings'])) @foreach($pay['warnings'] as $w)
{{ $w }}
@endforeach @endif