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');