diff --git a/routes/web.php b/routes/web.php
index c7604014..3c44a932 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -27,12 +27,15 @@ Route::get('/report/x1', function(){
});
foreach($months as $month => $bookings){
- dd($bookings->sum('bia'));
-// echo "
".$month."(".$bookings->map(function ($row) { return $row->sum('bia'); }).")
";
- $day = $bookings->groupBy(function($item){
+ echo "".$month."(".$bookings->sum('bia').")
";
+ $days = $bookings->groupBy(function($item){
return $item->created_at->format('Y-m-d');
});
+ foreach($days as $day => $bookings ){
+ echo "".$day."(".$bookings->sum('bia').")
";
+ }
+
}
});