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>
|
|
|
|
<td>{!! $entry->memo !!}</td>
|
|
|
|
<td>
|
|
|
|
@if($entry->credit)
|
|
|
|
{!! money($entry->credit, config('phpvms.currency')) !!}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@if($entry->debit)
|
|
|
|
{!! money($entry->debit, config('phpvms.currency')) !!}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
{{-- show sums --}}
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>
|
|
|
|
{!! $journal['credits'] !!}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
({!! $journal['debits'] !!})
|
|
|
|
</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>
|
|
|
|
<td><b>Total</b></td>
|
|
|
|
<td>
|
|
|
|
{!! $journal['credits']->subtract($journal['debits']) !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
@endif
|