Period: {{ \Carbon\Carbon::parse($from)->format('d M Y') }} — {{ \Carbon\Carbon::parse($to)->format('d M Y') }}
Generated on: {{ now()->format('d M Y, h:i A') }}
| # | Receipt No | Date | Devotee | Vazhipad(s) | Method | Status | Amount (₹) |
|---|---|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $r->id }} | {{ optional($r->receipt_date)->format('d-m-Y') ?? optional($r->created_at)->format('d-m-Y') ?? '—' }} | {{ $r->devotee_name ?? '—' }} | {{-- Reads from new (devotees.items) AND old (items) tables --}}{{ $r->vazhipad_names ?: '—' }} | {{ ucfirst($r->payment_method ?? '—') }} | {{ ucfirst($r->payment_status ?? '—') }} | {{ number_format($r->total_amount ?? 0, 2) }} |
| No receipts found. | |||||||
| Grand Total | ₹{{ number_format($receipts->sum('total_amount'), 2) }} | ||||||