From 715fe94ffc30f1dad5ad67164a92088e16ba9ee6 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 5 Dec 2020 11:36:25 +0800 Subject: [PATCH] x1 and x2 reports --- routes/web.php | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/web.php b/routes/web.php index a90a1a24..150afdda 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,6 +27,7 @@ Route::get('/report/x1', function(){ }); foreach($months as $month => $bookings){ + dd($bookings->map(function ($row) { return $row->sum('bia'); })); echo "

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


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