2015-06-20 00:29:25 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-05-16 06:53:08 -05:00
|
|
|
<i class="fa fa-long-arrow-left fa-fw"></i>
|
|
|
|
{{ 'expenses'|_ }} ({{ trans('firefly.topX',{number: expenseTopLength}) }})
|
|
|
|
</div>
|
|
|
|
<table class="table">
|
|
|
|
{% for expense in expenses.getExpenses %}
|
|
|
|
{% if loop.index > expenseTopLength %}
|
|
|
|
<tr class="collapse out expenseCollapsed">
|
|
|
|
{% else %}
|
|
|
|
<tr>
|
|
|
|
{% endif %}
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('accounts.show',expense.id) }}">{{ expense.name }}</a>
|
|
|
|
{% if expense.count > 1 %}
|
|
|
|
<br /><small>{{ expense.count }} {{ 'transactions'|_|lower }}</small>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2015-05-20 00:20:02 -05:00
|
|
|
<td><span class="text-danger">{{ (expense.amount)|formatAmountPlain }}</span></td>
|
2015-05-16 06:53:08 -05:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
{% if expenses.getExpenses|length > expenseTopLength %}
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="active">
|
|
|
|
<a href="#" id="showExpenses">{{ trans('firefly.showTheRest',{number:incomeTopLength}) }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
<tr>
|
|
|
|
<td><em>{{ 'sum'|_ }}</em></td>
|
2015-05-20 00:20:02 -05:00
|
|
|
<td><span class="text-danger">{{ (expenses.getTotal)|formatAmountPlain }}</span></td>
|
2015-05-16 06:53:08 -05:00
|
|
|
</tr>
|
|
|
|
</table>
|
2015-05-20 12:56:14 -05:00
|
|
|
</div>
|