| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  | {% extends "./layout/default" %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block breadcrumbs %}
 | 
					
						
							|  |  |  |     {{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
 | 
					
						
							|  |  |  | {% endblock %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block content %}
 | 
					
						
							|  |  |  |     <!-- block with list of recurring transaction -->
 | 
					
						
							| 
									
										
										
										
											2018-08-07 20:47:05 +02:00
										 |  |  |     {% if total > 0 %}
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02: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">
 | 
					
						
							|  |  |  |                             {{ 'recurrences'|_ }}
 | 
					
						
							|  |  |  |                         </h3>
 | 
					
						
							|  |  |  |                         <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('recurring.create') }}"><i class="fa fa-plus fa-fw"></i> {{ ('make_new_recurring')|_ }}</a></li>
 | 
					
						
							|  |  |  |                                 </ul>
 | 
					
						
							|  |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                     <div class="box-body table-responsive no-padding">
 | 
					
						
							|  |  |  |                         <div style="padding:8px;">
 | 
					
						
							|  |  |  |                             <a href="{{ route('recurring.create') }}" class="btn btn-success"><i class="fa fa-plus fa-fw"></i> {{ ('make_new_recurring')|_ }}
 | 
					
						
							|  |  |  |                             </a>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         <!-- list of recurring here -->
 | 
					
						
							|  |  |  |                         <div style="padding-left:8px;">
 | 
					
						
							| 
									
										
										
										
											2018-08-07 20:47:05 +02:00
										 |  |  |                             {{ paginator.render|raw }}
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                         </div>
 | 
					
						
							|  |  |  |                         <table class="table table-hover sortable">
 | 
					
						
							|  |  |  |                             <thead>
 | 
					
						
							|  |  |  |                             <tr>
 | 
					
						
							|  |  |  |                                 <th class="hidden-sm hidden-xs" data-defaultsort="disabled"> </th>
 | 
					
						
							|  |  |  |                                 <th data-defaultsign="az">{{ trans('list.title') }}</th>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:45:02 +02:00
										 |  |  |                                 <th data-defaultsort="disabled">{{ trans('list.transaction_s') }}</th>
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                 <th data-defaultsort="disabled">{{ trans('list.repetitions') }}</th>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:45:02 +02:00
										 |  |  |                                 <th data-defaultsign="month" data-dateformat="{{ madMomentJS }}">{{ trans('list.next_due') }}</th>
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                             </tr>
 | 
					
						
							|  |  |  |                             </thead>
 | 
					
						
							|  |  |  |                             <tbody>
 | 
					
						
							| 
									
										
										
										
											2018-08-07 20:47:05 +02:00
										 |  |  |                             {% for rt in paginator %}
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                 <tr>
 | 
					
						
							|  |  |  |                                     <td class="hidden-sm hidden-xs">
 | 
					
						
							|  |  |  |                                         <div class="btn-group btn-group-xs edit_tr_buttons">
 | 
					
						
							|  |  |  |                                             <a class="btn btn-default btn-xs" title="{{ 'edit'|_ }}" href="{{ route('recurring.edit',rt.id) }}"><i
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:45:02 +02:00
										 |  |  |                                                         class="fa fa-fw fa-pencil"></i></a><a class="btn btn-danger btn-xs" title="{{ 'delete'|_ }}"
 | 
					
						
							|  |  |  |                                                                                               href="{{ route('recurring.delete',rt.id) }}"><i
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                                         class="fa fa-fw fa-trash-o"></i></a>
 | 
					
						
							|  |  |  |                                         </div>
 | 
					
						
							|  |  |  |                                     </td>
 | 
					
						
							|  |  |  |                                     <td data-value="{{ rt.title }}">
 | 
					
						
							| 
									
										
										
										
											2018-06-22 18:42:23 +02:00
										 |  |  |                                         {% if rt.active == false %}<s>{% endif %}
 | 
					
						
							| 
									
										
										
										
											2019-08-26 07:12:32 +02:00
										 |  |  |                                             {{ rt.type|_ }}:
 | 
					
						
							|  |  |  |                                             <a href="{{ route('recurring.show',rt.id) }}">{{ rt.title }}</a>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:45:02 +02:00
										 |  |  |                                             {% if rt.active == false %}</s> ({{ 'inactive'|_|lower }}){% endif %}
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                         {% if rt.description|length > 0 %}
 | 
					
						
							|  |  |  |                                             <small><br>{{ rt.description }}</small>
 | 
					
						
							|  |  |  |                                         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2018-06-22 18:42:23 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                     </td>
 | 
					
						
							|  |  |  |                                     <td data-value="0">
 | 
					
						
							|  |  |  |                                         <ol>
 | 
					
						
							|  |  |  |                                             {% for rtt in rt.transactions %}
 | 
					
						
							|  |  |  |                                                 <li>
 | 
					
						
							|  |  |  |                                                     {# normal amount + comma#}
 | 
					
						
							| 
									
										
										
										
											2018-12-21 06:51:21 +01:00
										 |  |  |                                                     {{ formatAmountBySymbol(rtt['amount'],rtt['currency_symbol'],rtt['currency_decimal_places']) }}{% if rtt['foreign_amount'] == null %},{% endif %}
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |                                                     {# foreign amount + comma #}
 | 
					
						
							|  |  |  |                                                     {% if null != rtt['foreign_amount'] %}
 | 
					
						
							| 
									
										
										
										
											2018-12-21 06:51:21 +01:00
										 |  |  |                                                         ({{ formatAmountBySymbol(rtt['foreign_amount'],rtt['foreign_currency_symbol'],rtt['foreign_currency_decimal_places']) }}),
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                                     {% endif %}
 | 
					
						
							| 
									
										
										
										
											2018-06-29 19:27:07 +02:00
										 |  |  |                                                     <a href="{{ route('accounts.show', rtt['source_id']) }}">{{ rtt['source_name'] }}</a>
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                                     →
 | 
					
						
							| 
									
										
										
										
											2018-06-29 19:27:07 +02:00
										 |  |  |                                                     <a href="{{ route('accounts.show', rtt['destination_id']) }}">{{ rtt['destination_name'] }}</a>
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                                 </li>
 | 
					
						
							|  |  |  |                                             {% endfor %}
 | 
					
						
							|  |  |  |                                         </ol>
 | 
					
						
							|  |  |  |                                     </td>
 | 
					
						
							|  |  |  |                                     <td>
 | 
					
						
							|  |  |  |                                         <ul>
 | 
					
						
							| 
									
										
										
										
											2019-08-26 07:12:32 +02:00
										 |  |  |                                             {% for rep in rt.repetitions %}
 | 
					
						
							| 
									
										
										
										
											2018-06-16 21:47:51 +02:00
										 |  |  |                                                 <li>{{ rep.description }}
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:45:02 +02:00
										 |  |  |                                                     {% if rep.repetition_skip == 1 %}
 | 
					
						
							|  |  |  |                                                         ({{ trans('firefly.recurring_skips_one')|lower }}).
 | 
					
						
							|  |  |  |                                                     {% endif %}
 | 
					
						
							|  |  |  |                                                     {% if rep.repetition_skip > 1 %}
 | 
					
						
							|  |  |  |                                                         ({{ trans('firefly.recurring_skips_more', {count: rep.repetition_skip})|lower }}).
 | 
					
						
							|  |  |  |                                                     {% endif %}
 | 
					
						
							| 
									
										
										
										
											2018-06-27 18:30:53 +02:00
										 |  |  |                                                     {% if rep.weekend == 3 %}
 | 
					
						
							|  |  |  |                                                         {{ 'will_jump_friday'|_ }}
 | 
					
						
							|  |  |  |                                                     {% endif %}
 | 
					
						
							|  |  |  |                                                     {% if rep.weekend == 4 %}
 | 
					
						
							|  |  |  |                                                         {{ 'will_jump_monday'|_ }}
 | 
					
						
							|  |  |  |                                                     {% endif %}
 | 
					
						
							|  |  |  |                                                     {% if rep.weekend == 2 %}
 | 
					
						
							|  |  |  |                                                         {{ 'except_weekends'|_ }}
 | 
					
						
							|  |  |  |                                                     {% endif %}
 | 
					
						
							| 
									
										
										
										
											2018-06-16 21:47:51 +02:00
										 |  |  |                                                 </li>
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                             {% endfor %}
 | 
					
						
							|  |  |  |                                         </ul>
 | 
					
						
							| 
									
										
										
										
											2018-06-21 18:57:51 +02:00
										 |  |  |                                         <p>
 | 
					
						
							|  |  |  |                                             {% if null == rt.repeat_until and rt.repetitions == 0 %}
 | 
					
						
							| 
									
										
										
										
											2018-06-27 18:30:53 +02:00
										 |  |  |                                                 {{ 'recurring_repeats_forever'|_ }}.
 | 
					
						
							| 
									
										
										
										
											2018-06-21 18:57:51 +02:00
										 |  |  |                                             {% endif %}
 | 
					
						
							|  |  |  |                                             {% if null != rt.repeat_until and rt.repetitions == 0 %}
 | 
					
						
							| 
									
										
										
										
											2018-06-27 18:30:53 +02:00
										 |  |  |                                                 {{ trans('firefly.recurring_repeats_until', {date: rt.repeat_until.formatLocalized(monthAndDayFormat)}) }}.
 | 
					
						
							| 
									
										
										
										
											2018-06-21 18:57:51 +02:00
										 |  |  |                                             {% endif %}
 | 
					
						
							| 
									
										
										
										
											2019-08-26 07:12:32 +02:00
										 |  |  |                                             {% if null == rt.repeat_until and rt.nr_of_repetitions != 0 %}
 | 
					
						
							|  |  |  |                                                 {{ trans('firefly.recurring_repeats_x_times', {count: rt.nr_of_repetitions}) }}.
 | 
					
						
							| 
									
										
										
										
											2018-06-21 18:57:51 +02:00
										 |  |  |                                             {% endif %}
 | 
					
						
							|  |  |  |                                         </p>
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                     </td>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:45:02 +02:00
										 |  |  |                                     {% if rt.occurrences|length == 0 %}
 | 
					
						
							|  |  |  |                                         <td> </td>
 | 
					
						
							|  |  |  |                                     {% else %}
 | 
					
						
							|  |  |  |                                         <td>{{ rt.occurrences[0].formatLocalized(monthAndDayFormat) }}</td>
 | 
					
						
							|  |  |  |                                     {% endif %}
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                                 </tr>
 | 
					
						
							|  |  |  |                             {% endfor %}
 | 
					
						
							|  |  |  |                             </tbody>
 | 
					
						
							|  |  |  |                         </table>
 | 
					
						
							|  |  |  |                         <div style="padding-left:8px;">
 | 
					
						
							| 
									
										
										
										
											2018-08-07 20:47:05 +02:00
										 |  |  |                             {{ paginator.render|raw }}
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |                         </div>
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                     <div class="box-footer">
 | 
					
						
							|  |  |  |                         <a href="{{ route('recurring.create') }}" class="btn btn-success"><i class="fa fa-plus fa-fw"></i> {{ ('make_new_recurring')|_ }}</a>
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  |         </div>
 | 
					
						
							|  |  |  |     {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-07 20:47:05 +02:00
										 |  |  |     {% if total == 0 and page == 1 %}
 | 
					
						
							| 
									
										
										
										
											2019-07-27 15:01:13 +02:00
										 |  |  |         {% include 'partials.empty' with {objectType: 'default', type: 'recurring',route: route('recurring.create')} %}
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  |     {% endif %}
 | 
					
						
							|  |  |  | {% endblock %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block styles %}
 | 
					
						
							| 
									
										
										
										
											2018-11-02 19:59:29 +01:00
										 |  |  |     <link rel="stylesheet" href="v1/css/bootstrap-sortable.css?v={{ FF_VERSION }}" type="text/css" media="all"/>
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  | {% endblock %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block scripts %}
 | 
					
						
							| 
									
										
										
										
											2020-01-04 11:16:14 +01:00
										 |  |  |     <script type="text/javascript" src="v1/js/lib/bootstrap-sortable.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>
 | 
					
						
							| 
									
										
										
										
											2018-06-10 16:59:03 +02:00
										 |  |  | {% endblock %}
 |