@extends('layouts.app') @section('title', 'Import Questions') @push('styles') @endpush @section('content')
Back to question bank

Import questions

Bulk import questions from a CSV file

Upload CSV

@csrf
Download template
@if (session('import_errors'))

Import errors

@endif

CSV format

Your CSV file must include a header row with the following columns:

subject, question_type, question_text, options, correct_answer, difficulty, marks

Sample data

subject question_type question_text options correct_answer difficulty marks
Mathematics mcq What is 2 + 2? ["1","2","3","4"] 3 easy 1
Science short What is photosynthesis? Process by which plants make food medium 3
English long Write an essay on climate change. Model answer with key points... hard 5

Note: For MCQ type, the options column must contain a valid JSON array of option strings, and correct_answer should be the 0-based index of the correct option.

@endsection