Date: {{ date('F j, Y') }}
Period: {{ $dateFrom }} to {{ $dateTo }}
Total Outstanding: {{ number_format($metrics['totalOutstanding'], 2) }}
Overdue Amount: {{ number_format($metrics['overdueAmount'], 2) }}
Total Invoices: {{ $metrics['totalInvoices'] }}
Average Days Overdue: {{ $metrics['avgDaysOverdue'] }}
| Client Name | Invoice # | Invoice Date | Due Date | Total Amount | Paid Amount | Balance Due | Status | Days Overdue | Currency |
|---|---|---|---|---|---|---|---|---|---|
| {{ $invoice->customer->full_name ?? 'N/A' }} | {{ $invoice->invoice_number }} | {{ optional($invoice->invoice_date)->format('Y-m-d') }} | {{ optional($invoice->due_date_computed)->format('Y-m-d') }} | {{ number_format((float) $invoice->total, 2) }} | {{ number_format((float) ($invoice->paid_amount ?? 0), 2) }} | {{ number_format((float) ($invoice->balance_due ?? 0), 2) }} | {{ ucfirst(str_replace('_', ' ', $invoice->status_label ?? 'unpaid')) }} | {{ (int) ($invoice->days_overdue ?? 0) }} | {{ $invoice->currency->currency_code ?? 'N/A' }} |
| No outstanding fees found. | |||||||||