@if (empty($openingHour) || count($openingHour) == 0)
Regular Weekly Hours

Sun

Closed

to

mon

Closed

to

tue

Closed

to

wed

Closed

to

thr

Closed

to

fri

Closed

to

sat

Closed

to
Special day Hours

Add Date when your availability changes from regular weekly hours (e.g., public holidays)

@else
Regular Weekly Hours
@foreach ($openingHour as $openingHou) @php // Filter the openingHours array to only include entries with the same main_id as the current openingHou's id $timearray = $openingHours->filter(function ($item) use ($openingHou) { return $item->main_id === $openingHou->id; }); $ii = 0; $count = $timearray->count(); @endphp @foreach ($timearray as $time)
@if (++$ii == 1)

{{ ucfirst($openingHou->day) }}

@php @endphp
status == 'Y' ? 'checked' : '' }}>

Closed

@else

@endif
to
@if ($ii == 1)
@else
@endif
@endforeach
@endforeach
Special day Hours

Add Date when your availability changes from regular weekly hours (e.g., public holidays)

@endif