x1 and x2 reports

This commit is contained in:
omair saleh
2020-12-05 11:36:25 +08:00
parent 8d3d7b9ac5
commit 715fe94ffc
+1
View File
@@ -27,6 +27,7 @@ Route::get('/report/x1', function(){
});
foreach($months as $month => $bookings){
dd($bookings->map(function ($row) { return $row->sum('bia'); }));
echo "<h3>".$month."(".$bookings->map(function ($row) { return $row->sum('bia'); }).")</h3><br>";
$day = $bookings->groupBy(function($item){
return $item->created_at->format('Y-m-d');