2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-21 03:50:45 -05:00
|
|
|
<h3 class="box-title">{{ 'categories'|_ }}</h3>
|
2015-05-16 07:51:23 -05:00
|
|
|
</div>
|
2015-06-21 03:50:45 -05:00
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
2015-05-16 07:51:23 -05:00
|
|
|
<tr>
|
2015-06-21 03:50:45 -05:00
|
|
|
<th>{{ 'categories'|_ }}</th>
|
|
|
|
<th>{{ 'spent'|_ }}</th>
|
2015-05-16 07:51:23 -05:00
|
|
|
</tr>
|
2015-06-21 03:50:45 -05:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for cat in categories.getCategories %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('categories.show',cat.id) }}">{{ cat.name }}</a>
|
|
|
|
</td>
|
2015-12-11 11:15:37 -06:00
|
|
|
<td>{{ cat.spent|formatAmount }}</td>
|
2015-06-21 03:50:45 -05:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td><em>{{ 'sum'|_ }}</em></td>
|
2015-12-11 11:15:37 -06:00
|
|
|
<td>{{ categories.getTotal|formatAmount }}</td>
|
2015-06-21 03:50:45 -05:00
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-05-20 12:56:14 -05:00
|
|
|
</div>
|