| 
									
										
										
										
											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(Route.getCurrentRoute.getName) }}
 | 
					
						
							| 
									
										
										
										
											2015-06-19 20:59:14 +02:00
										 |  |  | {% endblock %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block content %}
 | 
					
						
							| 
									
										
										
										
											2016-10-28 19:01:52 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |     <div class="row">
 | 
					
						
							| 
									
										
										
										
											2017-11-01 16:17:14 +01:00
										 |  |  |         <form class="form-horizontal nodisablebutton" id="report-form" action="{{ route('reports.index.post') }}" method="post">
 | 
					
						
							| 
									
										
										
										
											2016-11-08 20:35:30 +01:00
										 |  |  |             <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
 | 
					
						
							| 
									
										
										
										
											2016-10-28 19:01:52 +02:00
										 |  |  |                 <div class="box">
 | 
					
						
							|  |  |  |                     <div class="box-header with-border">
 | 
					
						
							|  |  |  |                         <h3 class="box-title">{{ 'reports'|_ }}</h3>
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                     <div class="box-body">
 | 
					
						
							|  |  |  |                         <p class="text-info">
 | 
					
						
							|  |  |  |                             {{ 'more_info_help'|_ }}
 | 
					
						
							|  |  |  |                         </p>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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>
 | 
					
						
							| 
									
										
										
										
											2016-12-08 21:50:20 +01:00
										 |  |  |                                     <option label="{{ 'report_type_budget'|_ }}" value="budget">{{ 'report_type_budget'|_ }}</option>
 | 
					
						
							| 
									
										
										
										
											2016-11-09 19:25:09 +01:00
										 |  |  |                                     <option label="{{ 'report_type_category'|_ }}" value="category">{{ 'report_type_category'|_ }}</option>
 | 
					
						
							| 
									
										
										
										
											2017-02-15 20:07:10 +01:00
										 |  |  |                                     <option label="{{ 'report_type_tag'|_ }}" value="tag">{{ 'report_type_tag'|_ }}</option>
 | 
					
						
							| 
									
										
										
										
											2019-09-03 22:35:41 +02:00
										 |  |  |                                     <option label="{{ 'report_type_double'|_ }}" value="double">{{ 'report_type_double'|_ }}</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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-22 10:50:30 +02:00
										 |  |  |                             <div class="col-sm-9" id="inputAccountsSelect">
 | 
					
						
							|  |  |  |                                 <select id="inputAccounts" name="accounts[]" multiple class="form-control">
 | 
					
						
							| 
									
										
										
										
											2020-03-13 18:17:53 +01:00
										 |  |  |                                     {% for role, accountList in groupedAccounts  %}
 | 
					
						
							|  |  |  |                                         <optgroup label="{{ role }}">
 | 
					
						
							|  |  |  |                                     {% for account in accountList %}
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  |                                         <option
 | 
					
						
							|  |  |  |                                                 value="{{ account.id }}"
 | 
					
						
							| 
									
										
										
										
											2018-04-16 20:21:28 +02:00
										 |  |  |                                                 label="{{ account.name }}{% if accountGetMetaField(account, 'accountRole') == 'sharedAsset' %} ({{ 'shared'|_|lower }}){% endif %}">
 | 
					
						
							|  |  |  |                                             {{ account.name }}{% if accountGetMetaField(account, 'accountRole') == 'sharedAsset' %} ({{ 'shared'|_|lower }}){% endif %}
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  |                                         </option>
 | 
					
						
							|  |  |  |                                     {% endfor %}
 | 
					
						
							| 
									
										
										
										
											2020-03-13 18:17:53 +01:00
										 |  |  |                                         </optgroup>
 | 
					
						
							|  |  |  |                                     {% endfor %}
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  |                                 </select>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |                             </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">
 | 
					
						
							| 
									
										
										
										
											2018-01-22 18:16:50 +01:00
										 |  |  |                                 <input autocomplete="off" 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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-28 19:01:52 +02:00
										 |  |  |                     </div>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							| 
									
										
										
										
											2017-01-07 08:08:37 +01:00
										 |  |  |                 <div class="box" id="extra-options-box">
 | 
					
						
							| 
									
										
										
										
											2016-10-28 19:01:52 +02:00
										 |  |  |                     <div class="box-header with-border">
 | 
					
						
							|  |  |  |                         <h3 class="box-title">{{ 'reports_extra_options'|_ }}</h3>
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							| 
									
										
										
										
											2017-01-07 08:08:37 +01:00
										 |  |  |                     <div class="box-body" id="extra-options">
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                     {# loading indicator #}
 | 
					
						
							|  |  |  |                     <div class="overlay">
 | 
					
						
							|  |  |  |                         <i class="fa fa-refresh fa-spin"></i>
 | 
					
						
							| 
									
										
										
										
											2016-10-28 19:01:52 +02:00
										 |  |  |                     </div>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 <div class="box">
 | 
					
						
							|  |  |  |                     <div class="box-header with-border">
 | 
					
						
							|  |  |  |                         <h3 class="box-title">{{ 'reports_submit'|_ }}</h3>
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                     <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											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>
 | 
					
						
							| 
									
										
										
										
											2016-10-28 19:01:52 +02:00
										 |  |  |                     </div>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							| 
									
										
										
										
											2016-10-28 19:01:52 +02:00
										 |  |  |         </form>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-18 08:10:41 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-08 20:35:30 +01:00
										 |  |  |         <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
 | 
					
						
							| 
									
										
										
										
											2015-12-15 12:38:18 +01:00
										 |  |  |             <div class="box">
 | 
					
						
							|  |  |  |                 <div class="box-header with-border">
 | 
					
						
							|  |  |  |                     <h3 class="box-title">{{ 'quick_link_reports'|_ }}</h3>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |                 <div class="box-body">
 | 
					
						
							| 
									
										
										
										
											2019-02-02 06:10:52 +01:00
										 |  |  |                     <p>
 | 
					
						
							|  |  |  |                         {{ 'quick_link_examples'|_ }}
 | 
					
						
							|  |  |  |                     </p>
 | 
					
						
							| 
									
										
										
										
											2016-12-06 09:07:50 +01:00
										 |  |  |                     <h4>{{ ('quick_link_default_report')|_ }}</h4>
 | 
					
						
							|  |  |  |                     <ul>
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  |                         <li>
 | 
					
						
							|  |  |  |                             <a href="{{ route('reports.report.default',[accountList, 'currentMonthStart','currentMonthEnd']) }}">{{ 'report_this_month_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                         </li>
 | 
					
						
							|  |  |  |                         <li>
 | 
					
						
							|  |  |  |                             <a href="{{ route('reports.report.default',[accountList, 'currentYearStart','currentYearEnd']) }}">{{ 'report_this_year_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                         </li>
 | 
					
						
							| 
									
										
										
										
											2016-12-06 09:07:50 +01:00
										 |  |  |                         {% if customFiscalYear == 1 %}
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  |                             <li>
 | 
					
						
							|  |  |  |                                 <a href="{{ route('reports.report.default',[accountList, 'currentFiscalYearStart','currentFiscalYearEnd']) }}">{{ 'report_this_fiscal_year_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                             </li>
 | 
					
						
							| 
									
										
										
										
											2016-12-06 09:07:50 +01:00
										 |  |  |                         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2019-02-02 06:10:52 +01:00
										 |  |  |                         <li>
 | 
					
						
							|  |  |  |                             <a href="{{ route('reports.report.default',[accountList, 'previousMonthStart','previousMonthEnd']) }}">{{ 'report_last_month_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                         </li>
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  |                         <li>
 | 
					
						
							|  |  |  |                             <a href="{{ route('reports.report.default',[accountList, start.format('Ymd'),'currentMonthEnd']) }}">{{ 'report_all_time_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                         </li>
 | 
					
						
							| 
									
										
										
										
											2016-12-06 09:07:50 +01:00
										 |  |  |                     </ul>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                     <h4>{{ ('quick_link_audit_report')|_ }}</h4>
 | 
					
						
							|  |  |  |                     <ul>
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  |                         <li>
 | 
					
						
							|  |  |  |                             <a href="{{ route('reports.report.audit',[accountList, 'currentMonthStart','currentMonthEnd']) }}">{{ 'report_this_month_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                         </li>
 | 
					
						
							|  |  |  |                         <li>
 | 
					
						
							|  |  |  |                             <a href="{{ route('reports.report.audit',[accountList, 'currentYearStart','currentYearEnd']) }}">{{ 'report_this_year_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                         </li>
 | 
					
						
							| 
									
										
										
										
											2016-12-06 09:07:50 +01:00
										 |  |  |                         {% if customFiscalYear == 1 %}
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  |                             <li>
 | 
					
						
							|  |  |  |                                 <a href="{{ route('reports.report.audit',[accountList, 'currentFiscalYearStart','currentFiscalYearEnd']) }}">{{ 'report_this_fiscal_year_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                             </li>
 | 
					
						
							| 
									
										
										
										
											2016-12-06 09:07:50 +01:00
										 |  |  |                         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  |                         <li>
 | 
					
						
							|  |  |  |                             <a href="{{ route('reports.report.audit',[accountList, start.format('Ymd'),'currentMonthEnd']) }}">{{ 'report_all_time_quick'|_ }}</a>
 | 
					
						
							|  |  |  |                         </li>
 | 
					
						
							| 
									
										
										
										
											2016-12-06 09:07:50 +01:00
										 |  |  |                     </ul>
 | 
					
						
							| 
									
										
										
										
											2015-12-15 12:38:18 +01:00
										 |  |  |                     <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>
 | 
					
						
							| 
									
										
										
										
											2017-08-03 20:50:16 +02:00
										 |  |  |     <div style="height:400px;"> </div>
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-02 18:26:55 +02:00
										 |  |  | {% endblock %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  | {% block styles %}
 | 
					
						
							| 
									
										
										
										
											2018-11-02 19:59:29 +01:00
										 |  |  |     <link href="v1/css/bootstrap-multiselect.css?v={{ FF_VERSION }}" rel="stylesheet" type="text/css"/>
 | 
					
						
							| 
									
										
										
										
											2017-01-24 07:37:29 +01:00
										 |  |  | {% endblock %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-02 18:26:55 +02:00
										 |  |  | {% block scripts %}
 | 
					
						
							| 
									
										
										
										
											2020-01-04 11:16:14 +01:00
										 |  |  |     <script type="text/javascript" nonce="{{ JS_NONCE }}">
 | 
					
						
							| 
									
										
										
										
											2018-12-21 10:55:34 +01:00
										 |  |  |         var minDate = "{{ start.format('Y-m-d') }}";
 | 
					
						
							| 
									
										
										
										
											2015-12-04 06:57:08 +01:00
										 |  |  |         var picker;
 | 
					
						
							| 
									
										
										
										
											2018-01-08 19:20:41 +01:00
										 |  |  |         var selectAllText = "{{ trans('firefly.multi_select_select_all')|escape('js') }}";
 | 
					
						
							| 
									
										
										
										
											2017-12-02 06:37:23 +01:00
										 |  |  |         var nonSelectedText = "{{ trans('firefly.multi_select_no_selection')|escape('js') }}";
 | 
					
						
							| 
									
										
										
										
											2018-01-08 19:20:41 +01:00
										 |  |  |         var nSelectedText = "{{ trans('firefly.multi_select_n_selected')|escape('js') }}";
 | 
					
						
							|  |  |  |         var allSelectedText = "{{ trans('firefly.multi_select_all_selected')|escape('js')   }}";
 | 
					
						
							| 
									
										
										
										
											2017-12-02 06:37:23 +01:00
										 |  |  |         var filterPlaceholder = "{{ trans('firefly.multi_select_filter_placeholder')|escape('js') }}";
 | 
					
						
							| 
									
										
										
										
											2015-12-03 14:52:10 +01:00
										 |  |  |     </script>
 | 
					
						
							| 
									
										
										
										
											2020-01-04 11:16:14 +01:00
										 |  |  |     <script type="text/javascript" src="v1/js/lib/bootstrap-multiselect.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
 | 
					
						
							|  |  |  |     <script type="text/javascript" src="v1/js/ff/reports/all.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
 | 
					
						
							|  |  |  |     <script type="text/javascript" src="v1/js/ff/reports/index.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
 | 
					
						
							| 
									
										
										
										
											2015-05-02 18:26:55 +02:00
										 |  |  | {% endblock %}
 |