@extends('layouts.admin') @section('title', 'Create Datesheet') @section('header-title', 'Create Datesheet') @section('content')

Create Datesheet

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

Please fix the following errors:

@endif
@csrf

Datesheet Details

@if($subjects->count() > 0)

Subject Schedules

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

@if($existingSchedules->isNotEmpty())

Existing schedules found: Date and time fields have been pre-filled from previously created exam schedules. You can modify them before saving.

@endif @foreach($subjects as $index => $subject) @php $existing = $existingSchedules->get($subject->id); $savedDate = old("schedules.{$index}.exam_date", $existing ? $existing->exam_date->format('Y-m-d') : ''); $savedTime = old("schedules.{$index}.start_time", $existing ? $existing->start_time : '09:00'); @endphp @endforeach
Subject Code Duration Marks Exam Date * Start Time * End Time Slot
{{ $subject->name }} {{ $subject->code }} {{ $subject->duration_minutes }} min {{ $subject->total_marks }} -
Cancel
@elseif(request('exam_id'))

This exam has no subjects. Please add subjects before creating a datesheet.

@endif
@endsection