From 9d1d2bc9cb12501bdc6ee8bf1c30b9e19538ed34 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 5 Dec 2020 11:33:32 +0800 Subject: [PATCH] x1 and x2 reports --- routes/web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 5adb60ab..0817f626 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,10 +27,11 @@ Route::get('/report/x1', function(){ }); foreach($months as $month => $bookings){ + echo "

".$month."(".$month->map(function ($row) { return $row->sum('bia'); }).")


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