| 
									
										
										
										
											2016-11-06 08:11:43 +01:00
										 |  |  | {% extends "./layout/default" %}
 | 
					
						
							| 
									
										
										
										
											2015-06-19 20:59:14 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block breadcrumbs %}
 | 
					
						
							|  |  |  |     {{ Breadcrumbs.renderIfExists }}
 | 
					
						
							|  |  |  | {% endblock %}
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% block content %}
 | 
					
						
							| 
									
										
										
										
											2016-11-06 14:52:48 +01:00
										 |  |  |     {% include 'partials.boxes' %}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <div class="row">
 | 
					
						
							|  |  |  |         <div class="col-lg-8 col-md-12 col-sm-12">
 | 
					
						
							| 
									
										
										
										
											2017-03-03 18:19:25 +01:00
										 |  |  |             {# ACCOUNTS #}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |             <div class="box box-primary">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'yourAccounts'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2016-04-10 10:20:15 +02:00
										 |  |  |                     <canvas id="accounts-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							| 
									
										
										
										
											2015-06-20 07:29:25 +02:00
										 |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2015-06-19 20:59:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-03 18:19:25 +01:00
										 |  |  |             {# BUDGETS #}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'budgetsAndSpending'|_ }}</h3>
 | 
					
						
							| 
									
										
										
										
											2015-06-20 07:29:25 +02:00
										 |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |                 <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2017-04-29 08:56:08 +02:00
										 |  |  |                     <canvas id="budgets-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							| 
									
										
										
										
											2015-06-20 07:29:25 +02:00
										 |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2017-07-15 21:40:42 +02:00
										 |  |  |             {# CATEGORIES #}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'categories'|_ }}</h3>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2017-04-29 08:56:08 +02:00
										 |  |  |                     <canvas id="categories-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							| 
									
										
										
										
											2015-06-20 07:29:25 +02:00
										 |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2015-08-02 07:35:09 +02:00
										 |  |  |         </div>
 | 
					
						
							|  |  |  |         <div class="col-lg-4 col-md-6 col-sm-12">
 | 
					
						
							| 
									
										
										
										
											2016-11-22 19:10:38 +01:00
										 |  |  |             {% if billCount > 0 %}
 | 
					
						
							| 
									
										
										
										
											2017-07-15 21:40:42 +02:00
										 |  |  |                 {# BILLS #}
 | 
					
						
							| 
									
										
										
										
											2016-11-22 19:10:38 +01:00
										 |  |  |                 <div class="box">
 | 
					
						
							|  |  |  |                     <div class="box-header with-border">
 | 
					
						
							|  |  |  |                         <h3 class="box-title">{{ 'bills'|_ }}</h3>
 | 
					
						
							| 
									
										
										
										
											2015-08-02 07:35:09 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-13 11:31:48 +01:00
										 |  |  |                     </div>
 | 
					
						
							| 
									
										
										
										
											2016-11-22 19:10:38 +01:00
										 |  |  |                     <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2017-04-29 08:56:08 +02:00
										 |  |  |                         <div style="width:100%;margin:0 auto;">
 | 
					
						
							|  |  |  |                             <canvas id="bills-chart" style="width:100%;height:200px;" height="200"></canvas>
 | 
					
						
							| 
									
										
										
										
											2016-11-22 19:10:38 +01:00
										 |  |  |                         </div>
 | 
					
						
							| 
									
										
										
										
											2016-11-13 11:31:48 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-22 19:10:38 +01:00
										 |  |  |                     </div>
 | 
					
						
							| 
									
										
										
										
											2015-08-02 07:35:09 +02:00
										 |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2016-11-22 19:10:38 +01:00
										 |  |  |             {% endif %}
 | 
					
						
							| 
									
										
										
										
											2015-08-02 07:35:09 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-15 21:40:42 +02:00
										 |  |  |             {# TRANSACTIONS #}
 | 
					
						
							| 
									
										
										
										
											2015-08-02 07:35:09 +02:00
										 |  |  |             {% for data in transactions %}
 | 
					
						
							|  |  |  |                 <div class="box">
 | 
					
						
							|  |  |  |                     <div class="box-header with-border">
 | 
					
						
							| 
									
										
										
										
											2016-07-02 17:33:57 +02:00
										 |  |  |                         <h3 class="box-title"><a href="{{ route('accounts.show', data[1].id) }}">{{ data[1].name }}</a></h3>
 | 
					
						
							| 
									
										
										
										
											2015-08-02 07:35:09 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |                         <div class="box-tools pull-right">
 | 
					
						
							|  |  |  |                             <div class="btn-group">
 | 
					
						
							|  |  |  |                                 <button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button>
 | 
					
						
							|  |  |  |                                 <ul class="dropdown-menu" role="menu">
 | 
					
						
							|  |  |  |                                     <li><a href="{{ route('transactions.create','withdrawal') }}?account_id={{ data[1].id }}"><i
 | 
					
						
							|  |  |  |                                                     class="fa fa-long-arrow-left fa-fw"></i> {{ 'newWithdrawal'|_ }}</a></li>
 | 
					
						
							|  |  |  |                                     <li><a href="{{ route('transactions.create','deposit') }}?account_id={{ data[1].id }}"><i
 | 
					
						
							|  |  |  |                                                     class="fa fa-long-arrow-right fa-fw"></i> {{ 'newDeposit'|_ }}</a></li>
 | 
					
						
							|  |  |  |                                     <li><a href="{{ route('transactions.create','transfer') }}?account_from_id={{ data[1].id }}"><i
 | 
					
						
							|  |  |  |                                                     class="fa fa-fw fa-exchange"></i> {{ 'newTransfer'|_ }}</a></li>
 | 
					
						
							|  |  |  |                                 </ul>
 | 
					
						
							|  |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-02 07:35:09 +02:00
										 |  |  |                     </div>
 | 
					
						
							| 
									
										
										
										
											2016-11-25 16:55:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |                     {% if data[0].count > 0 %}
 | 
					
						
							|  |  |  |                         <div class="box-body no-padding">
 | 
					
						
							| 
									
										
										
										
											2017-06-02 12:59:14 +02:00
										 |  |  |                             {% include 'list.journals-tiny' with {'transactions': data[0],'account': data[1]} %}
 | 
					
						
							| 
									
										
										
										
											2016-11-25 16:55:04 +01:00
										 |  |  |                         </div>
 | 
					
						
							|  |  |  |                     {% else %}
 | 
					
						
							|  |  |  |                         <div class="box-body">
 | 
					
						
							|  |  |  |                             <p>
 | 
					
						
							|  |  |  |                                 <em>
 | 
					
						
							|  |  |  |                                     {{ trans('firefly.no_transactions_account', {name: data[1].name}) }}
 | 
					
						
							|  |  |  |                                 </em>
 | 
					
						
							|  |  |  |                             </p>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  |                     {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-02 07:35:09 +02:00
										 |  |  |                     <div class="box-footer clearfix">
 | 
					
						
							|  |  |  |                         <a class="btn btn-sm btn-default btn-flat pull-right"
 | 
					
						
							|  |  |  |                            href="{{ route('accounts.show',data[1].id) }}">{{ (data[1]|balance)|formatAmountPlain }}</a>
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             {% endfor %}
 | 
					
						
							|  |  |  |         </div>
 | 
					
						
							|  |  |  |     </div>
 | 
					
						
							|  |  |  |     <div class="row">
 | 
					
						
							|  |  |  |         <div class="col-lg-12 col-md-12 col-sm-12">
 | 
					
						
							| 
									
										
										
										
											2017-07-15 21:40:42 +02:00
										 |  |  |             {# EXPENSE ACCOUNTS #}
 | 
					
						
							| 
									
										
										
										
											2015-08-01 07:04:41 +02:00
										 |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'expense_accounts'|_ }}</h3>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2017-04-29 08:56:08 +02:00
										 |  |  |                     <canvas id="expense-accounts-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							| 
									
										
										
										
											2015-08-01 07:04:41 +02:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2017-07-15 21:40:42 +02:00
										 |  |  |             {# OPTIONAL REVENUE ACCOUNTS #}
 | 
					
						
							| 
									
										
										
										
											2016-10-14 20:01:17 +02:00
										 |  |  |             {% if showDepositsFrontpage %}
 | 
					
						
							|  |  |  |                 <div class="box">
 | 
					
						
							|  |  |  |                     <div class="box-header with-border">
 | 
					
						
							|  |  |  |                         <h3 class="box-title">{{ 'revenue_accounts'|_ }}</h3>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                     <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2017-04-29 08:56:08 +02:00
										 |  |  |                         <canvas id="revenue-accounts-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
 | 
					
						
							| 
									
										
										
										
											2016-10-14 20:01:17 +02:00
										 |  |  |                     </div>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             {% endif %}
 | 
					
						
							| 
									
										
										
										
											2015-08-02 07:35:09 +02:00
										 |  |  |         </div>
 | 
					
						
							|  |  |  |     </div>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% endblock %}
 | 
					
						
							|  |  |  | {% block scripts %}
 | 
					
						
							| 
									
										
										
										
											2015-07-12 12:45:41 +02:00
										 |  |  |     <script type="text/javascript">
 | 
					
						
							| 
									
										
										
										
											2016-11-22 19:10:38 +01:00
										 |  |  |         var billCount = {{ billCount }};
 | 
					
						
							| 
									
										
										
										
											2016-12-06 06:52:17 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // uri's of charts:
 | 
					
						
							|  |  |  |         var accountFrontpageUri = '{{ route('chart.account.frontpage') }}';
 | 
					
						
							|  |  |  |         var accountRevenueUri = '{{ route('chart.account.revenue') }}';
 | 
					
						
							|  |  |  |         var accountExpenseUri = '{{ route('chart.account.expense') }}';
 | 
					
						
							| 
									
										
										
										
											2015-07-12 12:45:41 +02:00
										 |  |  |     </script>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-10 10:05:50 +02:00
										 |  |  |     <script type="text/javascript" src="js/lib/Chart.bundle.min.js"></script>
 | 
					
						
							| 
									
										
										
										
											2016-11-16 20:35:25 +01:00
										 |  |  |     <script type="text/javascript" src="js/ff/charts.defaults.js"></script>
 | 
					
						
							| 
									
										
										
										
											2016-04-10 17:51:51 +02:00
										 |  |  |     <script type="text/javascript" src="js/ff/charts.js"></script>
 | 
					
						
							|  |  |  |     <script type="text/javascript" src="js/ff/index.js"></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 %}
 |