x1 and x2 reports

This commit is contained in:
omair saleh
2020-12-05 11:21:01 +08:00
parent 074c9b3b0e
commit be3bfbcf56
+6 -1
View File
@@ -26,7 +26,12 @@ Route::get('/report/x1', function(){
return $item->created_at->format('Y-m');
});
dd($months);
foreach($months as $month => $bookings){
$day = $bookings->groupBy(function($item){
return $item->created_at->format('Y-m-d');
});
dd($day);
}
});
Route::get('/report/x2', function(){