mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 23:41:10 +00:00
32 lines
1.2 KiB
Twig
32 lines
1.2 KiB
Twig
<table class="table table-hover sortable">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:50%;" data-defaultsign="az">{{ 'budget'|_ }}</th>
|
|
<th style="width:50%;text-align: right;" data-defaultsort="disabled">{{ 'spent'|_ }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for budgetId, entry in together %}
|
|
<tr>
|
|
<td style="width:50%;" data-value="{% if entry.budget.name|length ==0 %}{{ 'no_budget_squared'|_ }}{% else %}{{ entry.budget.name }}{% endif %}">
|
|
|
|
{% if entry.budget.name|length ==0 %}
|
|
<a href="{{ route('budgets.no-budget') }}">{{ 'no_budget_squared'|_ }}</a>
|
|
{% else %}
|
|
<a href="{{ route('budgets.show', budgetId) }}">{{ entry.budget.name }}</a>
|
|
{% endif %}
|
|
</td>
|
|
<td style="text-align: right;">
|
|
{% if entry.spent|length ==0 %}
|
|
{{ '0'|formatAmount }}
|
|
{% else %}
|
|
{% for expense in entry.spent %}
|
|
{{ formatAmountBySymbol(expense.sum, expense.currency.symbol, expense.currency.dp) }}<br />
|
|
{% endfor %}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|