@extends('layouts.examiner') @section('title', 'Upload Questions') @section('content')

Upload Questions (Excel)

@if(isset($results)) {{-- ── Results table after upload ─────────────────────────────── --}}
Uploaded Questions
Upload Another
@foreach($results as $i => $r) @endforeach
S/N QUESTION CORRECT OPTION OPTION 1 OPTION 2 OPTION 3 COURSE CODE STATUS
{{ $i + 1 }} {{ $r['row'][1] ?? '' }} {{ $r['row'][2] ?? '' }} {{ $r['row'][3] ?? '' }} {{ $r['row'][4] ?? '' }} {{ $r['row'][5] ?? '' }} {{ $r['row'][6] ?? '' }} {{ $r['status'] }}
@else {{-- ── Upload form ─────────────────────────────────────────────── --}}
@csrf
@error('session_id')
{{ $message }}
@enderror
@error('file')
{{ $message }}
@enderror
Cancel
View Format?
Excel Format

Row 1 is the header (skipped). Each data row = one question.

ColContent
AS/N
BQuestion text
CCorrect option
DWrong option 1
EWrong option 2
FWrong option 3
GCourse code (e.g. GSS 101)

The course code must match an existing subject. Existing questions are updated in-place.

@endif {{-- Format modal --}} @endsection