diff --git a/routes/web.php b/routes/web.php index a7c87263..e5743ed5 100644 --- a/routes/web.php +++ b/routes/web.php @@ -400,6 +400,7 @@ 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') ->get(); echo ''; @@ -420,11 +421,11 @@ Route::get('/pending_orders', function(){ echo ''; echo ''; - echo ''; echo ''; + echo ''; echo ''; echo ''; - echo ''; + echo ''; echo ''; echo ''; echo '';
'.$payment->updated_at->format('d-M-y').''.$booking->marking.''.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].''.$booking->company->reference.''.$payment->currency->short_code.''.number_format(bcsub($payment->amount, $refunds, 7), 5, '.', '').''.$booking->company->reference.''.$booking->marking.''.$payment->original_currency->short_code.''.number_format(bcsub($payment->original_amount, $original_refunds, 7), 5, '.', '').'