@php use Carbon\Carbon; @endphp

Edit the class

id) }}" method="post" class="space-y-8"> @csrf @method("PUT")
Name
startdate)->format("d-M-Y")) }}" class="block w-full rounded-lg border border-zinc-300 p-2.5 ps-10 text-sm text-zinc-900 focus:border-zinc-500 focus:ring-zinc-500" placeholder="Select date start" />
to
enddate)->format("d-M-Y")) }}" class="block w-full rounded-lg border border-zinc-300 p-2.5 ps-10 text-sm text-zinc-900 focus:border-zinc-500 focus:ring-zinc-500" placeholder="Select date end" />
@if ($errors->has("start"))

{{ $errors->first("start") }}

@endif @if ($errors->has("end"))

{{ $errors->first("end") }}

@endif

Subjects

@foreach ($subjects as $subject) @if ($class->subjects->find($subject->id)) {{ $subject->name }} @else {{ $subject->name }} @endif @endforeach

Activities

@foreach ($activities as $activity) @if ($class->activities->find($activity->id)) {{ $activity->name }} @else {{ $activity->name }} @endif @endforeach

Behaviours

@foreach ($behaviours as $behaviour) @if ($class->behaviours->find($behaviour->id)) {{ $behaviour->name }} @else {{ $behaviour->name }} @endif @endforeach
Cancel
@section("scripts") @endsection