add route preview-unfinished-payment-orders

This commit is contained in:
Edmond Lang
2025-07-24 22:46:54 +08:00
parent b2bd5f2a5c
commit f60241eafc
+7 -1
View File
@@ -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);