@foreach($transactions as $journal) @if($journal->transactiontype->type == 'Withdrawal') @endif @if($journal->transactiontype->type == 'Deposit') @endif @if($journal->transactiontype->type == 'Transfer') @endif {{{$journal->description}}} @foreach($journal->transactions as $t) @if($t->account_id == $account->id) {{mf($t->amount)}} @endif @endforeach @endforeach