@php $logoDataUri = $company->logoDataUri(); $bankingLines = $company->bankingDetailsLines('the relevant invoice number'); $legalIdentityLines = $company->legalIdentityLines(); $statusClass = fn (string $status) => match ($status) { 'paid' => '#166534', 'sent' => '#2563eb', 'overdue' => '#dc2626', default => '#475569', }; @endphp
{{ strtoupper($company->business_name) }}
@endif{{ $company->email }}{{ $company->phone ? ' - '.$company->phone : '' }}
@foreach ($legalIdentityLines as $line){{ $line['label'] }}: {{ $line['value'] }}
@endforeachStatement of account for invoices, payments, credits, and outstanding balances in the selected period.
| Invoice | Due | Total | Paid | Balance | Status |
|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->due_date->format('d M Y') }} | R {{ number_format($invoice->grand_total, 2) }} | R {{ number_format($invoice->totalPaid(), 2) }} | R {{ number_format($invoice->remainingBalance(), 2) }} | {{ ucfirst($invoice->status) }} |
| Invoice | Issue | Due | Total | Paid | Balance | Status |
|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->issue_date->format('d M Y') }} | {{ $invoice->due_date->format('d M Y') }} | R {{ number_format($invoice->grand_total, 2) }} | R {{ number_format($invoice->totalPaid(), 2) }} | R {{ number_format($invoice->remainingBalance(), 2) }} | {{ ucfirst($invoice->status) }} |
| Date | Credit note | Invoice | Type | Status | Amount |
|---|---|---|---|---|---|
| {{ $creditNote->issue_date->format('d M Y') }} | {{ $creditNote->credit_note_number }} | {{ $creditNote->invoice?->invoice_number ?? 'No invoice' }} | {{ $creditNote->typeLabel() }} | {{ $creditNote->statusLabel() }} | R {{ number_format($creditNote->amount, 2) }} |
| Date | Invoice | Method | Reference | Amount |
|---|---|---|---|---|
| {{ $payment->payment_date->format('d M Y') }} | {{ $payment->invoice->invoice_number }} | {{ $payment->methodLabel() }} | {{ $payment->payment_reference ?: 'No reference' }} | R {{ number_format($payment->amount_paid, 2) }} |