Optimise charge table, implemented charge recording, optimised payment recording
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
@if(($x=$list)->count())
|
||||
<div class="card card-light">
|
||||
<div class="card-header">
|
||||
<h1 class="card-title">Pending Charges</h1>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Date Created</th>
|
||||
<th>Date Charge</th>
|
||||
<th>Service</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
<th class="text-right">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($x as $co)
|
||||
<tr>
|
||||
<td><a href="{{ url('a/charge/addedit',[$co->id]) }}">{{ $co->id }}</a></td>
|
||||
<td>{{ $co->date_orig->format('Y-m-d') }}</td>
|
||||
<td>{{ $co->charge_date->format('Y-m-d') }}</td>
|
||||
<td>{{ $co->service->sid }}</td>
|
||||
<td>{{ $co->type }}</td>
|
||||
<td>{{ $co->description }}</td>
|
||||
<td class="text-right">{{ number_format($co->quantity*$co->amount,2) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
Reference in New Issue
Block a user