@extends('layouts.dashboard') @section('title', $bank->name) @section('page_title', $bank->name) @section('content') @include('partials.how-it-works', ['key' => 'instructor.question-banks'])
{{ __('Questions') }} {{ $questions->total() }} @foreach(['easy' => 'success', 'medium' => 'warning', 'hard' => 'danger'] as $level => $colour) {{ status_label($level) }}: {{ $counts[$level] ?? 0 }} @endforeach
@if(request('q')) @endif
    @forelse($questions as $q)
  • {{ $q->question }}
    {{ status_label($q->question_type) }} {{ status_label($q->difficulty) }} @if($q->subject){{ $q->subject }}@endif {{ (float) $q->marks }} {{ __('marks') }} @if((float) $q->negative_marks > 0) -{{ (float) $q->negative_marks }} @endif
    @if($q->options->count())
      @foreach($q->options as $opt)
    • {{ $opt->option_text }}
    • @endforeach
    @endif
    @csrf @method('DELETE')
  • @empty @if(request('q') || request('difficulty'))
  • {{ __('No questions match your search.') }} {{ __('Clear search') }}
  • @else
  • {{ __('This bank is empty. Add questions or import a CSV.') }}
  • @endif @endforelse
@if($questions->hasPages()) @endif
{{ __('Add a question') }}
@csrf
@for($i = 0; $i < 4; $i++)
{{ $i + 1 }}
@endfor
{{ __('Select the radio next to the correct option.') }}
@if(module_enabled('ai') && setting('ai_generator_enabled', '1') === '1')
{{ __('Generate with AI') }}
@csrf
{{ __('Generated questions are drafts — read them before a real exam uses them.') }}
@endif
{{ __('Bulk import (CSV)') }}
@csrf
{{ __('New to CSV files? Start with our template.') }}
  1. {{ __('Download the template and open it in Excel or Google Sheets.') }}
  2. {{ __('Replace the example questions with your own; keep the first row and columns unchanged.') }}
  3. {{ __('Save or download it as a CSV file, then upload it here.') }}
{{ __('Download CSV template') }}

{{ __('Column order:') }}
question, type, difficulty, marks, negative, A, B, C, D, correct, explanation, subject
{{ __('“correct” accepts 1-4, A-D or the option text; for type “multiple” list several separated by | (e.g. A|C). A header row is skipped.') }}
{{ __('Types: mcq, multiple, true_false, fill_blank (A-D = accepted answers), ordering (A-D in the right order), matching (A-D as left=right), short_answer, essay.') }}

{{ __('Bank settings') }}
@csrf @method('PUT')
status)>
@endsection @push('scripts') @endpush