| 
									
										
										
										
											2016-11-06 08:11:43 +01:00
										 |  |  | {% extends "./layout/default" %}
 | 
					
						
							| 
									
										
										
										
											2015-06-19 20:59:14 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block breadcrumbs %}
 | 
					
						
							| 
									
										
										
										
											2017-12-23 20:46:52 +01:00
										 |  |  |     {{ Breadcrumbs.render }}
 | 
					
						
							| 
									
										
										
										
											2015-06-19 20:59:14 +02:00
										 |  |  | {% endblock %}
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% block content %}
 | 
					
						
							| 
									
										
										
										
											2016-11-06 14:52:48 +01:00
										 |  |  |     {% include 'partials.boxes' %}
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |     <div class="row">
 | 
					
						
							|  |  |  |         <div class="col-lg-8 col-md-12 col-sm-12">
 | 
					
						
							|  |  |  |             {# ACCOUNTS #}
 | 
					
						
							|  |  |  |             <div class="box box-primary">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title"><a href="{{ route('accounts.index',['asset']) }}" title="{{ 'yourAccounts'|_ }}">{{ 'yourAccounts'|_ }}</a></h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							|  |  |  |                     <canvas id="accounts-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-footer">
 | 
					
						
							|  |  |  |                     <a href="{{ route('accounts.index','asset') }}" class="btn btn-default button-sm"><i
 | 
					
						
							|  |  |  |                                 class="fa fa-money"></i> {{ 'go_to_asset_accounts'|_ }}</a>
 | 
					
						
							| 
									
										
										
										
											2018-01-12 20:37:56 +01:00
										 |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2015-06-19 20:59:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |             {# BUDGETS #}
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title"><a href="{{ route('budgets.index') }}" title="{{ 'budgetsAndSpending'|_ }}">{{ 'budgetsAndSpending'|_ }}</a></h3>
 | 
					
						
							| 
									
										
										
										
											2018-01-12 20:37:56 +01:00
										 |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                 <div class="box-body">
 | 
					
						
							|  |  |  |                     <canvas id="budgets-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-footer">
 | 
					
						
							|  |  |  |                     <a href="{{ route('budgets.index') }}" class="btn btn-default button-sm"><i
 | 
					
						
							|  |  |  |                                 class="fa fa-tasks"></i> {{ 'go_to_budgets'|_ }}</a>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  |             {# CATEGORIES #}
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title"><a href="{{ route('categories.index') }}" title="{{ 'categories'|_ }}">{{ 'categories'|_ }}</a></h3>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							|  |  |  |                     <canvas id="categories-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-footer">
 | 
					
						
							|  |  |  |                     <a href="{{ route('categories.index') }}" class="btn btn-default button-sm"><i
 | 
					
						
							|  |  |  |                                 class="fa fa-bar-chart"></i> {{ 'go_to_categories'|_ }}</a>
 | 
					
						
							| 
									
										
										
										
											2018-01-12 20:37:56 +01:00
										 |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |         </div>
 | 
					
						
							|  |  |  |         <div class="col-lg-4 col-md-6 col-sm-12">
 | 
					
						
							|  |  |  |             {# TRANSACTIONS #}
 | 
					
						
							|  |  |  |             <div id="all_transactions">
 | 
					
						
							|  |  |  |                 {% for data in transactions %}
 | 
					
						
							|  |  |  |                     <div class="box">
 | 
					
						
							|  |  |  |                         <div class="box-header with-border">
 | 
					
						
							|  |  |  |                             <h3 class="box-title"><a href="{{ route('accounts.show', data[1].id) }}">{{ data[1].name }}</a></h3>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							| 
									
										
										
										
											2016-11-25 16:55:04 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                         {% if data[0].count > 0 %}
 | 
					
						
							|  |  |  |                             <div class="box-body no-padding">
 | 
					
						
							| 
									
										
										
										
											2019-03-24 09:23:36 +01:00
										 |  |  |                                 {% include 'list.groups-tiny' with {'groups': data[0],'account': data[1]} %}
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                             </div>
 | 
					
						
							|  |  |  |                         {% else %}
 | 
					
						
							|  |  |  |                             <div class="box-body">
 | 
					
						
							|  |  |  |                                 <p>
 | 
					
						
							|  |  |  |                                     <em>
 | 
					
						
							|  |  |  |                                         {{ trans('firefly.no_transactions_account', {name: data[1].name}) }}
 | 
					
						
							|  |  |  |                                     </em>
 | 
					
						
							|  |  |  |                                 </p>
 | 
					
						
							| 
									
										
										
										
											2018-01-12 20:37:56 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                             </div>
 | 
					
						
							|  |  |  |                         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2018-01-12 20:37:56 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                         <div class="box-footer clearfix">
 | 
					
						
							|  |  |  |                             <div class="btn-group" role="group">
 | 
					
						
							| 
									
										
										
										
											2017-07-16 07:35:08 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-03 09:14:58 +01:00
										 |  |  |                             </div>
 | 
					
						
							| 
									
										
										
										
											2017-10-22 18:15:12 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                             <div class="btn-group" role="group" aria-label="...">
 | 
					
						
							| 
									
										
										
										
											2017-10-22 18:15:12 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                                 <div class="btn-group" role="group">
 | 
					
						
							| 
									
										
										
										
											2019-08-07 18:51:35 +02:00
										 |  |  |                                     <a href="{{ route('transactions.create', ['withdrawal']) }}" class="btn btn-success"><i
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                                                 class="fa fa-plus fa-fw"></i> {{ 'create_new_transaction'|_ }}</a>
 | 
					
						
							|  |  |  |                                 </div>
 | 
					
						
							|  |  |  |                                 <a class="btn btn-default"
 | 
					
						
							|  |  |  |                                    href="{{ route('accounts.show',data[1].id) }}">{{ formatAmountByAccount(data[1], data[1]|balance, false) }}</a>
 | 
					
						
							| 
									
										
										
										
											2018-02-03 09:14:58 +01:00
										 |  |  |                             </div>
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-22 18:15:12 +02:00
										 |  |  |                         </div>
 | 
					
						
							| 
									
										
										
										
											2018-01-12 20:37:56 +01:00
										 |  |  |                     </div>
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                 {% endfor %}
 | 
					
						
							| 
									
										
										
										
											2015-08-01 07:04:41 +02:00
										 |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |             {% if billCount > 0 %}
 | 
					
						
							|  |  |  |                 {# BILLS #}
 | 
					
						
							| 
									
										
										
										
											2016-10-14 20:01:17 +02:00
										 |  |  |                 <div class="box">
 | 
					
						
							|  |  |  |                     <div class="box-header with-border">
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                         <h3 class="box-title"><a href="{{ route('bills.index') }}" title="{{ 'bills'|_ }}">{{ 'bills'|_ }}</a></h3>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-14 20:01:17 +02:00
										 |  |  |                     </div>
 | 
					
						
							|  |  |  |                     <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                         <div style="width:100%;margin:0 auto;">
 | 
					
						
							|  |  |  |                             <canvas id="bills-chart" style="width:100%;height:200px;" height="200"></canvas>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							| 
									
										
										
										
											2016-10-14 20:01:17 +02:00
										 |  |  |                     </div>
 | 
					
						
							| 
									
										
										
										
											2018-01-12 20:37:56 +01:00
										 |  |  |                     <div class="box-footer">
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |                         <a href="{{ route('bills.index') }}" class="btn btn-default button-sm"><i
 | 
					
						
							|  |  |  |                                     class="fa fa-calendar"></i> {{ 'go_to_bills'|_ }}</a>
 | 
					
						
							| 
									
										
										
										
											2018-01-12 20:37:56 +01:00
										 |  |  |                     </div>
 | 
					
						
							| 
									
										
										
										
											2016-10-14 20:01:17 +02:00
										 |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |             {% endif %}
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |             {# box for piggy bank data (JSON) #}
 | 
					
						
							|  |  |  |             <div id="piggy_bank_overview">
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  |         </div>
 | 
					
						
							|  |  |  |     </div>
 | 
					
						
							|  |  |  |     <div class="row">
 | 
					
						
							|  |  |  |         <div class="col-lg-12 col-md-12 col-sm-12">
 | 
					
						
							|  |  |  |             {# EXPENSE ACCOUNTS #}
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title"><a href="{{ route('accounts.index',['expense']) }}"
 | 
					
						
							|  |  |  |                                              title="{{ 'expense_accounts'|_ }}">{{ 'expense_accounts'|_ }}</a>
 | 
					
						
							|  |  |  |                     </h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							|  |  |  |                     <canvas id="expense-accounts-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-footer">
 | 
					
						
							|  |  |  |                     <a href="{{ route('accounts.index', ['expense']) }}" class="btn btn-default button-sm"><i
 | 
					
						
							|  |  |  |                                 class="fa fa-shopping-cart"></i> {{ 'go_to_expense_accounts'|_ }}</a>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  |             {# OPTIONAL REVENUE ACCOUNTS #}
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title"><a href="{{ route('accounts.index',['revenue']) }}"
 | 
					
						
							|  |  |  |                                              title="{{ 'revenue_accounts'|_ }}">{{ 'revenue_accounts'|_ }}</a></h3>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							|  |  |  |                     <canvas id="revenue-accounts-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-footer">
 | 
					
						
							|  |  |  |                     <a href="{{ route('accounts.index', ['revenue']) }}" class="btn btn-default button-sm"><i
 | 
					
						
							|  |  |  |                                 class="fa fa-download"></i> {{ 'go_to_revenue_accounts'|_ }}</a>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2018-02-03 09:14:58 +01:00
										 |  |  |             </div>
 | 
					
						
							|  |  |  |         </div>
 | 
					
						
							| 
									
										
										
										
											2018-03-09 05:44:35 +01:00
										 |  |  |     </div>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% endblock %}
 | 
					
						
							|  |  |  | {% block scripts %}
 | 
					
						
							| 
									
										
										
										
											2020-01-04 11:00:44 +01:00
										 |  |  |     <script type="text/javascript" nonce="{{ JS_NONCE }}">
 | 
					
						
							| 
									
										
										
										
											2016-11-22 19:10:38 +01:00
										 |  |  |         var billCount = {{ billCount }};
 | 
					
						
							| 
									
										
										
										
											2016-12-06 06:52:17 +01:00
										 |  |  |         var accountFrontpageUri = '{{ route('chart.account.frontpage') }}';
 | 
					
						
							|  |  |  |         var accountRevenueUri = '{{ route('chart.account.revenue') }}';
 | 
					
						
							|  |  |  |         var accountExpenseUri = '{{ route('chart.account.expense') }}';
 | 
					
						
							| 
									
										
										
										
											2017-10-22 18:15:12 +02:00
										 |  |  |         var piggyInfoUri = '{{ route('json.fp.piggy-banks') }}';
 | 
					
						
							| 
									
										
										
										
											2018-03-11 13:22:34 +01:00
										 |  |  |         var drawVerticalLine = '';
 | 
					
						
							| 
									
										
										
										
											2018-01-12 18:42:25 +01:00
										 |  |  |         {# render vertical line with text "today"  #}
 | 
					
						
							| 
									
										
										
										
											2017-11-17 19:31:48 +01:00
										 |  |  |         {% if start.lte(today) and end.gte(today) %}
 | 
					
						
							| 
									
										
										
										
											2018-03-11 13:22:34 +01:00
										 |  |  |         drawVerticalLine = '{{ today.formatLocalized(monthAndDayFormat) }}';
 | 
					
						
							| 
									
										
										
										
											2017-11-17 19:31:48 +01:00
										 |  |  |         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2015-07-12 12:45:41 +02:00
										 |  |  |     </script>
 | 
					
						
							| 
									
										
										
										
											2019-01-06 16:23:37 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-04 11:00:44 +01:00
										 |  |  |     <script type="text/javascript" src="v1/js/lib/Chart.bundle.min.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
 | 
					
						
							|  |  |  |     <script type="text/javascript" src="v1/js/lib/chartjs-plugin-annotation.min.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
 | 
					
						
							|  |  |  |     <script type="text/javascript" src="v1/js/ff/charts.defaults.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
 | 
					
						
							|  |  |  |     <script type="text/javascript" src="v1/js/ff/charts.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
 | 
					
						
							|  |  |  |     <script type="text/javascript" src="v1/js/ff/index.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
 | 
					
						
							| 
									
										
										
										
											2015-05-05 12:51:57 +02:00
										 |  |  | {% endblock %}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 16:00:50 +02:00
										 |  |  | {% block styles %}
 | 
					
						
							| 
									
										
										
										
											2015-06-28 08:24:12 +02:00
										 |  |  | {% endblock %}
 |