From 71ae8eccc9e7185ea9533ceac98c963c36422255 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 9 Jan 2021 10:58:36 +0800 Subject: [PATCH] show active customers in the report --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 99d49d29..31e37558 100644 --- a/routes/web.php +++ b/routes/web.php @@ -32,7 +32,7 @@ Route::group(['middleware' => ['role:admin']], function() { echo "

".Carbon::parse($month)->format('m-Y').": ".$bookings->sum('bia')." MYR

"; echo "

Active Customers: ".count($bookings->groupBy(function($item){ return $item->user_id; - }))." MYR

"; + })).""; $days = $bookings->groupBy(function($item){ return $item->created_at->format('Y-m-d'); });