@foreach($transaction_groups as $group)
Expenses | Credit | Debit | @foreach($group['transactions'] as $ta)
---|---|---|
{{ $ta->transaction_group }} | @if($ta->sum_credits) {{ money($ta->sum_credits, $ta->currency) }} @endif | @if($ta->sum_debits) {{ money($ta->sum_debits, $ta->currency) }} @endif |
{{ $group['credits'] }} | {{ $group['debits'] }} | |
Total | {{ $group['credits']->subtract($group['debits']) }} |