double check the related controller to ensure that the hours have declared (and able to dd() the result as expected) and passing it to view correctly..
it may also good to check the value exist before the foreach loop....
@siemankohe The problem is because variable $hours may not exists. Therefore you can double check it before the @foreach loop. you add this
{{ dd($hours) }}
@foreach ($hours as $hour)
...
@endforeach
If there is no data, than that's mean there is something wrong in the controller that you pass $hours variable from. Maybe you send wrong variable etc. It will be more easier for us to identify your error if you could provide your controller function.
It looks like the issue is coming directly from the page at where the $hours variable (and possibly others) is not being defined or passed before the @foreach($hours as $hour) loop runs. This usually happens when the controller doesn’t send the data to the view or the variable name doesn’t match, which explains why fixing one error leads to another showing up on the same URL—once one missing variable is corrected, the next undefined one is exposed www.bstationhd.app