| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  | {% extends "./layout/default.twig" %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block breadcrumbs %}
 | 
					
						
							| 
									
										
										
										
											2015-12-28 20:04:54 +01:00
										 |  |  |     {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, start, end, reportType, accountIds) }}
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  | {% endblock %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block content %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <div class="row">
 | 
					
						
							| 
									
										
										
										
											2015-12-14 21:12:10 +01:00
										 |  |  |         <div class="col-lg-8 col-md-8 col-sm-12">
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2016-04-10 10:20:15 +02:00
										 |  |  |                     <canvas id="income-expenses-chart" style="width:100%;height:400px;" height="400"></canvas>
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  |         </div>
 | 
					
						
							| 
									
										
										
										
											2015-12-14 21:12:10 +01:00
										 |  |  |         <div class="col-lg-4 col-md-4 col-sm-12">
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							| 
									
										
										
										
											2015-12-14 21:12:10 +01:00
										 |  |  |                     <h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2016-04-10 10:20:15 +02:00
										 |  |  |                     <canvas id="income-expenses-sum-chart" style="width:100%;height:400px;" height="400"></canvas>
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  |         </div>
 | 
					
						
							|  |  |  |     </div>
 | 
					
						
							| 
									
										
										
										
											2015-12-14 21:12:10 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-05 21:23:58 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <div class="row">
 | 
					
						
							| 
									
										
										
										
											2016-10-30 20:13:49 +01:00
										 |  |  |         <div class="col-lg-6 col-md-6 col-sm-6 loading">
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'accountBalances'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body table-responsive no-padding loading" id="accountReport">
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2016-01-05 21:23:58 +01:00
										 |  |  |         </div>
 | 
					
						
							| 
									
										
										
										
											2016-10-26 16:54:52 +02:00
										 |  |  |         <div class="col-lg-3 col-md-3 col-sm-3">
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'income'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2016-10-26 19:37:19 +02:00
										 |  |  |                 <div class="box-body table-responsive no-padding loading" id="incomeReport">
 | 
					
						
							| 
									
										
										
										
											2016-10-26 16:54:52 +02:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2016-01-05 21:23:58 +01:00
										 |  |  |         </div>
 | 
					
						
							| 
									
										
										
										
											2016-10-26 19:32:19 +02:00
										 |  |  |         <div class="col-lg-3 col-md-3 col-sm-3">
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'expenses'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body table-responsive no-padding loading" id="expenseReport">
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2016-01-05 21:23:58 +01:00
										 |  |  |         </div>
 | 
					
						
							|  |  |  |     </div>
 | 
					
						
							| 
									
										
										
										
											2016-03-02 07:08:08 +01:00
										 |  |  |     <div class="row">
 | 
					
						
							| 
									
										
										
										
											2016-10-26 19:37:19 +02:00
										 |  |  |         <div class="col-lg-6 col-md-6 col-sm-6">
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body table-responsive no-padding loading" id="incomeVsExpenseReport">
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2016-03-02 07:08:08 +01:00
										 |  |  |         </div>
 | 
					
						
							|  |  |  |     </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-18 10:04:53 +01:00
										 |  |  |     <div class="row">
 | 
					
						
							|  |  |  |         <div class="col-lg-12 col-md-12 col-sm-12">
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'net_worth'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2016-04-10 10:20:15 +02:00
										 |  |  |                     <canvas id="net-worth" style="width:100%;height:400px;" height="400"></canvas>
 | 
					
						
							| 
									
										
										
										
											2016-02-18 10:04:53 +01:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  |         </div>
 | 
					
						
							|  |  |  |     </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-02 04:55:44 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <div class="row">
 | 
					
						
							|  |  |  |         <div class="col-lg-12 col-md-12 col-sm-12">
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'budgets'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body no-padding table-responsive">
 | 
					
						
							|  |  |  |                     <table class="table table-hover sortable">
 | 
					
						
							|  |  |  |                         <thead>
 | 
					
						
							|  |  |  |                         <tr>
 | 
					
						
							| 
									
										
										
										
											2016-11-02 07:16:46 +01:00
										 |  |  |                             <th>{{ 'budget'|_ }}</th>
 | 
					
						
							| 
									
										
										
										
											2016-11-02 04:55:44 +01:00
										 |  |  |                             {% for year in years %}
 | 
					
						
							|  |  |  |                                 <th>{{ year }}</th>
 | 
					
						
							|  |  |  |                             {% endfor %}
 | 
					
						
							| 
									
										
										
										
											2016-11-02 07:16:46 +01:00
										 |  |  |                             <th>{{ 'sum'|_ }}</th>
 | 
					
						
							| 
									
										
										
										
											2016-11-02 04:55:44 +01:00
										 |  |  |                         </tr>
 | 
					
						
							|  |  |  |                         </thead>
 | 
					
						
							|  |  |  |                         <tbody>
 | 
					
						
							|  |  |  |                         {% for id, info in budgetMultiYear %}
 | 
					
						
							|  |  |  |                             <tr>
 | 
					
						
							| 
									
										
										
										
											2016-11-02 07:16:46 +01:00
										 |  |  |                                 <td>
 | 
					
						
							|  |  |  |                                     {% if id == 0 %}
 | 
					
						
							|  |  |  |                                         <a href="{{ route('budgets.noBudget') }}">{{ info.name }}</a>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                                     {% else %}
 | 
					
						
							|  |  |  |                                         <a href="{{ route('budgets.show', id) }}">{{ info.name }}</a>
 | 
					
						
							|  |  |  |                                     {% endif %}
 | 
					
						
							|  |  |  |                                 </td>
 | 
					
						
							| 
									
										
										
										
											2016-11-02 04:55:44 +01:00
										 |  |  |                                 {% for amount in info.entries %}
 | 
					
						
							| 
									
										
										
										
											2016-11-02 07:16:46 +01:00
										 |  |  |                                     <td data-value="{{ amount }}">
 | 
					
						
							| 
									
										
										
										
											2016-11-02 04:55:44 +01:00
										 |  |  |                                         {{ amount|formatAmount }}
 | 
					
						
							|  |  |  |                                     </td>
 | 
					
						
							|  |  |  |                                 {% endfor %}
 | 
					
						
							| 
									
										
										
										
											2016-11-02 07:23:11 +01:00
										 |  |  |                                 <td data-value="{{ info.sum }}">
 | 
					
						
							|  |  |  |                                     {{ info.sum|formatAmount }}
 | 
					
						
							| 
									
										
										
										
											2016-11-02 07:16:46 +01:00
										 |  |  |                                 </td>
 | 
					
						
							| 
									
										
										
										
											2016-11-02 04:55:44 +01:00
										 |  |  |                             </tr>
 | 
					
						
							|  |  |  |                         {% endfor %}
 | 
					
						
							|  |  |  |                         </tbody>
 | 
					
						
							|  |  |  |                     </table>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  |         </div>
 | 
					
						
							|  |  |  |     </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  | {% endblock %}
 | 
					
						
							|  |  |  | {% block styles %}
 | 
					
						
							|  |  |  |     <link rel="stylesheet" href="css/bootstrap-sortable.css" type="text/css" media="all"/>
 | 
					
						
							|  |  |  | {% endblock %}
 | 
					
						
							|  |  |  | {% block scripts %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-10 17:51:51 +02:00
										 |  |  |     <script type="text/javascript" src="js/lib/bootstrap-sortable.js"></script>
 | 
					
						
							| 
									
										
										
										
											2016-04-10 10:05:50 +02:00
										 |  |  |     <script type="text/javascript" src="js/lib/Chart.bundle.min.js"></script>
 | 
					
						
							| 
									
										
										
										
											2016-04-10 17:51:51 +02:00
										 |  |  |     <script type="text/javascript" src="js/ff/charts.js"></script>
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  |     <script type="text/javascript">
 | 
					
						
							|  |  |  |         var year = {{ start.year }};
 | 
					
						
							|  |  |  |         var month = {{ start.month }};
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // to report another URL:
 | 
					
						
							|  |  |  |         var startDate = '{{ start.format('Ymd') }}';
 | 
					
						
							|  |  |  |         var endDate = '{{ end.format('Ymd') }}';
 | 
					
						
							| 
									
										
										
										
											2015-12-28 20:04:54 +01:00
										 |  |  |         var reportType = '{{ reportType }}';
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  |         var accountIds = '{{ accountIds }}';
 | 
					
						
							| 
									
										
										
										
											2016-01-05 21:23:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-08 16:24:07 +02:00
										 |  |  |         <!-- some URL's -->
 | 
					
						
							|  |  |  |         var accountReportUrl = '{{ route('reports.data.accountReport', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}';
 | 
					
						
							| 
									
										
										
										
											2016-10-25 18:53:54 +02:00
										 |  |  |         var inOutReportUrl = '{{ route('reports.data.inOutReport', [start.format('Ymd'), end.format('Ymd'), accountIds]) }}';
 | 
					
						
							| 
									
										
										
										
											2016-10-08 16:24:07 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  |     </script>
 | 
					
						
							| 
									
										
										
										
											2016-04-10 17:51:51 +02:00
										 |  |  |     <script type="text/javascript" src="js/ff/reports/default/all.js"></script>
 | 
					
						
							|  |  |  |     <script type="text/javascript" src="js/ff/reports/default/multi-year.js"></script>
 | 
					
						
							| 
									
										
										
										
											2015-12-13 17:31:25 +01:00
										 |  |  | {% endblock %}
 |