@extends('layouts.admin') @section('title', 'Edit: ' . $datesheet->title) @section('header-title', 'Edit Datesheet') @section('content')

Edit Datesheet

← Back
@if($errors->any())

Please fix the following errors:

@endif
@csrf @method('PUT')

Datesheet Details

Subject Schedules

Set the exam date and start time for each subject. End time is calculated automatically.

@foreach($subjects as $index => $subject) @php $existing = $datesheet->schedules->firstWhere('subject_id', $subject->id); @endphp @endforeach
Subject Code Duration Marks Exam Date * Start Time * End Time Slot
{{ $subject->name }} {{ $subject->code }} {{ $subject->duration_minutes }} min {{ $subject->total_marks }} exam_date?->format('Y-m-d')) }}" class="border border-graphite-400/50 rounded px-3 py-2 text-sm w-full"> start_time) }}" class="border border-graphite-400/50 rounded px-3 py-2 text-sm w-full" onchange="calcRowEnd(this, {{ $subject->duration_minutes }}, {{ $index }})"> @php $slot = $existing?->time_slot; $slotColor = $slot === 'evening' ? 'bg-orange-100 text-orange-700' : 'bg-yellow-100 text-yellow-700'; @endphp {{ $existing ? ucfirst($slot) : '-' }}
Cancel
@endsection