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

Constraints & availability

Hard constraints must never be broken. Soft constraints carry a weight and are optimised as far as possible.
@csrf
@include('timetable._nav')

Rule set

Weights run from 1 (weak preference) to 10 (strong preference).
@forelse($constraints as $constraint) @empty @endforelse
RuleScopeParametersWeightTypeStatusActions
{{ $constraint->type }} {{ ucfirst($constraint->entity_type) }} {{ $constraint->params ?: '—' }}
{{ $constraint->weight }}
{!! $constraint->is_hard ? 'Hard' : 'Soft' !!}
@csrf @method('DELETE')

Teacher availability

Mark days a teacher is unavailable. This creates a hard rule.
@csrf
@foreach(\App\Http\Controllers\Timetable\TimetableController::DAYS as $day) @endforeach
@csrf
@foreach($constraints as $constraint)
@csrf @method('PUT')
@endforeach @endsection