| 
									
										
										
										
											2015-05-02 18:26:55 +02:00
										 |  |  | {% extends "./layout/default.twig" %}
 | 
					
						
							| 
									
										
										
										
											2015-06-19 20:59:14 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block breadcrumbs %}
 | 
					
						
							| 
									
										
										
										
											2015-05-02 18:26:55 +02:00
										 |  |  |     {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
 | 
					
						
							| 
									
										
										
										
											2015-06-19 20:59:14 +02:00
										 |  |  | {% endblock %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block content %}
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |     <div class="row">
 | 
					
						
							|  |  |  |         <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							| 
									
										
										
										
											2015-12-12 12:29:54 +01:00
										 |  |  |                     <h3 class="box-title">{{ 'reports'|_ }}</h3>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2016-04-09 09:16:51 +02:00
										 |  |  |                     <p class="text-info">
 | 
					
						
							|  |  |  |                         {{ 'more_info_help'|_ }}
 | 
					
						
							|  |  |  |                     </p>
 | 
					
						
							| 
									
										
										
										
											2015-12-14 21:14:34 +01:00
										 |  |  |                     <form class="form-horizontal" id="report-form" action="{{ route('reports.index') }}" method="post">
 | 
					
						
							| 
									
										
										
										
											2015-12-18 16:37:45 +01:00
										 |  |  |                         <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                         <div class="form-group">
 | 
					
						
							| 
									
										
										
										
											2015-12-12 12:29:54 +01:00
										 |  |  |                             <label for="inputReportType" class="col-sm-3 control-label">{{ 'report_type'|_ }}</label>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |                             <div class="col-sm-9">
 | 
					
						
							|  |  |  |                                 <select name="report_type" class="form-control" id="inputReportType">
 | 
					
						
							| 
									
										
										
										
											2016-04-08 11:59:44 +02:00
										 |  |  |                                     <option selected label="{{ 'report_type_default'|_ }}" value="default">{{ 'report_type_default'|_ }}</option>
 | 
					
						
							|  |  |  |                                     <option label="{{ 'report_type_audit'|_ }}" value="audit">{{ 'report_type_audit'|_ }}</option>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                                 </select>
 | 
					
						
							|  |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  |                         <div class="form-group">
 | 
					
						
							| 
									
										
										
										
											2015-12-12 12:29:54 +01:00
										 |  |  |                             <label for="inputAccounts" class="col-sm-3 control-label">{{ 'report_included_accounts'|_ }}</label>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |                             <div class="col-sm-9">
 | 
					
						
							|  |  |  |                                 {% for account in accounts %}
 | 
					
						
							|  |  |  |                                     <div class="checkbox">
 | 
					
						
							|  |  |  |                                         <label>
 | 
					
						
							| 
									
										
										
										
											2015-12-06 08:42:04 +01:00
										 |  |  |                                             <input type="checkbox" class="account-checkbox" name="accounts[]" value="{{ account.id }}">
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                                             {{ account.name }}
 | 
					
						
							|  |  |  |                                             {% if account.getMeta('accountRole') == 'sharedAsset' %}
 | 
					
						
							| 
									
										
										
										
											2015-12-12 12:29:54 +01:00
										 |  |  |                                                 ({{ 'shared'|_|lower }})
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                                             {% endif %}
 | 
					
						
							|  |  |  |                                         </label>
 | 
					
						
							|  |  |  |                                     </div>
 | 
					
						
							|  |  |  |                                 {% endfor %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                                 <p class="help-block">
 | 
					
						
							| 
									
										
										
										
											2015-12-12 12:29:54 +01:00
										 |  |  |                                     {{ 'report_include_help'|_ }}
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                                 </p>
 | 
					
						
							|  |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         <div class="form-group">
 | 
					
						
							| 
									
										
										
										
											2015-12-12 12:29:54 +01:00
										 |  |  |                             <label for="inputDateRange" class="col-sm-3 control-label">{{ 'report_date_range'|_ }}</label>
 | 
					
						
							| 
									
										
										
										
											2015-12-04 06:57:08 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                             <div class="col-sm-9">
 | 
					
						
							|  |  |  |                                 <input type="text" class="form-control" id="inputDateRange" name="daterange"
 | 
					
						
							| 
									
										
										
										
											2015-12-04 06:57:08 +01:00
										 |  |  |                                        value="{{ Session.get('start').format('Y-m-d') }} - {{ Session.get('end').format('Y-m-d') }}">
 | 
					
						
							|  |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  |                         <div class="form-group">
 | 
					
						
							| 
									
										
										
										
											2015-12-12 12:29:54 +01:00
										 |  |  |                             <label for="__none__" class="col-sm-3 control-label">{{ 'report_preset_ranges'|_ }}</label>
 | 
					
						
							| 
									
										
										
										
											2015-12-04 06:57:08 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |                             <div class="col-sm-9">
 | 
					
						
							|  |  |  |                                 {% for year, data in months %}
 | 
					
						
							|  |  |  |                                     <a href="#" class="date-select" data-start="{{ data.start }}" data-end="{{ data.end }}">{{ year }}</a>
 | 
					
						
							| 
									
										
										
										
											2016-01-29 17:14:23 +01:00
										 |  |  |                                     {% if customFiscalYear == 1 %}
 | 
					
						
							|  |  |  |                                         <br/>
 | 
					
						
							|  |  |  |                                         <a href="#" class="date-select" data-start="{{ data.fiscal_start }}" data-end="{{ data.fiscal_end }}">{{ year }}
 | 
					
						
							|  |  |  |                                             ({{ 'fiscal_year'|_|lower }})</a>
 | 
					
						
							|  |  |  |                                     {% endif %}
 | 
					
						
							| 
									
										
										
										
											2015-12-04 06:57:08 +01:00
										 |  |  |                                     <ul class="list-inline">
 | 
					
						
							|  |  |  |                                         {% for month in data.months %}
 | 
					
						
							|  |  |  |                                             <li>
 | 
					
						
							| 
									
										
										
										
											2015-12-18 16:37:45 +01:00
										 |  |  |                                                 <a data-start="{{ month.start }}" data-end="{{ month.end }}" class="date-select"
 | 
					
						
							|  |  |  |                                                    href="#">{{ month.formatted }}</a>
 | 
					
						
							| 
									
										
										
										
											2015-12-04 06:57:08 +01:00
										 |  |  |                                             </li>
 | 
					
						
							|  |  |  |                                         {% endfor %}
 | 
					
						
							|  |  |  |                                     </ul>
 | 
					
						
							|  |  |  |                                 {% endfor %}
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							| 
									
										
										
										
											2015-12-04 06:57:08 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                         <div class="form-group">
 | 
					
						
							|  |  |  |                             <div class="col-sm-offset-3 col-sm-9">
 | 
					
						
							| 
									
										
										
										
											2015-12-12 12:29:54 +01:00
										 |  |  |                                 <button type="submit" class="btn btn-default">{{ 'submit'|_ }}</button>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  |                     </form>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  |         </div>
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-15 12:38:18 +01:00
										 |  |  |         <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
 | 
					
						
							|  |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'quick_link_reports'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							|  |  |  |                     <h4>{{ 'quick_link_default_report'|_ }}</h4>
 | 
					
						
							|  |  |  |                     <ul>
 | 
					
						
							|  |  |  |                         <li>
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  |                             <a href="{{ route('reports.report', | 
					
						
							|  |  |  |                             ['default',
 | 
					
						
							| 
									
										
										
										
											2016-01-22 07:54:15 +01:00
										 |  |  |                             'currentMonthStart',
 | 
					
						
							|  |  |  |                             'currentMonthEnd',
 | 
					
						
							| 
									
										
										
										
											2015-12-18 16:37:45 +01:00
										 |  |  |                             accountList
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  |                             ]) }}">{{ 'report_this_month_quick'|_ }}</a>
 | 
					
						
							| 
									
										
										
										
											2015-12-15 12:38:18 +01:00
										 |  |  |                         </li>
 | 
					
						
							|  |  |  |                         <li>
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  |                             <a href="{{ route('reports.report', | 
					
						
							|  |  |  |                             ['default',
 | 
					
						
							| 
									
										
										
										
											2016-01-22 10:10:51 +01:00
										 |  |  |                             'currentYearStart',
 | 
					
						
							|  |  |  |                             'currentYearEnd',
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  |                             accountList
 | 
					
						
							|  |  |  |                             ]) }}">{{ 'report_this_year_quick'|_ }}</a>
 | 
					
						
							| 
									
										
										
										
											2015-12-15 12:38:18 +01:00
										 |  |  |                         </li>
 | 
					
						
							| 
									
										
										
										
											2016-01-29 07:47:18 +01:00
										 |  |  |                         {% if customFiscalYear == 1 %}
 | 
					
						
							| 
									
										
										
										
											2016-01-29 17:14:23 +01:00
										 |  |  |                             <li>
 | 
					
						
							|  |  |  |                                 <a href="{{ route('reports.report', | 
					
						
							|  |  |  |                                 ['default',
 | 
					
						
							|  |  |  |                                 'currentFiscalYearStart',
 | 
					
						
							|  |  |  |                                 'currentFiscalYearEnd',
 | 
					
						
							|  |  |  |                                 accountList
 | 
					
						
							|  |  |  |                                 ]) }}">{{ 'report_this_fiscal_year_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                             </li>
 | 
					
						
							| 
									
										
										
										
											2016-01-29 07:47:18 +01:00
										 |  |  |                         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2015-12-15 12:38:18 +01:00
										 |  |  |                         <li>
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  |                             <a href="{{ route('reports.report', | 
					
						
							|  |  |  |                             ['default',
 | 
					
						
							|  |  |  |                             start.format('Ymd'),
 | 
					
						
							| 
									
										
										
										
											2016-01-22 10:10:51 +01:00
										 |  |  |                             'currentMonthEnd',
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  |                             accountList
 | 
					
						
							|  |  |  |                             ]) }}">{{ 'report_all_time_quick'|_ }}</a>
 | 
					
						
							| 
									
										
										
										
											2015-12-15 12:38:18 +01:00
										 |  |  |                         </li>
 | 
					
						
							|  |  |  |                     </ul>
 | 
					
						
							|  |  |  |                     <p>
 | 
					
						
							|  |  |  |                         <em>{{ 'reports_can_bookmark'|_ }}</em>
 | 
					
						
							|  |  |  |                     </p>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-15 12:38:18 +01:00
										 |  |  |         </div>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |     </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-02 18:26:55 +02:00
										 |  |  | {% endblock %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block scripts %}
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |     <script type="text/javascript">
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-08 15:55:22 +01:00
										 |  |  |         var reportURL = "{{ route('reports.report', ['','','','']) }}";
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |         var minDate = "{{ start.format('m/d/Y') }}";
 | 
					
						
							| 
									
										
										
										
											2015-12-04 06:57:08 +01:00
										 |  |  |         var picker;
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |     </script>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-14 20:33:50 +01:00
										 |  |  |     <script type="text/javascript" src="js/reports/index.js"></script>
 | 
					
						
							| 
									
										
										
										
											2015-05-02 18:26:55 +02:00
										 |  |  | {% endblock %}
 |