@if($documents['installment_invoices']->count())
| Invoice # |
Installment # |
Flat |
Due Date |
Amount Due |
Late Fee |
Status |
PDF |
@foreach($documents['installment_invoices'] as $inv)
| {{ $inv->invoice_number }} |
#{{ $inv->installment?->installment_number ?? '—' }} |
{{ $inv->flat?->flat_number ?? '—' }} |
{{ $inv->due_date?->format('d M Y') ?? '—' }} |
৳ {{ number_format((float) $inv->amount_due, 2) }} |
৳ {{ number_format((float) $inv->late_fee, 2) }}
|
@php
$statusClass = match ($inv->installment_status ?? 'pending') {
'paid' => 'badge-active',
'overdue' => 'badge-inactive',
'partial' => 'bg-warning text-dark',
'voided' => 'bg-dark',
default => 'bg-secondary',
};
@endphp
{{ ucfirst($inv->installment_status ?? 'pending') }}
|
|
@endforeach
@else
No installment invoices yet.
@endif