pending customer po grouped by customer

This commit is contained in:
omair saleh
2020-12-07 11:48:42 +08:00
parent 37b6ccc251
commit 1460406f4e
+1 -1
View File
@@ -96,7 +96,7 @@ Route::group(['middleware' => ['role:admin']], function() {
})->get();
$customers = $bookings->groupBy(function($item) {
return $item->user_id;
});
})->order();
echo "<h1>Total Po Pending Customer Update: <b>".count($bookings)."</b></h1>";
foreach ($customers as $customer => $bookings) {
echo "<h3>".$customer."(".count($bookings).")</h3><br>";