@extends('layouts.app') @section('title', 'Timetable Setup') @section('content')

Periods, rooms & class groups

Define the daily bell schedule, teaching rooms and parallel class groups used when generating the timetable.
@csrf
@include('timetable._nav')

Daily periods

{{ $periods->count() }} periods configured. Break and activity periods are excluded from lesson allocation.
@csrf
@forelse($periods as $i => $period) @empty @endforelse
LabelStartEndTypeDays
@php($days = json_decode($period->days ?? '[]', true) ?: [])
@foreach(['Mon','Tue','Wed','Thu','Fri'] as $d) @php($full = ['Mon' => 'Monday','Tue' => 'Tuesday','Wed' => 'Wednesday','Thu' => 'Thursday','Fri' => 'Friday'][$d]) @endforeach

Rooms

Capacity is used to avoid overfilling specialised rooms.
@forelse($rooms as $room) @empty @endforelse
RoomTypeCapacityActions
{{ $room->name }}
{{ $room->building ?: 'Main block' }}{{ $room->floor ? ' ยท Floor '.$room->floor : '' }}
{{ $room->type }} {{ num($room->capacity) }}
@csrf @method('DELETE')

Class groups

Combine two or more streams that sit the same lesson at the same time.
@forelse($groups as $group) @empty @endforelse
GroupClassStreamGrouped streamsActions
{{ $group->name }} {{ $group->class_name }} {{ $group->stream ?: 'All streams' }} @foreach(json_decode($group->groups ?? '[]', true) ?: [] as $g) {{ $g }} @endforeach
@csrf @method('DELETE')
@csrf
@csrf
Comma separated list of streams that share this group.
@foreach($rooms as $room)
@csrf @method('PUT')
@endforeach @endsection @push('scripts') @endpush