From f737c3afdbb276dcb24526f81b96ce9aad05680f Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 10 Aug 2022 11:57:33 +0800 Subject: [PATCH] list pending orders in table format --- routes/web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 25dc928e..e9a2b6b5 100644 --- a/routes/web.php +++ b/routes/web.php @@ -254,6 +254,7 @@ Route::get('/pending_orders', function(){ $i = 0; foreach ($payments as $payment){ $booking = $payment->owner; + $bankType = str_word_count($booking->bank->holder_name) > 4 ? 'Company' : 'Personal'; echo ''; echo ''.$payment->updated_at->format('d-M-y').''; echo ''.$booking->marking.''; @@ -265,7 +266,7 @@ Route::get('/pending_orders', function(){ echo ''; echo ''.$booking->service->name.''; echo ''.$payment->updated_at->diffForHumans().''; - echo ''.str_word_count($booking->bank->holder_name) > 4 ? 'Company' : 'Personal'.''; + echo ''.$bankType.''; echo ''; } echo '';