mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-31 19:27:51 -06:00
a0ea3882e1
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
46 lines
1.7 KiB
Twig
46 lines
1.7 KiB
Twig
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'income'|_ }}</h3>
|
|
</div>
|
|
<div class="box-body table-responsive no-padding">
|
|
<table class="table table-hover">
|
|
<tbody>
|
|
{% for income in incomes.getIncomes %}
|
|
{% if loop.index > incomeTopLength %}
|
|
<tr class="collapse out incomesCollapsed">
|
|
{% else %}
|
|
<tr>
|
|
{% endif %}
|
|
<td>
|
|
<a href="{{ route('accounts.show',income.id) }}" title="{{ income.name }}">{{ income.name }}</a>
|
|
{% if income.count > 1 %}
|
|
<br/>
|
|
<small>
|
|
{{ income.count }} {{ 'transactions'|_|lower }}
|
|
<i class="fa fa-fw text-muted fa-info-circle firefly-info-button" data-location="income-entry"
|
|
data-account-id="{{ income.id }}"></i>
|
|
</small>
|
|
|
|
{% endif %}
|
|
</td>
|
|
<td>{{ income.amount|formatAmount }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
{% if incomes.getIncomes|length > incomeTopLength %}
|
|
<tr>
|
|
<td colspan="2" class="active">
|
|
<a href="#" id="showIncomes">{{ trans('firefly.showTheRest',{number:incomeTopLength}) }}</a>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
<tr>
|
|
<td><em>{{ 'sum'|_ }}</em></td>
|
|
<td>{{ incomes.getTotal|formatAmount }}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|