I am trying to loop trough the current week with carbon and display every single day in the view.
$current_mon and $current_sun is a dropdown to select the current week from monday to sunday. I have no idea how to get the rest of the week (tue to sat) as
$tues = Carbon::now()->startOfWeek()->addDay();
is a bad idea!
My Controller is:
$now = Carbon::now();
$current_mon = Carbon::now()->startOfWeek();
$current_sun = Carbon::now()->endOfWeek()->format('d-M');
$tues = Carbon::now()->startOfWeek()->addDay();
return View::make('backend/menubuilder/edit')->with('id',$id)->withCurrent_mon($current_mon)->withCurrent_sun($current_sun)->withTues($tues);
Please advice