{{-- Stat cards --}}
Total Spend
{{ number_format($total, 2) }}
all categories
Categories
{{ $expenseByItem->count() }}
expense item types
Top Category
{{ $expenseByItem->first()?->expense_item_name ?? '—' }}
{{ number_format($expenseByItem->first()?->total_amount ?? 0, 2) }}
Total Occurrences
{{ number_format($expenseByItem->sum('occurrence_count')) }}
expense entries
Expense Breakdown by Item {{ $expenseByItem->count() }} categories
@if($expenseByItem->isEmpty())
No data found for this period.
@else @foreach($expenseByItem as $i => $row) @endforeach
# Expense Item Occurrences Min Avg Max Total Amount Share
{{ $i + 1 }} {{ $row->expense_item_name }} {{ number_format($row->occurrence_count) }} {{ number_format($row->min_amount, 2) }} {{ number_format($row->avg_amount, 2) }} {{ number_format($row->max_amount, 2) }} {{ number_format($row->total_amount, 2) }}
{{ $row->percentage }}%
Total {{ number_format($total, 2) }}
@endif