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