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 '
| '.$payment->updated_at->format('d-M-y').' | '; - echo ''.$booking->marking.' | '; echo ''.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].' | '; + echo ''.$booking->company->reference.' | '; echo ''.$payment->currency->short_code.' | '; echo ''.number_format(bcsub($payment->amount, $refunds, 7), 5, '.', '').' | '; - echo ''.$booking->company->reference.' | '; + echo ''.$booking->marking.' | '; echo ''; echo ' | '.$payment->original_currency->short_code.' | '; echo ''.number_format(bcsub($payment->original_amount, $original_refunds, 7), 5, '.', '').' | ';