Client Ageing Statement

Customer: {{ $customer->name }}
Email: {{ $customer->email }}
Company: {{ $company->name }}
Generated: {{ $company->formatLocalizedDateTime($generatedAt) }}

Ageing Summary (open invoices)

Buckets reflect unpaid invoice balances only.

Current 30 Days 60 Days 90+ Days Invoice balance
{{ number_format((float) $totals['current'], 2) }} {{ number_format((float) $totals['days_30'], 2) }} {{ number_format((float) $totals['days_60'], 2) }} {{ number_format((float) $totals['days_90_plus'], 2) }} {{ number_format((float) $totals['total_balance'], 2) }}

Overall position

Outstanding on open invoices {{ number_format((float) $totals['total_balance'], 2) }}
Unapplied credit notes ({{ number_format((float) ($totals['unapplied_credit_total'] ?? 0), 2) }})
Net amount due {{ number_format((float) ($totals['net_balance'] ?? $totals['total_balance']), 2) }}

Open Invoices (Unpaid)

@forelse ($rows as $row) @empty @endforelse
Invoice Invoice Date Due Date Status Invoice Total Payments Balance Bucket
{{ $row['invoice_number'] }} {{ $company->formatLocalizedDate($row['invoice_date'] ?? null) }} {{ $company->formatLocalizedDate($row['due_date'] ?? null) }} {{ $row['status'] }} {{ number_format((float) $row['total'], 2) }} {{ number_format((float) $row['payments'], 2) }} {{ number_format((float) $row['balance'], 2) }} @if ($row['bucket'] === 'current') Current @elseif ($row['bucket'] === 'days_30') 30 Days @elseif ($row['bucket'] === 'days_60') 60 Days @else 90+ Days @endif
No open invoices found for this company.

Unapplied credit notes

Credit not yet allocated to invoices (or remaining after allocations).

@forelse ($creditNoteRows as $cn) @empty @endforelse
Credit note Date Status Note total Remaining credit
{{ $cn['credit_note_number'] }} {{ $company->formatLocalizedDate($cn['credit_note_date'] ?? null) }} {{ $cn['status'] }} {{ number_format((float) $cn['total'], 2) }} {{ number_format((float) $cn['remaining_credit'], 2) }}
No unapplied credit notes for this company.

Listed document totals

Open invoice gross Payments on listed invoices Outstanding on listed invoices
{{ number_format((float) $totals['invoice_total'], 2) }} {{ number_format((float) $totals['payments_total'], 2) }} {{ number_format((float) $totals['total_balance'], 2) }}