update carbon dlm semakanbillplz
This commit is contained in:
@@ -55,12 +55,16 @@
|
|||||||
<td>{{ number_format($resit->total_payment, 2) }}</td>
|
<td>{{ number_format($resit->total_payment, 2) }}</td>
|
||||||
<td>{{ \Carbon\Carbon::parse($resit->paid_at)->format('d/m/Y H:i') }}</td>
|
<td>{{ \Carbon\Carbon::parse($resit->paid_at)->format('d/m/Y H:i') }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
@if (\Carbon\Carbon::parse($resit->paid_at)->isSameDay(\Carbon\Carbon::today()))
|
||||||
<form method="POST" action="{{ route('pembida.prosesBillplz', ['resit_id' => $resit->id, 'billplz_id' => $resit->billplz_id]) }}">
|
<form method="POST" action="{{ route('pembida.prosesBillplz', ['resit_id' => $resit->id, 'billplz_id' => $resit->billplz_id]) }}">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="billplz_id" value="{{ $resit->billplz_id }}">
|
<input type="hidden" name="billplz_id" value="{{ $resit->billplz_id }}">
|
||||||
<input type="hidden" name="paid_at" value="{{ \Carbon\Carbon::parse($resit->paid_at)->toDateTimeString() }}">
|
<input type="hidden" name="paid_at" value="{{ \Carbon\Carbon::parse($resit->paid_at)->toDateTimeString() }}">
|
||||||
<button type="submit" class="btn btn-sm btn-success">Proses</button>
|
<button type="submit" class="btn btn-sm btn-success">Proses</button>
|
||||||
</form>
|
</form>
|
||||||
|
@else
|
||||||
|
<span class="text-muted">Tarikh bukan hari ini</span>
|
||||||
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|||||||
Reference in New Issue
Block a user