mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-23 15:03:14 -06:00
32 lines
1.0 KiB
Twig
32 lines
1.0 KiB
Twig
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'categories'|_ }}</h3>
|
|
</div>
|
|
<div class="box-body table-responsive no-padding">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ 'categories'|_ }}</th>
|
|
<th>{{ 'spent'|_ }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for cat in categories.getCategories %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{ route('categories.show',cat.id) }}">{{ cat.name }}</a>
|
|
</td>
|
|
<td><span class="text-danger">{{ (cat.spent)|formatAmountPlain }}</span></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td><em>{{ 'sum'|_ }}</em></td>
|
|
<td class="text-danger">{{ categories.getTotal|formatAmountPlain }}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|