{{-- Page header --}}

Transaction History

{{ $transactions->count() }} transactions

{{-- Summary cards --}}
@php $totalIn = $transactions->where('type', 'credit')->sum('amount'); $totalOut = $transactions->where('type', 'debit')->sum('amount'); @endphp

Total In

K{{ number_format((float) $totalIn, 2) }}

Total Out

K{{ number_format((float) $totalOut, 2) }}