@extends('layouts.app') @section('title', 'Bulk Upload Questions - ' . $topic->name) @section('content')

Bulk uploading questions to:

{{ $topic->name }}

{{ $topic->description }}

{{ $topic->questions()->count() }} Existing Questions
@if(session('success'))

{{ session('success') }}

@endif @if(session('upload_errors'))

{{ session('error') }}

@endif @if(session('upload_errors') && is_array(session('upload_errors')))

Import completed with errors:

    @foreach(session('upload_errors') as $error)
  • • {{ $error }}
  • @endforeach
@endif

Upload CSV File

Import multiple questions at once

@csrf

or drag and drop

CSV or TXT up to 10MB

@error('csv_file')
{{ $message }}
@enderror

Step 1: Download Template

Start by downloading our CSV template with the correct format and example questions.

Download CSV Template

Step 2: CSV Format

Your CSV file must have these columns in order:

Headers:
question,option_a,option_b,option_c,option_d,correct_option
Example Row:
What is 2+2?,3,4,5,6,B

correct_option must be A, B, C, or D

All fields are required for each row

Empty rows will be skipped

Pro Tips

  • • Use Excel or Google Sheets to prepare your CSV
  • • Save as CSV (Comma delimited) format
  • • Test with a few questions first
  • • Keep questions clear and concise
@endsection