From c65d8d2308d756c53e85b7868a57d2dd2ad3ae7a Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 5 Dec 2020 11:50:37 +0800 Subject: [PATCH] x1 and x2 reports --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index 3c44a932..3d865a74 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,13 +27,13 @@ Route::get('/report/x1', function(){ }); foreach($months as $month => $bookings){ - echo "

".$month."(".$bookings->sum('bia').")




"; + 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').")

"; + echo "

".$day."(".$bookings->sum('bia').")

"; } }