@extends('admin.layouts.master') @section('title') Starter Page @endsection @section('css') @endsection @section('content')
| Day | @foreach ($periods as $period){{ 7 + $period }}:00 | @endforeach
|---|---|
| {{ $day }} | @foreach($periods as $period) @php $entry = optional($timetables[$section->id] ?? collect()) ->where('day_of_week', $day) ->where('period', $period) ->first(); @endphp
@if($entry)
{{ $entry->subject->name }}
{{ $entry->admin->name ?? 'Teacher' }}{{ $entry->classroom->name ?? '' }} @else — @endif |
@endforeach