2017-12-10 13:03:10 -06:00
|
|
|
<table class="table table-hover sortable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-12-29 02:05:35 -06:00
|
|
|
<th style="width:66%;" data-defaultsign="az" data-defaultsort="asc">{{ 'category'|_ }}</th>
|
2017-12-12 11:22:29 -06:00
|
|
|
<th style="width:34%;" data-defaultsign="_19">{{ 'spent'|_ }}</th>
|
2017-12-10 13:03:10 -06:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for budgetId, entry in together %}
|
|
|
|
<tr>
|
2017-12-11 07:52:30 -06:00
|
|
|
<td data-value="{% if entry.budget == null %}zzzzzzzzzzz{% else %}{{ entry.budget }}{% endif %}">
|
|
|
|
{% if entry.budget == null %}
|
2017-12-10 13:03:10 -06:00
|
|
|
<a href="{{ route('budgets.no-budget') }}">{{ 'no_budget_squared'|_ }}</a>
|
|
|
|
{% else %}
|
2017-12-11 07:52:30 -06:00
|
|
|
<a href="{{ route('budgets.show', budgetId) }}">{{ entry.budget }}</a>
|
2017-12-10 13:03:10 -06:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
2017-12-11 07:52:30 -06:00
|
|
|
<td data-value="{{ entry.spent.grand_total }}">
|
|
|
|
{% if entry.spent.per_currency|length ==0 %}
|
2017-12-10 13:03:10 -06:00
|
|
|
{{ '0'|formatAmount }}
|
|
|
|
{% else %}
|
2017-12-11 07:52:30 -06:00
|
|
|
{% for expense in entry.spent.per_currency %}
|
2017-12-29 02:05:35 -06:00
|
|
|
{{ formatAmountBySymbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}<br/>
|
2017-12-10 13:03:10 -06:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|