{{ $title ?? 'Season Daily Collection Summary Report' }}

Generated Date: {{ $generatedDate ?? now()->format('d/m/Y H:i') }} Date Filter: {{ $dateRange ?: 'All Dates' }}
Parking Site: {{ $siteName ?? 'All Accessible Sites' }} Total Days: {{ count($dailySummary) }} days
@php $configuredRates = $configuredRates ?? collect(); $colTotals = []; foreach ($configuredRates as $rate) { $colTotals[$rate->key] = [ 'amount' => $dailySummary->sum(fn($row) => $row->rate_breakdown[$rate->key]['amount'] ?? 0), 'count' => $dailySummary->sum(fn($row) => $row->rate_breakdown[$rate->key]['count'] ?? 0), ]; } $othersTotalAmount = $dailySummary->sum(fn($row) => $row->others['amount'] ?? 0); $othersTotalCount = $dailySummary->sum(fn($row) => $row->others['count'] ?? 0); @endphp @foreach ($configuredRates as $rate) @endforeach @forelse ($dailySummary as $i => $row) @php $carbonDate = \Carbon\Carbon::parse($row->trx_date); @endphp @foreach ($configuredRates as $rate) @php $rateData = $row->rate_breakdown[$rate->key] ?? ['amount' => 0, 'count' => 0]; @endphp @endforeach @empty @endforelse @foreach ($configuredRates as $rate) @endforeach
# Date Day{{ $rate->label }}
(RM/Count)
Others
(RM/Count)
Total (RM) Count
{{ $i + 1 }} {{ $carbonDate->format('d/m/Y') }} {{ $carbonDate->format('l') }} @if ($rateData['count'] > 0) {{ number_format($rateData['amount'], 2) }} ({{ $rateData['count'] }}) @else 0.00 (0) @endif @if (($row->others['count'] ?? 0) > 0) {{ number_format($row->others['amount'], 2) }} ({{ $row->others['count'] }}) @else 0.00 (0) @endif {{ number_format((float) $row->total_amount, 2) }} {{ (int) $row->total_count }}
No transaction records found matching filter.
OVERALL TOTAL: {{ number_format($colTotals[$rate->key]['amount'], 2) }} ({{ $colTotals[$rate->key]['count'] }}) {{ number_format($othersTotalAmount, 2) }} ({{ $othersTotalCount }}) RM {{ number_format($totalAmount, 2) }} {{ $totalCount }}