mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 13:44:58 -06:00
57 lines
2.2 KiB
Twig
57 lines
2.2 KiB
Twig
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'budgets'|_ }} ({{ 'splitByAccount'|_|lower }})</h3>
|
|
</div>
|
|
<div class="box-body table-responsive no-padding">
|
|
<table class="table table-hover">
|
|
<!-- build balance report header -->
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">{{ 'budgets'|_ }}</th>
|
|
{% for account in balance.getBalanceHeader.getAccounts %}
|
|
<th><a href="{{ route('accounts.show',account.id) }}">{{ account.name }}</a></th>
|
|
{% endfor %}
|
|
<th>
|
|
{{ 'leftInBudget'|_ }}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<!-- make rows -->
|
|
{% for balanceLine in balance.getBalanceLines %}
|
|
<tr>
|
|
|
|
{% if balanceLine.getBudget %}
|
|
<td>
|
|
<a href="{{ route('budgets.show',balanceLine.getBudget.id) }}">{{ balanceLine.getTitle }}</a>
|
|
</td>
|
|
<td>
|
|
[source]
|
|
<!-- { { balanceLine.getRepetition.amount|formatAmount } } -->
|
|
</td>
|
|
{% else %}
|
|
<td colspan="2">{{ balanceLine.getTitle }}</td>
|
|
{% endif %}
|
|
|
|
{% for balanceEntry in balanceLine.getBalanceEntries %}
|
|
<td>
|
|
{% if balanceEntry.getSpent != 0 %}
|
|
<span class="text-danger">{{ (balanceEntry.getSpent)|formatAmountPlain }}</span>
|
|
{% endif %}
|
|
{% if balanceEntry.getLeft != 0 %}
|
|
<span class="text-success">{{ (balanceEntry.getLeft)|formatAmountPlain }}</span>
|
|
{% endif %}
|
|
</td>
|
|
{% endfor %}
|
|
<td>
|
|
{{ balanceLine.leftOfRepetition|formatAmount }}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|