@extends('temple.layouts.app') @section('title', 'Daily Report') @section('content') {{-- Date Filter --}}
{{-- Summary Cards --}}
{{ $totalReceipts }}
Total Receipts
₹{{ number_format($totalAmount, 2) }}
Total Amount
{{-- Transactions Table --}}

Daily Transactions

₹{{ number_format($receipts->sum('total_amount'), 2) }}
@forelse($receipts as $i => $receipt) {{-- Reads from new (devotees.items) AND old (items) tables --}} @empty @endforelse @if($receipts->isNotEmpty()) @endif
# Receipt No Devotee Vazhipad(s) Payment Method Status Amount
{{ $i + 1 }} {{ $receipt->id }} {{ $receipt->devotee_name ?? '—' }}{{ $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) }}
@endsection