From 1460406f4ebf6bfa6352be2ca18bb10a2cb40867 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 7 Dec 2020 11:48:42 +0800 Subject: [PATCH] pending customer po grouped by customer --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 37ee3796..bc534d72 100644 --- a/routes/web.php +++ b/routes/web.php @@ -96,7 +96,7 @@ Route::group(['middleware' => ['role:admin']], function() { })->get(); $customers = $bookings->groupBy(function($item) { return $item->user_id; - }); + })->order(); echo "

Total Po Pending Customer Update: ".count($bookings)."

"; foreach ($customers as $customer => $bookings) { echo "

".$customer."(".count($bookings).")


";