@foreach($transactions as $journal) @if($journal->transactiontype->type == 'Withdrawal') @endif @if($journal->transactiontype->type == 'Deposit') @endif @if($journal->transactiontype->type == 'Transfer') @endif {{{$journal->description}}} @if(isset($account)) @foreach($journal->transactions as $index => $t) @if($t->account_id == $account->id) {{mft($t)}} @endif @endforeach @else @foreach($journal->transactions as $index => $t) @if($index == 0) {{mft($t)}} @endif @endforeach @endif @endforeach