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

"; } }