@extends('layouts.admin') @section('title','CSV Import') @section('page-title','CSV Question Import') @section('content')
Your CSV file must have these exact column headers in the first row:
| Column | Required | Notes |
|---|---|---|
topic | No | Topic name — auto-created if not found |
year | No | 4-digit year e.g. 2023 |
instruction_text | No | Comprehension passage — leave blank if none |
question_text | Yes | Supports HTML: <sup>, <sub> |
option_a | Yes | Option A text |
option_b | Yes | Option B text |
option_c | Yes | Option C text |
option_d | Yes | Option D text |
correct_answer | Yes | Must be A, B, C or D |
explanation | No | Solution shown after exam |
difficulty | No | easy / medium / hard (default: medium) |
instruction_text on each row. The system will group them automatically.
| File | Subject | OK | Failed | Status |
|---|---|---|---|---|
| {{ $log->filename }} | {{ $log->subject->name ?? '—' }} | {{ $log->successful }} | {{ $log->failed }} | @php $sc = ['completed'=>'success','processing'=>'warning','failed'=>'danger'][$log->status] @endphp {{ ucfirst($log->status) }} |