| 
									
										
										
										
											2016-11-20 19:11:10 +01:00
										 |  |  | <table class="table table-hover sortable">
 | 
					
						
							| 
									
										
										
										
											2016-10-30 18:29:26 +01:00
										 |  |  |     <thead>
 | 
					
						
							|  |  |  |     <tr>
 | 
					
						
							| 
									
										
										
										
											2016-11-20 19:11:10 +01:00
										 |  |  |         <th data-defaultsign="az">{{ 'budget'|_ }}</th>
 | 
					
						
							|  |  |  |         <th data-defaultsign="month" class="hidden-xs">{{ 'date'|_ }}</th>
 | 
					
						
							| 
									
										
										
										
											2017-03-29 21:20:54 +02:00
										 |  |  |         <th data-defaultsign="_19" style="text-align: right;" class="hidden-xs">{{ 'budgeted'|_ }}</th>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |         <th data-defaultsign="_19" class="hidden-xs">{{ trans('list.percentage') }}</th>
 | 
					
						
							| 
									
										
										
										
											2017-01-02 21:04:17 +01:00
										 |  |  |         <th data-defaultsign="_19" style="text-align: right;">{{ 'spent'|_ }}</th>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |         <th data-defaultsign="_19" class="hidden-xs">{{ trans('list.percentage') }}</th>
 | 
					
						
							| 
									
										
										
										
											2017-03-29 21:20:54 +02:00
										 |  |  |         <th data-defaultsort="disabled" class="hidden-xs"> </th>
 | 
					
						
							|  |  |  |         <th data-defaultsign="_19" style="text-align: right;" class="hidden-xs">{{ 'left'|_ }}</th>
 | 
					
						
							| 
									
										
										
										
											2017-01-02 21:04:17 +01:00
										 |  |  |         <th data-defaultsign="_19" style="text-align: right;">{{ 'overspent'|_ }}</th>
 | 
					
						
							| 
									
										
										
										
											2016-10-30 18:29:26 +01:00
										 |  |  |     </tr>
 | 
					
						
							|  |  |  |     </thead>
 | 
					
						
							|  |  |  |     <tbody>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |     {% for budget in report.budgets %}
 | 
					
						
							|  |  |  |         {% for budget_limit in budget.budget_limits %}
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |             <tr>
 | 
					
						
							|  |  |  |                 {% if budget.no_budget %}
 | 
					
						
							|  |  |  |                     <td data-value="zzz">
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                         <em>{{ 'no_budget'|_ }} ({{ budget_limit.currency_name }})</em>
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                     </td>
 | 
					
						
							|  |  |  |                 {% else %}
 | 
					
						
							|  |  |  |                     <td data-value="{{ budget.budget_name }}">
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                         <a href="{{ route('budgets.show', [budget.budget_id]) }}">{{ budget.budget_name }}</a>
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                     </td>
 | 
					
						
							|  |  |  |                 {% endif %}
 | 
					
						
							|  |  |  |                 <!-- date, hidden on mobile  -->
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                 <td class="hidden-xs" data-value="{{ budget_limit.start_date.format('Y-m-d')|default('0000-00-00') }}">
 | 
					
						
							|  |  |  |                     {% if null != budget_limit.budget_limit_id %}
 | 
					
						
							|  |  |  |                         <a href="{{ route('budgets.show.limit', [budget.budget_id, budget_limit.budget_limit_id]) }}">
 | 
					
						
							|  |  |  |                             {{ budget_limit.start_date.formatLocalized(monthAndDayFormat) }}
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                             —
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                             {{ budget_limit.end_date.formatLocalized(monthAndDayFormat) }}
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                         </a>
 | 
					
						
							|  |  |  |                     {% endif %}
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 <!-- budgeted, hidden on mobile -->
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                 <td data-value="{{ budget_limit.budgeted|default(0) }}" style="text-align: right;" class="hidden-xs">
 | 
					
						
							|  |  |  |                     {% if null != budget_limit.budgeted %}
 | 
					
						
							|  |  |  |                         {{ formatAmountBySymbol(budget_limit.budgeted, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                     {% endif %}
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                 <!-- percentage, hidden -->
 | 
					
						
							|  |  |  |                 <td data-value="{{ budget_limit.budgeted_pct|default(0) }}" class="hidden-xs">
 | 
					
						
							|  |  |  |                     {{ budget_limit.budgeted_pct }}%
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |                 <!-- spent, visible on mobile -->
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                 <td data-value="{{ budget_limit.spent|default(0) }}" style="text-align: right;">
 | 
					
						
							|  |  |  |                     {{ formatAmountBySymbol(budget_limit.spent, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |                 <!-- percentage, hidden -->
 | 
					
						
							|  |  |  |                 <td data-value="{{ budget_limit.spent_pct|default(0) }}" class="hidden-xs">
 | 
					
						
							|  |  |  |                     {{ budget_limit.spent_pct }}%
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                 </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                 <!-- info button, not visible on mobile -->
 | 
					
						
							|  |  |  |                 <td class="hidden-xs">
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                     {% if budget_limit.spent != 0 %}
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                         <i class="fa fa-fw text-muted fa-info-circle firefly-info-button"
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                            data-location="budget-spent-amount" data-currency-id="{{ budget_limit.currency_id }}" data-budget-id="{{ budget.budget_id }}"></i>
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                     {% endif %}
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                 <!-- left, hidden on mobile  -->
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                 <td data-value="{{ budget_limit.left|default(0) }}" style="text-align: right;" class="hidden-xs">
 | 
					
						
							|  |  |  |                     {% if null != budget_limit.left %}
 | 
					
						
							|  |  |  |                         {{ formatAmountBySymbol(budget_limit.left, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                     {% endif %}
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |                 <!-- overspent, visible. -->
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |                 <td data-value="{{ budget_limit.overspent|default(0) }}" style="text-align: right;">
 | 
					
						
							|  |  |  |                     {% if null != budget_limit.overspent %}
 | 
					
						
							|  |  |  |                         {{ formatAmountBySymbol(budget_limit.overspent, budget_limit.currency_symbol, budget_limit.currency_decimal_places) }}
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |                     {% endif %}
 | 
					
						
							|  |  |  |                 </td>
 | 
					
						
							|  |  |  |             </tr>
 | 
					
						
							|  |  |  |         {% endfor %}
 | 
					
						
							| 
									
										
										
										
											2016-10-30 18:29:26 +01:00
										 |  |  |     {% endfor %}
 | 
					
						
							|  |  |  |     </tbody>
 | 
					
						
							|  |  |  |     <tfoot>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |     {% for sum in report.sums %}
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |         <tr>
 | 
					
						
							|  |  |  |             <td colspan="2"><em>{{ 'sum'|_ }} ({{ sum.currency_name }})</em></td>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |             <td style="text-align: right;">{{ formatAmountBySymbol(sum.budgeted, sum.currency_symbol, sum.currency_decimal_places) }}</td>
 | 
					
						
							|  |  |  |             <td> </td>
 | 
					
						
							|  |  |  |             <td style="text-align: right;">{{ formatAmountBySymbol(sum.spent, sum.currency_symbol, sum.currency_decimal_places) }}</td>
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |             <td> </td>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |             <td> </td>
 | 
					
						
							|  |  |  |             <td style="text-align: right;">{{ formatAmountBySymbol(sum.left, sum.currency_symbol, sum.currency_decimal_places) }}</td>
 | 
					
						
							|  |  |  |             <td style="text-align: right;">{{ formatAmountBySymbol(sum.overspent, sum.currency_symbol, sum.currency_decimal_places) }}</td>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-16 08:27:08 +02:00
										 |  |  |         </tr>
 | 
					
						
							| 
									
										
										
										
											2019-09-04 09:20:26 +02:00
										 |  |  |         {% endfor %}
 | 
					
						
							| 
									
										
										
										
											2016-10-30 18:29:26 +01:00
										 |  |  |     </tfoot>
 | 
					
						
							|  |  |  | </table>
 |