2018-03-03 06:09:48 +08:00
|
|
|
<div class="col-12">
|
2020-02-02 02:05:56 +08:00
|
|
|
@if(count($journal['transactions']) > 0)
|
2018-03-03 06:09:48 +08:00
|
|
|
<table class="table table-hover" id="users-table">
|
2020-02-02 02:05:56 +08:00
|
|
|
<tbody>
|
|
|
|
@foreach($journal['transactions'] as $entry)
|
2018-03-03 06:09:48 +08:00
|
|
|
<tr>
|
2020-02-02 02:05:56 +08:00
|
|
|
<td>{{ $entry->memo }}</td>
|
|
|
|
<td>
|
|
|
|
@if($entry->credit)
|
2020-04-26 23:55:20 +08:00
|
|
|
{{ money($entry->credit, setting('units.currency')) }}
|
2020-02-02 02:05:56 +08:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@if($entry->debit)
|
2020-04-26 23:55:20 +08:00
|
|
|
{{ money($entry->debit, setting('units.currency')) }}
|
2020-02-02 02:05:56 +08:00
|
|
|
@endif
|
|
|
|
</td>
|
2018-03-03 06:09:48 +08:00
|
|
|
</tr>
|
2020-02-02 02:05:56 +08:00
|
|
|
@endforeach
|
2018-03-03 06:09:48 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
{{-- show sums --}}
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>
|
|
|
|
{{ $journal['credits'] }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<i>{{ $journal['debits'] }}</i>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
{{-- final total --}}
|
|
|
|
<tr style="border-top: 3px; border-top-style: double;">
|
|
|
|
<td></td>
|
|
|
|
<td align="right">
|
|
|
|
<b>Total</b>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $journal['credits']->subtract($journal['debits']) }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
2018-03-03 06:09:48 +08:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
@endif
|