2022-01-29 07:15:34 -06:00
|
|
|
<table class="table table-hover table-responsive">
|
|
|
|
<tr>
|
|
|
|
{% if showPiggyBank %}
|
|
|
|
<th>{{ trans('list.piggy_bank') }}</th>
|
|
|
|
{% endif %}
|
|
|
|
<th>{{ trans('list.date') }}</th>
|
|
|
|
<th>{{ trans('list.amount') }}</th>
|
|
|
|
</tr>
|
|
|
|
{% for event in events %}
|
|
|
|
<tr>
|
|
|
|
{% if showPiggyBank %}
|
|
|
|
<td>
|
|
|
|
<a href="{{ route('piggy-banks.show',event.piggyBank.id) }}">{{ event.piggyBank.name }}</a>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
<td>
|
|
|
|
{% if event.transaction_journal_id %}
|
|
|
|
<a href="{{ route('transactions.show',event.transactionJournal.transaction_group_id) }}"
|
2022-03-27 13:33:25 -05:00
|
|
|
title="{{ event.transactionJournal.description }}">{{ event.date.isoFormat(monthAndDayFormat) }}</a>
|
2022-01-29 07:15:34 -06:00
|
|
|
{% else %}
|
2022-03-27 13:33:25 -05:00
|
|
|
{{ event.date.isoFormat(monthAndDayFormat) }}
|
2022-01-29 07:15:34 -06:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td style="text-align: right;">
|
|
|
|
|
|
|
|
{% if event.amount < 0 %}
|
2023-03-25 05:33:42 -05:00
|
|
|
<span class="text-danger money-negative">{{ trans('firefly.removed_amount', {amount: formatAmountByAccount(event.piggyBank.account, event.amount, false)})|raw }}</span>
|
2022-01-29 07:15:34 -06:00
|
|
|
{% else %}
|
2023-03-25 05:33:42 -05:00
|
|
|
<span class="text-success money-positive">{{ trans('firefly.added_amount', {amount: formatAmountByAccount(event.piggyBank.account, event.amount, false)})|raw }}</span>
|
2022-01-29 07:15:34 -06:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|