From 12af05b94f4657e4dee9dcd52c19f2ed5c4404c0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 27 Mar 2015 09:43:29 +0100 Subject: [PATCH] Only display budgets when there's money in the envelope or when there's money spent. --- resources/views/reports/month.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/reports/month.blade.php b/resources/views/reports/month.blade.php index 7b5c81a716..2b93fa7a12 100644 --- a/resources/views/reports/month.blade.php +++ b/resources/views/reports/month.blade.php @@ -138,6 +138,8 @@ $sumEnvelope += $budget['amount']; $sumLeft += $budget['amount'] + $budget['spent']; ?> + + @if($budget['amount'] != 0 || $budget['spent'] != 0) @if($id > 0) @@ -150,6 +152,7 @@ {!! Amount::format($budget['spent'],false) !!} {!! Amount::format($budget['amount'] + $budget['spent']) !!} + @endif @endforeach Sum