{{-- $test is null when creating; mode can't change after creation. --}} @php $selected = array_map('intval', old('batch_ids', $test ? $test->batches->pluck('id')->all() : [])); $dt = fn ($value) => $value?->format('Y-m-d\TH:i'); @endphp
@csrf @if($test) @method('PUT') @endif
@foreach($batches as $batch) @endforeach

Pick a course first.

@unless($test)
@foreach(\App\Models\BatchTest::MODES as $key => $label) @endforeach
@endunless

OMR answer key (optional — for grading scanner output)

With a key, total marks = questions × marks per question.

Total marks are the sum of the questions you add. Each student gets the duration from when they start, but never past the closing time.