@livewire('livewire-toast')
Time Tables
@if (session()->has('danger')) @endif @if (auth()->user()->roles->pluck('name')->toArray()[0] =='Admin'|auth()->user()->roles->pluck('name')->toArray()[0] =='super-admin')
Class @foreach($classes as $c) @endforeach @error('selected_class') {{$message}} @enderror
Subject @foreach($semesters as $c) @endforeach @error('selected_semester') {{$message}} @enderror
@endif
{{--creates a row for each day of the week--}} @foreach ($results as $result) @foreach ($weekdays as $weekday) {{--displays the time slots for each day of the week--}} @endforeach @endforeach
Day Time Slot Subject
{{ $weekday->id }} {{$weekday->name}} @foreach ($weekday->timeSlots as $timeSlot)

{{ $timeSlot->start_time }} - {{ $timeSlot->stop_time }}

@endforeach
@foreach ($weekday->timeSlots as $timeSlot)

{{ $timeSlot->timetableRecord->subjects->name }}

@endforeach