firefly-iii/resources/views/reports/partials/income.twig

46 lines
1.7 KiB
Twig
Raw Normal View History

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">{{ 'income'|_ }}</h3>
2015-05-16 06:53:08 -05:00
</div>
2015-06-21 03:50:45 -05:00
<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/>
2016-02-13 06:13:22 -06:00
<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>
2016-02-13 06:13:22 -06:00
</small>
2015-06-21 03:50:45 -05:00
{% endif %}
</td>
<td>{{ income.amount|formatAmount }}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
{% if incomes.getIncomes|length > incomeTopLength %}
2015-05-16 06:53:08 -05:00
<tr>
2015-06-21 03:50:45 -05:00
<td colspan="2" class="active">
<a href="#" id="showIncomes">{{ trans('firefly.showTheRest',{number:incomeTopLength}) }}</a>
</td>
</tr>
2015-05-16 06:53:08 -05:00
{% endif %}
<tr>
2015-06-21 03:50:45 -05:00
<td><em>{{ 'sum'|_ }}</em></td>
<td>{{ incomes.getTotal|formatAmount }}</td>
2015-05-16 06:53:08 -05:00
</tr>
2015-06-21 03:50:45 -05:00
</tfoot>
</table>
</div>
2015-05-20 12:56:14 -05:00
</div>