2015-06-21 03:50:45 -05:00
|
|
|
<table class="table table-hover">
|
2015-05-02 04:32:45 -05:00
|
|
|
<tr>
|
|
|
|
{% if showPiggyBank %}
|
|
|
|
<th>Piggy bank</th>
|
|
|
|
{% endif %}
|
2015-05-14 06:00:43 -05:00
|
|
|
<th>{{ trans('list.date') }}</th>
|
|
|
|
<th>{{ trans('list.amount') }}</th>
|
2015-05-02 04:32:45 -05:00
|
|
|
</tr>
|
|
|
|
{% for event in events %}
|
2015-06-27 01:06:24 -05:00
|
|
|
<tr>
|
|
|
|
{% if showPiggyBank %}
|
|
|
|
<td>
|
2015-12-28 00:27:16 -06:00
|
|
|
<a href="{{ route('piggy-banks.show',event.piggyBank.id) }}">{{ event.piggyBank.name }}</a>
|
2015-06-27 01:06:24 -05:00
|
|
|
</td>
|
2015-05-02 04:32:45 -05:00
|
|
|
{% endif %}
|
2015-06-27 01:06:24 -05:00
|
|
|
<td>
|
|
|
|
{% if event.transaction_journal_id %}
|
|
|
|
<a href="{{ route('transactions.show',event.transaction_journal_id) }}"
|
2015-07-24 01:34:30 -05:00
|
|
|
title="{{ event.transactionJournal.description }}">{{ event.date.formatLocalized(monthAndDayFormat) }}</a>
|
2015-06-27 01:06:24 -05:00
|
|
|
{% else %}
|
2015-07-24 01:34:30 -05:00
|
|
|
{{ event.date.formatLocalized(monthAndDayFormat) }}
|
2015-06-27 01:06:24 -05:00
|
|
|
{% endif %}
|
2015-05-02 04:32:45 -05:00
|
|
|
</td>
|
|
|
|
|
2015-06-27 01:06:24 -05:00
|
|
|
<td>
|
|
|
|
{% if event.amount < 0 %}
|
2015-12-12 01:14:17 -06:00
|
|
|
<span class="text-danger">{{ trans('firefly.removed_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>
|
2015-06-27 01:06:24 -05:00
|
|
|
{% else %}
|
2015-07-24 01:34:30 -05:00
|
|
|
<span class="text-success">{{ trans('firefly.added_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>
|
2015-06-27 01:06:24 -05:00
|
|
|
{% endif %}
|
2015-05-02 04:32:45 -05:00
|
|
|
</td>
|
2015-06-27 01:06:24 -05:00
|
|
|
</tr>
|
2015-05-02 04:32:45 -05:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|