diff --git a/routes/web.php b/routes/web.php index b2067c6e..32038ed2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -400,27 +400,10 @@ Route::get('/pending_orders', function(){ ->whereDoesntHave('transactions', function ($query) { return $query->where('type', TransactionType::REFUND)->whereIn('status', [ApprovalStatus::PENDING_SUBMISSION, ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]); }) - ->orderBy('updated_at', 'desc') + // ->orderBy('updated_at', 'desc') ->get(); - - echo '
| Client Booking Date | '; - // echo 'Payment Type | '; - // echo 'Marking | '; - // echo 'Customer Payment Currency | '; - // echo 'Customer Payment Amount | '; - // echo 'Reference No. | '; - // echo 'Booking Amount Currency | '; - // echo 'CNY | '; - // echo 'Service | '; - // echo 'Days | '; - // echo 'Cust Supplier Acc Type | '; - // echo 'Cust Supplier Acc Name | '; - // echo '
|---|
| '.$payment->updated_at->format('d-M-y').' | '; - echo ''.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].' | '; echo ''.$booking->marking.' | '; + echo ''.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].' | '; echo ''.$payment->currency->short_code.' | '; echo ''.number_format(bcsub($payment->amount, $refunds, 7), 5, '.', '').' | '; echo ''.$booking->company->reference.' | '; + echo ''; echo ' | '.$payment->original_currency->short_code.' | '; echo ''.number_format(bcsub($payment->original_amount, $original_refunds, 7), 5, '.', '').' | '; + echo ''; echo ' | '.$booking->service->name.' | '; echo ''.$payment->updated_at->diffForHumans().' | '; echo ''.$bankType.' | '; - echo ''.$bank->holder_name.' | '; + echo ''.$booking->bank->holder_name.' | '; echo '