From 8d9d627a404b31bee5f083f42dece6d1d8737ebb Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 5 Dec 2020 11:46:49 +0800 Subject: [PATCH] x1 and x2 reports --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 8014aca2..c7604014 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,7 +27,7 @@ Route::get('/report/x1', function(){ }); foreach($months as $month => $bookings){ - dd($bookings->sum('price')); + dd($bookings->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');