firefly-iii/resources/views/reports/partials/accounts.twig
2016-11-20 17:36:11 +01:00

31 lines
1.3 KiB
Twig

<table class="table table-hover sortable">
<thead>
<tr>
<th data-defaultsign="az">{{ 'name'|_ }}</th>
<th data-defaultsign="_19" class="hidden-xs">{{ 'balanceStart'|_ }}</th>
<th data-defaultsign="_19" class="hidden-xs">{{ 'balanceEnd'|_ }}</th>
<th data-defaultsign="_19">{{ 'difference'|_ }}</th>
</tr>
</thead>
<tbody>
{% for account in accountReport.getAccounts %}
<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.startBalance }}">{{ account.startBalance|formatAmount }}</td>
<td class="hidden-xs" data-value="{{ account.endBalance }}">{{ account.endBalance|formatAmount }}</td>
<td data-value="{{ (account.endBalance - account.startBalance) }}">{{ (account.endBalance - account.startBalance)|formatAmount }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td><em>{{ 'sumOfSums'|_ }}</em></td>
<td class="hidden-xs">{{ accountReport.getStart|formatAmount }}</td>
<td class="hidden-xs">{{ accountReport.getEnd|formatAmount }}</td>
<td>{{ accountReport.getDifference|formatAmount }}</td>
</tr>
</tfoot>
</table>