diff --git a/routes/web.php b/routes/web.php index 9658056e..8014aca2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,9 +27,7 @@ Route::get('/report/x1', function(){ }); foreach($months as $month => $bookings){ - dd(array_sum($bookings->map(function($booking){ - return +$booking->bia; - }))); + dd($bookings->sum('price')); // echo "