| 
									
										
										
										
											2019-06-22 13:09:11 +02:00
										 |  |  | <table class="table table-striped table-condensed">
 | 
					
						
							|  |  |  |     <thead>
 | 
					
						
							|  |  |  |     <tr class="ignore">
 | 
					
						
							|  |  |  |         <th class="hidden-xs" colspan="2"> </th>
 | 
					
						
							|  |  |  |         <th>{{ trans('list.description') }}</th>
 | 
					
						
							|  |  |  |         <th style="text-align:right;">{{ trans('list.amount') }}</th>
 | 
					
						
							|  |  |  |         <th class="hidden-xs hidden-sm hidden-md">{{ trans('list.reconcile') }}</th>
 | 
					
						
							|  |  |  |         <th class="hidden-xs hidden-sm">{{ trans('list.date') }}</th>
 | 
					
						
							|  |  |  |         <th class="hidden-xs hidden-sm hidden-md">{{ trans('list.from') }}</th>
 | 
					
						
							|  |  |  |         <th class="hidden-xs hidden-sm hidden-md">{{ trans('list.to') }}</th>
 | 
					
						
							| 
									
										
										
										
											2020-05-01 17:29:50 -03:00
										 |  |  |         <th class="hidden-xs"><i class="fa fa-pie-chart fa-fw" title="{{ trans('list.budget') }}"></i></th>
 | 
					
						
							| 
									
										
										
										
											2020-05-01 18:54:08 -03:00
										 |  |  |         <th class="hidden-xs"><i class="fa fa-bookmark fa-fw" title="{{ trans('list.category') }}"></i></th>
 | 
					
						
							| 
									
										
										
										
											2019-06-22 13:09:11 +02:00
										 |  |  |     </tr>
 | 
					
						
							|  |  |  |     </thead>
 | 
					
						
							|  |  |  |     <tbody>
 | 
					
						
							|  |  |  |     {# data for previous/next markers #}
 | 
					
						
							|  |  |  |     {% set endSet = false %}
 | 
					
						
							|  |  |  |     {% set startSet = false %}
 | 
					
						
							|  |  |  |     {% for journal in journals %}
 | 
					
						
							|  |  |  |         {# start marker #}
 | 
					
						
							|  |  |  |         {% if journal.date < start and startSet == false %}
 | 
					
						
							|  |  |  |             <tr>
 | 
					
						
							|  |  |  |                 <td colspan="5">
 | 
					
						
							|  |  |  |                      
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |                 <td colspan="3">
 | 
					
						
							|  |  |  |                     <span class="label label-default">
 | 
					
						
							|  |  |  |                         {{ trans('firefly.start_of_reconcile_period', {period: start.formatLocalized(monthAndDayFormat) }) }}
 | 
					
						
							|  |  |  |                     </span>
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |                 <td colspan="2">
 | 
					
						
							|  |  |  |                      
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |             </tr>
 | 
					
						
							|  |  |  |             {% set startSet = true %}
 | 
					
						
							|  |  |  |         {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         {# end marker #}
 | 
					
						
							|  |  |  |         {% if journal.date <= end and endSet == false %}
 | 
					
						
							|  |  |  |             <tr>
 | 
					
						
							|  |  |  |                 <td colspan="5">
 | 
					
						
							|  |  |  |                      
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |                 <td colspan="3">
 | 
					
						
							|  |  |  |                     <span class="label label-default">
 | 
					
						
							|  |  |  |                         {{ trans('firefly.end_of_reconcile_period', {period: end.formatLocalized(monthAndDayFormat) }) }}
 | 
					
						
							|  |  |  |                     </span>
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |                 <td colspan="2">
 | 
					
						
							|  |  |  |                      
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |             </tr>
 | 
					
						
							|  |  |  |             {% set endSet = true %}
 | 
					
						
							|  |  |  |         {% endif %}
 | 
					
						
							|  |  |  |         <tr data-date="{{ journal.date.format('Y-m-d') }}" data-id="{{ journal.transaction_journal_id }}">
 | 
					
						
							|  |  |  |             <td class="hidden-xs">
 | 
					
						
							|  |  |  |                 <div class="btn-group btn-group-xs">
 | 
					
						
							|  |  |  |                     <a href="{{ route('transactions.edit', [journal.transaction_group_id]) }}" class="btn btn-xs btn-default"><i
 | 
					
						
							|  |  |  |                                 class="fa fa-fw fa-pencil"></i></a>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <!-- icon -->
 | 
					
						
							|  |  |  |             <td class="hidden-xs">
 | 
					
						
							|  |  |  |                 {% if journal.transaction_type_type == 'Withdrawal' %}
 | 
					
						
							|  |  |  |                     <i class="fa fa-long-arrow-left fa-fw" title="{{ trans('firefly.Withdrawal') }}"></i>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 {% if journal.transaction_type_type == 'Deposit' %}
 | 
					
						
							|  |  |  |                     <i class="fa fa-long-arrow-right fa-fw" title="{{ trans('firefly.Deposit') }}"></i>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 {% if journal.transaction_type_type == 'Transfer' %}
 | 
					
						
							|  |  |  |                     <i class="fa fa-exchange fa-fw" title="{{ trans('firefly.Deposit') }}"></i>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 {% if journal.transaction_type_type == 'Reconciliation' %}
 | 
					
						
							|  |  |  |                     <i class="fa-fw fa fa-calculator" title="{{ trans('firefly.reconciliation_transaction') }}"></i>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							|  |  |  |                 {% if journal.transaction_type_type == 'Opening balance' %}
 | 
					
						
							|  |  |  |                     <i class="fa-fw fa fa-star-o" title="{{ trans('firefly.Opening balance') }}"></i>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <!-- description -->
 | 
					
						
							|  |  |  |             <td>
 | 
					
						
							|  |  |  |                 <a href="{{ route('transactions.show', [journal.transaction_group_id]) }}" title="{{ journal.description }}">
 | 
					
						
							|  |  |  |                     {% if journal.group_title %}
 | 
					
						
							|  |  |  |                         <span class="text-muted"><i class="fa fa-fw fa-share-alt" aria-hidden="true"></i></span> {{ journal.group_title }}:
 | 
					
						
							|  |  |  |                     {% endif %}
 | 
					
						
							|  |  |  |                     {{ journal.description }}</a>
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <td style="text-align: right;">
 | 
					
						
							|  |  |  |                 <span style="margin-right:5px;">
 | 
					
						
							| 
									
										
										
										
											2019-08-16 06:21:10 +02:00
										 |  |  |                     {{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}
 | 
					
						
							| 
									
										
										
										
											2019-06-22 13:09:11 +02:00
										 |  |  |                 {% if null != journal.foreign_amount %}
 | 
					
						
							| 
									
										
										
										
											2019-08-16 06:21:10 +02:00
										 |  |  |                     ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
 | 
					
						
							| 
									
										
										
										
											2019-06-22 13:09:11 +02:00
										 |  |  |                 {% endif %}
 | 
					
						
							|  |  |  |                 </span>
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <td>
 | 
					
						
							|  |  |  |                 {% if journal.date >= start and journal.date <= end  %}
 | 
					
						
							|  |  |  |                     {% if journal.reconciled %}
 | 
					
						
							|  |  |  |                         <i class="fa fa-check" aria-hidden="true"></i>
 | 
					
						
							|  |  |  |                         <input type="hidden" name="cleared[]" data-younger="{% if journal.date < start %}true{% else %}false{% endif %}"
 | 
					
						
							|  |  |  |                         data-inrange="{% if journal.date >= start and journal.date <= end  %}true{% else %}false"{% endif %}"
 | 
					
						
							|  |  |  |                         class="cleared" data-id="{{ journal.transaction_journal_id }}" value="{{ journal.amount }}">
 | 
					
						
							|  |  |  |                     {% else %}
 | 
					
						
							|  |  |  |                         <input type="checkbox" name="reconciled[]"
 | 
					
						
							|  |  |  |                                data-younger="{% if journal.date < start %}true{% else %}false{% endif %}"
 | 
					
						
							|  |  |  |                         data-inrange="{% if journal.date >= start and journal.date <= end  %}true{% else %}false"{% endif %}"
 | 
					
						
							|  |  |  |                         value="{{ journal.amount }}" data-id="{{ journal.transaction_journal_id }}" disabled class="reconcile_checkbox">
 | 
					
						
							|  |  |  |                     {% endif %}
 | 
					
						
							|  |  |  |                 {% else %}
 | 
					
						
							|  |  |  |                     <!-- if not in range, just show reconciliation status -->
 | 
					
						
							|  |  |  |                     {% if journal.reconciled %}
 | 
					
						
							|  |  |  |                         <i class="fa fa-check" aria-hidden="true"></i>
 | 
					
						
							|  |  |  |                     {% else %}
 | 
					
						
							|  |  |  |                         <!-- TODO include icon -->
 | 
					
						
							|  |  |  |                     {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <td class="hidden-sm hidden-xs">
 | 
					
						
							|  |  |  |                 {{ journal.date.formatLocalized(monthAndDayFormat) }}
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <td class="hidden-xs hidden-sm hidden-md">
 | 
					
						
							|  |  |  |                 <a href="{{ route('accounts.show', [journal.source_account_id]) }}" title="{{ journal.source_account_iban|default(journal.source_account_name) }}">{{ journal.source_account_name }}</a>
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <td class="hidden-xs hidden-sm hidden-md">
 | 
					
						
							|  |  |  |                 <a href="{{ route('accounts.show', [journal.destination_account_id]) }}" title="{{ journal.destination_account_iban|default(journal.destination_account_name) }}">{{ journal.destination_account_name }}</a>
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  |             {#
 | 
					
						
							|  |  |  |             <td class="hidden-xs">
 | 
					
						
							|  |  |  |                 {{ transaction|transactionBudgets }}
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  |             <td class="hidden-xs">
 | 
					
						
							|  |  |  |                 {{ transaction|transactionCategories }}
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  |             #}
 | 
					
						
							|  |  |  |         </tr>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     {% endfor %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     {# if the start marker has not been generated yet, do it now, at the end of the loop. #}
 | 
					
						
							|  |  |  |     {% if startSet == false %}
 | 
					
						
							|  |  |  |         <tr>
 | 
					
						
							|  |  |  |             <td colspan="5">
 | 
					
						
							|  |  |  |                  
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  |             <td colspan="3">
 | 
					
						
							|  |  |  |                 <span class="label label-default">
 | 
					
						
							|  |  |  |                     {{ trans('firefly.start_of_reconcile_period', {period: start.formatLocalized(monthAndDayFormat) }) }}
 | 
					
						
							|  |  |  |                 </span>
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  |             <td colspan="2">
 | 
					
						
							|  |  |  |                  
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  |         </tr>
 | 
					
						
							|  |  |  |         {% set startSet = true %}
 | 
					
						
							|  |  |  |     {% endif %}
 | 
					
						
							|  |  |  |     </tbody>
 | 
					
						
							|  |  |  | </table>
 |