From 6f4141477d22904a9db74224e1a2d40709366d8c Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 22 Aug 2014 10:32:50 +0200 Subject: [PATCH] For budget charts --- app/views/budgets/show.blade.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/app/views/budgets/show.blade.php b/app/views/budgets/show.blade.php index f253d68a52..892bae9ff5 100644 --- a/app/views/budgets/show.blade.php +++ b/app/views/budgets/show.blade.php @@ -44,7 +44,28 @@
+ @if(isset($filters[0]) && is_object($filters[0]) && get_class($filters[0]) == 'Limit') + +

+ A chart showing the date-range of the selected envelope, all transactions + as bars and the amount left in the envelope as a line. +

+ @elseif(isset($filters[0]) && $filters[0] == 'no_envelope') +

+ A chart showing the date-range of all the not-enveloped stuff, and their amount. +

+ @elseif($useSessionDates == true) +

+ Date range of session, show chart with all expenses in bars + find all limit repetitions, add them as individual lines and make them go down. + same as the first but bigger range (potentially). +

+ @else

(Some sort of chart here)

+ @endif + + +