| Day | @foreach ($timeSlots as $slot)
{{ $slot['start_time_formatted'] }} {{ $slot['end_time_formatted'] }} |
@endforeach
|
|---|---|---|
| {{ $day['day'] }} | @foreach ($timeSlots as $slot) @php $matchingSessions = collect($day['sessions'])->filter(function ($s) use ( $slot, ) { return $s['start_time'] == $slot['start_time'] && $s['end_time'] == $slot['end_time']; }); @endphp @if ($matchingSessions->isNotEmpty())
@foreach ($matchingSessions as $session)
{{ $session['subject'] }}
@endforeach
{{ $session['batch'] }} {{ $session['room'] ?? '' }} |
@else
FREE
|
@endif
@endforeach