{{--Written for css 2.1 support--}}
{{$timetable->description}}
@endisset @endif
Time slots |
{{--table heading which displays all the time slots--}}
@foreach ($timeSlots as $timeSlot)
{{$timeSlot->start_time}}
|
@endforeach
---|---|
{{$weekday->name}} |
{{--displays the time slots for each day of the week--}}
@foreach ($timeSlots as $timeSlot)
@php $pivot = $timeSlot->weekdays->find($weekday->id)?->timetableRecord; @endphp @if (!is_null($pivot) && $pivot->timetable_recordable_type == "App\Models\Subject") {{$subjects->find($pivot->timetable_recordable_id)?->name}} @elseif (!is_null($pivot) && $pivot->timetable_recordable_type == "App\Models\CustomItem") {{$customItems->find($pivot->timetable_recordable_id)?->name}} @endif |
@endforeach