mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
42 lines
1.9 KiB
Twig
42 lines
1.9 KiB
Twig
<table class="table table-hover sortable">
|
|
<thead>
|
|
<tr>
|
|
<th data-defaultsign="az">{{ 'name'|_ }}</th>
|
|
<th data-defaultsign="_19" class="hidden-xs" style="text-align: right;">{{ 'balanceStart'|_ }}</th>
|
|
<th data-defaultsign="_19" class="hidden-xs" style="text-align: right;">{{ 'balanceEnd'|_ }}</th>
|
|
<th data-defaultsign="_19" style="text-align: right;">{{ 'difference'|_ }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for account in accountReport.accounts %}
|
|
<tr>
|
|
<td data-value="{{ account.name }}">
|
|
<a href="{{ route('accounts.show',account.id) }}" title="{{ account.name }}">{{ account.name }}</a>
|
|
</td>
|
|
<td class="hidden-xs" data-value="{{ account.start_balance }}" style="text-align: right;">
|
|
{{ formatAmountByCurrency(account.currency, account.start_balance) }}
|
|
</td>
|
|
<td class="hidden-xs" data-value="{{ account.end_balance }}" style="text-align: right;">
|
|
{{ formatAmountByCurrency(account.currency, account.end_balance) }}</td>
|
|
<td style="text-align: right;"
|
|
data-value="{{ (account.end_balance - account.start_balance) }}">
|
|
{{ formatAmountByCurrency(account.currency, (account.end_balance - account.start_balance)) }}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td><em>{{ 'sumOfSums'|_ }}</em></td>
|
|
<td class="hidden-xs" style="text-align: right;">{{ accountReport.start|formatAmount }}</td>
|
|
<td class="hidden-xs" style="text-align: right;">{{ accountReport.end|formatAmount }}</td>
|
|
<td style="text-align: right;">{{ accountReport.difference|formatAmount }}</td>
|
|
</tr>
|
|
{% if accountReport.currencies > 1 %}
|
|
<tr>
|
|
<td colspan="4"><small class="text-warning">{{ 'multi_currency_report_sum'|_ }}</small></td>
|
|
</tr>
|
|
{% endif %}
|
|
</tfoot>
|
|
</table>
|