@php $maxAmt = $dailySummary->max('total_amount'); @endphp {{-- Stat cards --}}
Total Spend
{{ number_format($totals['total_amount'], 2) }}
in date range
Days Recorded
{{ $dailySummary->count() }}
with expense data
Avg Daily Spend
{{ number_format($totals['avg_daily'], 2) }}
per recorded day
Total Entries
{{ number_format($totals['total_entries']) }}
expense lines
Daily Expense Log {{ $dailySummary->count() }} days
@if($dailySummary->isEmpty())
No daily expense records found.
@else @foreach($dailySummary as $row) @php $pct = $maxAmt > 0 ? round($row->total_amount / $maxAmt * 100) : 0; $d = \Carbon\Carbon::parse($row->date); @endphp @endforeach
Date Day Summaries Entries Max Single Total Amount Volume
{{ $d->format('M d, Y') }} {{ $d->format('D') }} {{ number_format($row->summary_count) }} {{ number_format($row->entry_count) }} {{ number_format($row->max_single_expense, 2) }} {{ number_format($row->total_amount, 2) }}
{{ $pct }}%
Total {{ number_format($totals['total_amount'], 2) }}
@endif