Periode: {{ $request->start_date }} s/d {{ $request->end_date }}
Total Lunas: Rp {{ number_format($summary['totalPaid'], 0, ',', '.') }}
Total Belum Bayar: Rp {{ number_format($summary['totalUnpaid'], 0, ',', '.') }}
Jumlah Transaksi: {{ $summary['totalTransactions'] }}
| No | ID Tagihan | Pelanggan | Total (Rp) | Status | Metode | Tgl Dibuat | Tgl Dibayar |
|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $inv->invoice_number }} | {{ $inv->user->name ?? '-' }} | {{ number_format($inv->total_amount, 0, ',', '.') }} | {{ $inv->status }} | {{ $inv->payment_method ?? '-' }} | {{ $inv->created_at->format('d M Y') }} | {{ $inv->paid_at ? $inv->paid_at->format('d M Y') : '-' }} |