From bcd748e1cc2c2868b947024e23d6d1ceec13f4cd Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 5 Dec 2020 12:00:09 +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 72f17c67..2ff8b5b4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,13 +27,13 @@ Route::get('/report/x1', function(){ }); foreach($months as $month => $bookings){ - echo "

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

"; + echo "

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

"; $days = $bookings->groupBy(function($item){ return $item->created_at->format('Y-m-d'); }); foreach($days as $day => $bookings ){ - echo "

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

"; + echo "

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

"; } }