| 
									
										
										
										
											2017-12-21 21:18:30 +01:00
										 |  |  | <div style="padding-left:8px;">
 | 
					
						
							|  |  |  |     {{ accounts.render|raw }}
 | 
					
						
							|  |  |  | </div>
 | 
					
						
							| 
									
										
										
										
											2020-08-28 21:29:47 +02:00
										 |  |  | <table class="table table-responsive table-hover" id="sortable-table">
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |     <thead>
 | 
					
						
							|  |  |  |     <tr>
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |         <th class="hidden-sm hidden-xs"> </th>
 | 
					
						
							|  |  |  |         <th>{{ trans('list.name') }}</th>
 | 
					
						
							| 
									
										
										
										
											2019-06-22 10:25:34 +02:00
										 |  |  |         {% if objectType == 'asset' %}
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |             <th class="hidden-sm hidden-xs hidden-md">{{ trans('list.role') }}</th>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2019-06-22 10:25:34 +02:00
										 |  |  |         {% if objectType == 'liabilities' %}
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |             <th>{{ trans('list.liability_type') }}</th>
 | 
					
						
							|  |  |  |             <th>{{ trans('list.interest') }} ({{ trans('list.interest_period') }})</th>
 | 
					
						
							| 
									
										
										
										
											2018-08-05 18:59:15 +02:00
										 |  |  |         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |         <th class="hidden-sm hidden-xs">{{ trans('form.account_number') }}</th>
 | 
					
						
							|  |  |  |         <th>{{ trans('list.currentBalance') }}</th>
 | 
					
						
							| 
									
										
										
										
											2015-06-25 17:06:20 +02:00
										 |  |  |         <th class="hidden-sm hidden-xs">{{ trans('list.active') }}</th>
 | 
					
						
							| 
									
										
										
										
											2018-08-05 18:59:15 +02:00
										 |  |  |         {# hide last activity to make room for other stuff #}
 | 
					
						
							| 
									
										
										
										
											2019-06-22 10:25:34 +02:00
										 |  |  |         {% if objectType != 'liabilities' %}
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |             <th class="hidden-sm hidden-xs hidden-md">{{ trans('list.lastActivity') }}</th>
 | 
					
						
							| 
									
										
										
										
											2018-08-05 18:59:15 +02:00
										 |  |  |         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |         <th style="width:15%;"
 | 
					
						
							| 
									
										
										
										
											2017-12-21 21:18:30 +01:00
										 |  |  |             class="hidden-sm hidden-xs hidden-md">{{ trans('list.balanceDiff') }}</th>
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |         <th class="hidden-sm hidden-xs"> </th>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |     </tr>
 | 
					
						
							|  |  |  |     </thead>
 | 
					
						
							|  |  |  |     <tbody>
 | 
					
						
							|  |  |  |     {% for account in accounts %}
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |         <tr class="sortable-object" data-id="{{ account.id }}" data-order="{{ account.order }}" data-position="{{ loop.index0 }}">
 | 
					
						
							| 
									
										
										
										
											2016-03-14 17:18:28 +01:00
										 |  |  |             <td class="hidden-sm hidden-xs">
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |                 <i class="fa fa-fw fa-bars object-handle"></i>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |             </td>
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |             <td>
 | 
					
						
							| 
									
										
										
										
											2019-12-30 12:12:08 +01:00
										 |  |  |                 <a href="{{ route('accounts.show',account.id) }}">{{ account.name }}</a>
 | 
					
						
							|  |  |  |                 {% if account.location %}
 | 
					
						
							|  |  |  |                     <i class="fa fa-fw fa-map-marker"></i>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							| 
									
										
										
										
											2020-03-19 18:20:23 +01:00
										 |  |  |                 {% if account.attachments.count > 0 %}
 | 
					
						
							|  |  |  |                     <i class="fa fa-fw fa-paperclip"></i>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							| 
									
										
										
										
											2019-12-30 12:12:08 +01:00
										 |  |  |             </td>
 | 
					
						
							| 
									
										
										
										
											2019-06-22 10:25:34 +02:00
										 |  |  |             {% if objectType == "asset" %}
 | 
					
						
							| 
									
										
										
										
											2017-06-30 07:17:25 +02:00
										 |  |  |                 <td class="hidden-sm hidden-xs hidden-md">
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |                     {% for entry in account.accountmeta %}
 | 
					
						
							| 
									
										
										
										
											2019-06-21 19:10:24 +02:00
										 |  |  |                         {% if entry.name == 'account_role' %}
 | 
					
						
							| 
									
										
										
										
											2017-01-21 09:07:10 +01:00
										 |  |  |                             {{ ('account_role_'~entry.data)|_ }}
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |                         {% endif %}
 | 
					
						
							|  |  |  |                     {% endfor %}
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |             {% endif %}
 | 
					
						
							| 
									
										
										
										
											2019-06-22 10:25:34 +02:00
										 |  |  |             {% if objectType == 'liabilities' %}
 | 
					
						
							| 
									
										
										
										
											2018-08-05 18:59:15 +02:00
										 |  |  |                 <td>{{ account.accountTypeString }}</td>
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |             <td>
 | 
					
						
							| 
									
										
										
										
											2018-08-05 18:59:15 +02:00
										 |  |  |                 {{ account.interest }}% ({{ account.interestPeriod|lower }})
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							|  |  |  |             {% endif %}
 | 
					
						
							| 
									
										
										
										
											2019-06-21 19:10:24 +02:00
										 |  |  |             <td class="hidden-sm hidden-xs">{{ account.iban }}{% if account.iban == '' %}{{ accountGetMetaField(account, 'account_number') }}{% endif %}</td>
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |             <td style="text-align: right;">
 | 
					
						
							| 
									
										
										
										
											2017-01-02 19:27:27 +01:00
										 |  |  |                 <span style="margin-right:5px;">
 | 
					
						
							| 
									
										
										
										
											2017-04-13 21:36:23 +02:00
										 |  |  |                 {{ formatAmountByAccount(account, account.endBalance) }}
 | 
					
						
							| 
									
										
										
										
											2017-01-02 19:27:27 +01:00
										 |  |  |                 </span>
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |             <td class="hidden-sm hidden-xs">
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |                 {% if account.active %}
 | 
					
						
							|  |  |  |                     <i class="fa fa-fw fa-check"></i>
 | 
					
						
							|  |  |  |                 {% else %}
 | 
					
						
							|  |  |  |                     <i class="fa fa-fw fa-ban"></i>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							| 
									
										
										
										
											2018-08-05 18:59:15 +02:00
										 |  |  |             {# hide last activity to make room for other stuff #}
 | 
					
						
							| 
									
										
										
										
											2019-06-22 10:25:34 +02:00
										 |  |  |             {% if objectType != 'liabilities' %}
 | 
					
						
							| 
									
										
										
										
											2018-08-05 18:59:15 +02:00
										 |  |  |                 {% if account.lastActivityDate %}
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |                     <td class="hidden-sm hidden-xs hidden-md">
 | 
					
						
							| 
									
										
										
										
											2018-08-05 18:59:15 +02:00
										 |  |  |                         {{ account.lastActivityDate.formatLocalized(monthAndDayFormat) }}
 | 
					
						
							|  |  |  |                     </td>
 | 
					
						
							|  |  |  |                 {% else %}
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |                     <td class="hidden-sm hidden-xs hidden-md">
 | 
					
						
							| 
									
										
										
										
											2018-08-05 18:59:15 +02:00
										 |  |  |                         <em>{{ 'never'|_ }}</em>
 | 
					
						
							|  |  |  |                     </td>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |             {% endif %}
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |             <td class="hidden-sm hidden-xs hidden-md" style="text-align: right;">
 | 
					
						
							| 
									
										
										
										
											2017-01-02 19:27:27 +01:00
										 |  |  |                 <span style="margin-right:5px;">
 | 
					
						
							| 
									
										
										
										
											2017-04-13 21:36:23 +02:00
										 |  |  |                     {{ formatAmountByAccount(account, account.difference) }}
 | 
					
						
							| 
									
										
										
										
											2017-01-02 19:27:27 +01:00
										 |  |  |                 </span>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |             </td>
 | 
					
						
							| 
									
										
										
										
											2020-07-24 16:40:32 +02:00
										 |  |  |             <td class="hidden-sm hidden-xs">
 | 
					
						
							|  |  |  |                 <div class="btn-group btn-group-xs pull-right">
 | 
					
						
							|  |  |  |                     <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
 | 
					
						
							|  |  |  |                         {{ 'actions'|_ }} <span class="caret"></span></button>
 | 
					
						
							|  |  |  |                     <ul class="dropdown-menu dropdown-menu-right" role="menu">
 | 
					
						
							|  |  |  |                         <li><a href="{{ route('accounts.edit',account.id) }}"><i class="fa fa-fw fa-pencil"></i> {{ 'edit'|_ }}</a></li>
 | 
					
						
							|  |  |  |                         <li><a href="{{ route('accounts.delete',account.id) }}"><i class="fa fa-fw fa-trash"></i> {{ 'delete'|_ }}</a></li>
 | 
					
						
							|  |  |  |                         {% if objectType == 'asset' %}
 | 
					
						
							|  |  |  |                         <li><a href="{{ route('accounts.reconcile',account.id) }}"><i class="fa fa-fw fa-check"></i> {{ 'reconcile_this_account'|_ }}</a></li>
 | 
					
						
							|  |  |  |                         {% endif %}
 | 
					
						
							|  |  |  |                     </ul>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </td>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 22:44:35 +02:00
										 |  |  |         </tr>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     {% endfor %}
 | 
					
						
							|  |  |  |     </tbody>
 | 
					
						
							| 
									
										
										
										
											2015-05-05 12:51:57 +02:00
										 |  |  | </table>
 | 
					
						
							| 
									
										
										
										
											2017-12-21 21:18:30 +01:00
										 |  |  | <div style="padding-left:8px;">
 | 
					
						
							|  |  |  |     {{ accounts.render|raw }}
 | 
					
						
							| 
									
										
										
										
											2017-12-22 18:32:43 +01:00
										 |  |  | </div>
 |