x1 and x2 reports

This commit is contained in:
omair saleh
2020-12-05 11:33:32 +08:00
parent 3671a8b8eb
commit 9d1d2bc9cb
+2 -1
View File
@@ -27,10 +27,11 @@ Route::get('/report/x1', function(){
});
foreach($months as $month => $bookings){
echo "<h3>".$month."(".$month->map(function ($row) { return $row->sum('bia'); }).")</h3><br>";
$day = $bookings->groupBy(function($item){
return $item->created_at->format('Y-m-d');
});
dump($day);
}
});