{{-- PAYMENT METHOD GROUPS --}}
@php $grandTotal = 0; @endphp
@foreach($transactions as $method => $rows)
| Date |
Narration |
Amount |
@php $groupTotal = 0; @endphp
@foreach($rows as $t)
@php $groupTotal += $t->transaction_amount; @endphp
| {{ \Carbon\Carbon::parse($t->transaction_date)->format('d M Y') }} |
{{ $t->transaction_details ?? '-' }} |
{{ number_format($t->transaction_amount, 2) }}
|
@endforeach
{{-- GROUP TOTAL --}}
| Total |
{{ number_format($groupTotal, 2) }}
|
@php $grandTotal += $groupTotal; @endphp
@endforeach
| Grand Total |
₹{{ number_format($grandTotal, 2) }}
|