From 7013dd4256f517f1d5a67c7c6bbf00a0867f33f8 Mon Sep 17 00:00:00 2001 From: Aqqil Azman Date: Wed, 7 Aug 2024 09:58:39 +0800 Subject: [PATCH] added table headers due to account oversight on the database structure, mixing Marking and Ref No up --- routes/web.php | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/routes/web.php b/routes/web.php index e5743ed5..c4ab51f7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -402,8 +402,25 @@ Route::get('/pending_orders', function(){ }) ->orderBy('updated_at', 'desc') ->get(); - - echo ''; + + echo '
'; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; $i = 0; foreach ($payments as $payment){ $booking = $payment->owner; @@ -422,14 +439,12 @@ Route::get('/pending_orders', function(){ echo ''; echo ''; echo ''; - echo ''; + echo ''; echo ''; echo ''; - echo ''; - echo ''; + echo ''; echo ''; echo ''; - echo ''; echo ''; echo ''; echo '';
Client Booking DatePayment TypeMarkingCustomer Payment CurrencyCustomer Payment AmountReference No.Booking Amount CurrencyCNYServiceDaysCust Supplier Acc TypeCust Supplier Acc Name
'.$payment->updated_at->format('d-M-y').''.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].''.$booking->company->reference.''.$booking->marking.''.$payment->currency->short_code.''.number_format(bcsub($payment->amount, $refunds, 7), 5, '.', '').''.$booking->marking.''.$booking->company->reference.''.$payment->original_currency->short_code.''.number_format(bcsub($payment->original_amount, $original_refunds, 7), 5, '.', '').''.$booking->service->name.''.$payment->updated_at->diffForHumans().''.$bankType.'