show active customers in the report

This commit is contained in:
omair saleh
2021-01-09 10:58:36 +08:00
parent 16aa8f5f99
commit 71ae8eccc9
+1 -1
View File
@@ -32,7 +32,7 @@ Route::group(['middleware' => ['role:admin']], function() {
echo "<h1>".Carbon::parse($month)->format('m-Y').": <small style='color: green; font-size: larger'>".$bookings->sum('bia')." MYR</small></h1>";
echo "<h3>Active Customers: <small style='color: green; font-size: larger'>".count($bookings->groupBy(function($item){
return $item->user_id;
}))." MYR</small></h3>";
}))."</small></h3>";
$days = $bookings->groupBy(function($item){
return $item->created_at->format('Y-m-d');
});