{{-- Sample weekly timetable used by the Scheduling and portal mockups. --}} @php $ttRows = [ ['7:30 AM', '8:30 AM', '60 min', [ ['c5', 'Flag Ceremony', 'Room 101', ''], ['c1', 'Effective Comm.', '1 hr · Room 101', 'M. Santos'], ['c3', 'General Math', '1 hr · Room 101', 'J. Reyes'], ['c1', 'Effective Comm.', '1 hr · Room 101', 'M. Santos'], ['c3', 'General Math', '1 hr · Room 101', 'J. Reyes'], ]], ['8:30 AM', '9:30 AM', '60 min', [ ['c4', 'General Science', '1 hr · Science Lab', 'A. Cruz'], ['c3', 'General Math', '1 hr · Room 101', 'J. Reyes'], null, ['c4', 'General Science', '1 hr · Science Lab', 'A. Cruz'], ['c6', 'Life & Career', '1 hr · Room 101', 'C. Mendoza'], ]], 'Recess', ['9:45 AM', '10:45 AM', '60 min', [ ['c6', 'Life & Career', '1 hr · Room 101', 'C. Mendoza'], null, ['c4', 'General Science', '1 hr · Science Lab', 'A. Cruz'], null, ['c2', 'PE and Health', '1 hr · Gym', 'R. Garcia'], ]], ]; @endphp
@foreach ($ttRows as $row) @if (is_string($row)) @else @foreach ($row[3] as $cell) @endforeach @endif @endforeach
StartEnd MonTueWedThuFri
9:309:45{{ $row }}
{{ $row[0] }}{{ $row[2] }} {{ $row[1] }} @if ($cell)
{{ $cell[1] }}{{ $cell[2] }}@if ($cell[3])
{{ $cell[3] }}@endif
@else
Available
@endif