From 38ee75aa6cd9ad64fe16f9a40b7e88038a774ff8 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 5 Dec 2020 11:56:31 +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 3d865a74..90d1c522 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 "

".Carbon::parse($month)->format('m-Y')."(".$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 "

".Carbon::parse($day)->format('d-m-Y').": (".$bookings->sum('bia').")

"; } }