mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
x1 and x2 reports
This commit is contained in:
+3
-3
@@ -27,9 +27,9 @@ Route::get('/report/x1', function(){
|
||||
});
|
||||
|
||||
foreach($months as $month => $bookings){
|
||||
dd($bookings->map(function($booking){
|
||||
return +$booking->bia;
|
||||
}));
|
||||
dd(array_sum($bookings->map(function($booking){
|
||||
return +$booking->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');
|
||||
|
||||
Reference in New Issue
Block a user