@extends('layouts.admin') @section('title','Questions') @section('page-title','Question Bank') @section('content') {{-- Header --}}
Question Bank
{{ $questions->total() }} questions total
CSV Import Add Question
{{-- Filters --}}
{{-- Questions Table --}}
@forelse($questions as $question) @empty @endforelse
Question Subject Year Difficulty Status Actions
{!! Str::limit(strip_tags($question->question_text), 100) !!}
@if($question->question_image) Has Image @endif @if($question->has_instruction) Has Passage @endif
{{ $question->subject->code }}
{{ $question->topic->name ?? '—' }}
{{ $question->year ?? '—' }} @php $dc = ['easy'=>'success','medium'=>'warning','hard'=>'danger'][$question->difficulty] @endphp {{ ucfirst($question->difficulty) }} @if($question->is_active) Active @else Draft @endif
@csrf @method('DELETE')

No questions found. Add your first question or import via CSV.

@if($questions->hasPages()) @endif
@endsection