Receipts Report

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') }}

Total Receipts
{{ $receipts->count() }}
Total Amount
₹{{ number_format($receipts->sum('total_amount'), 2) }}
Paid
{{ $receipts->where('payment_status','paid')->count() }}
Pending
{{ $receipts->where('payment_status','pending')->count() }}
@forelse($receipts as $i => $r) {{-- Reads from new (devotees.items) AND old (items) tables --}} @empty @endforelse
# 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 ?? '—' }}{{ $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) }}