From 01de230785bf17cc24e0a9780374b5cfbc553939 Mon Sep 17 00:00:00 2001 From: Sander Dorigo Date: Wed, 8 Oct 2014 21:53:38 +0200 Subject: [PATCH] Expanded the summary (related to #23). --- app/views/lists/transactions.blade.php | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/app/views/lists/transactions.blade.php b/app/views/lists/transactions.blade.php index 62bf705192..7dd5b0ec43 100644 --- a/app/views/lists/transactions.blade.php +++ b/app/views/lists/transactions.blade.php @@ -10,7 +10,7 @@ B - + @foreach($journals as $journal) @if(isset($journal->transactions[0]) && isset($journal->transactions[1])) @if($journal->transactiontype->type == 'Withdrawal') {{mf($journal->transactions[1]->amount,false)}} - transactions[1]->amount;?> + transactions[1]->amount;?> @endif @if($journal->transactiontype->type == 'Deposit') {{mf($journal->transactions[1]->amount,false)}} + transactions[1]->amount;?> @endif @if($journal->transactiontype->type == 'Transfer') {{mf($journal->transactions[1]->amount,false)}} - + transactions[1]->amount;?> @endif @@ -95,10 +96,18 @@ @endif @endforeach @if(isset($sum) && $sum == true) - - Sum: - {{mf($total)}} - + + Expenses: + {{mf($expenses)}} + + + Incomes: + {{mf($incomes)}} + + + Transfers: + {{mf($transfers,false)}} + @endif \ No newline at end of file