@foreach($transaction_groups as $group)

{{ $group['airline']->icao }} - {{ $group['airline']->name }}

@foreach($group['transactions'] as $ta) @endforeach {{-- show sums --}} {{-- final total --}}
Expenses Credit Debit
{{ $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']) }}
@if(!$loop->last)
@endif @endforeach