@extends('temple.layouts.app') @section('title', 'Daily Report') @section('content')
Temple transactions for {{ \Carbon\Carbon::parse($date)->format('d F Y') }}
| # | Receipt No | Devotee | Vazhipad(s) | Payment Method | Status | Amount |
|---|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $receipt->id }} | {{ $receipt->devotee_name ?? '—' }} | {{-- Reads from new (devotees.items) AND old (items) tables --}}{{ $receipt->vazhipad_names ?: '—' }} | {{ ucfirst($receipt->payment_method ?? '—') }} | {{ ucfirst($receipt->payment_status ?? '—') }} | ₹{{ number_format($receipt->total_amount ?? 0, 2) }} |
| No transactions found for this date. | ||||||
| Grand Total | ₹{{ number_format($receipts->sum('total_amount'), 2) }} | |||||