mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
pending customer po grouped by customer
This commit is contained in:
+3
-1
@@ -96,7 +96,9 @@ Route::group(['middleware' => ['role:admin']], function() {
|
||||
})->get();
|
||||
$customers = $bookings->groupBy(function($item) {
|
||||
return $item->user_id;
|
||||
})->order();
|
||||
})->sortBy(function($item){
|
||||
return count($item);
|
||||
});
|
||||
echo "<h1>Total Po Pending Customer Update: <b>".count($bookings)."</b></h1>";
|
||||
foreach ($customers as $customer => $bookings) {
|
||||
echo "<h3>".$customer."(".count($bookings).")</h3><br>";
|
||||
|
||||
Reference in New Issue
Block a user