diff --git a/routes/web.php b/routes/web.php index 05127e7a..2430a684 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,11 +27,9 @@ Route::get('/report/x1', function(){ }); foreach($months as $month => $bookings){ - $total = 0; - foreach ($bookings as $booking){ - $total += $booking->bia; - } - dd($total); + dd($bookings->map(function($booking){ + return +$booking->bia; + })); // echo "