{{-- Stat cards --}}
Total Spend
{{ number_format($grandTotal, 2) }}
all branches
Branches
{{ $expenseByBranch->count() }}
with expenses
Top Branch
{{ $expenseByBranch->first()?->branch_id ?? '—' }}
{{ number_format($expenseByBranch->first()?->total_amount ?? 0, 2) }}
Avg per Branch
{{ $expenseByBranch->count() > 0 ? number_format($grandTotal / $expenseByBranch->count(), 2) : '0.00' }}
average spend
Expenses by Branch {{ $expenseByBranch->count() }} branches
@if($expenseByBranch->isEmpty())
No branch data found for this period.
@else @foreach($expenseByBranch as $row) @php $pct = $grandTotal > 0 ? round($row->total_amount / $grandTotal * 100, 1) : 0; @endphp @endforeach
Branch Summaries Entries Avg per Entry Total Amount Share
{{ $row->branch_name }} {{ number_format($row->summary_count) }} {{ number_format($row->expense_entries) }} {{ number_format($row->avg_per_entry, 2) }} {{ number_format($row->total_amount, 2) }}
{{ $pct }}%
Total {{ number_format($grandTotal, 2) }}
@endif