@foreach($journals as $journal) @endforeach
@if($journal->transactiontype->type == 'Withdrawal') @endif @if($journal->transactiontype->type == 'Deposit') @endif @if($journal->transactiontype->type == 'Transfer') @endif @if($journal->transactiontype->type == 'Opening balance') @endif bud / cat {{{$journal->description}}} @if($journal->transactiontype->type == 'Withdrawal') {{mf($journal->transactions[1]->amount,false)}} @endif @if($journal->transactiontype->type == 'Deposit') {{mf($journal->transactions[1]->amount,false)}} @endif @if($journal->transactiontype->type == 'Transfer') {{mf($journal->transactions[1]->amount,false)}} @endif @if($journal->transactions[0]->account->accounttype->description == 'Cash account') (cash) @else {{{$journal->transactions[0]->account->name}}} @endif @if($journal->transactions[1]->account->accounttype->description == 'Cash account') (cash) @else {{{$journal->transactions[1]->account->name}}} @endif
{{$journals->links()}}