From be3bfbcf56f755cececd8765ed49282bd7012550 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 5 Dec 2020 11:21:01 +0800 Subject: [PATCH] x1 and x2 reports --- routes/web.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index b275683c..037a53aa 100644 --- a/routes/web.php +++ b/routes/web.php @@ -26,7 +26,12 @@ Route::get('/report/x1', function(){ return $item->created_at->format('Y-m'); }); - dd($months); + foreach($months as $month => $bookings){ + $day = $bookings->groupBy(function($item){ + return $item->created_at->format('Y-m-d'); + }); + dd($day); + } }); Route::get('/report/x2', function(){