2021-10-01 04:59:04 +00:00
|
|
|
@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>
|
2022-06-13 04:21:48 +00:00
|
|
|
<td>{{ $co->created_at->format('Y-m-d') }}</td>
|
|
|
|
<td>{{ $co->charged_at ? $co->charged_at->format('Y-m-d') : '-' }}</td>
|
2021-10-01 04:59:04 +00:00
|
|
|
<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
|