mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
add route preview-unfinished-payment-orders
This commit is contained in:
+7
-1
@@ -1372,6 +1372,13 @@ Route::get('/maintenance', function () {
|
||||
});
|
||||
|
||||
Route::get('/preview-unfinished-payment-orders', function (Request $request) {
|
||||
$cutOffDate = $request->cut_off_date;
|
||||
|
||||
if ($cutOffDate) {
|
||||
echo 'Cut Off Date: ' . $cutOffDate;
|
||||
echo '<br><br>';
|
||||
}
|
||||
|
||||
echo '<table style="border-collapse: collapse; width: 100%;" border="1">';
|
||||
echo '<thead><tr>
|
||||
<th>Order Ref</th>
|
||||
@@ -1383,7 +1390,6 @@ Route::get('/preview-unfinished-payment-orders', function (Request $request) {
|
||||
</tr></thead>';
|
||||
echo '<tbody>';
|
||||
|
||||
$cutOffDate = $request->cut_off_date;
|
||||
$cutOffDate = Carbon::parse($cutOffDate);
|
||||
|
||||
$bookings = Booking::where('status', '<', ApprovalStatus::COMPLETED);
|
||||
|
||||
Reference in New Issue
Block a user