@extends('admin.layout.app') @section('title', 'Entrance Exam Questions') @section('content')

Entrance Exam Questions

@if ($groupedQuestions->isNotEmpty())
@foreach ($groupedQuestions as $type => $questions) @foreach ($questions as $question) @endforeach @endforeach
No Question Text Type Difficulty Actions
{{ $loop->iteration }} {{ Str::limit($question->question_text, 100) }}
@if ($question->question_type == 'mcq' || $question->question_type == 'audio') @foreach (['optionA', 'optionB', 'optionC', 'optionD'] as $opt) @if (!empty($question->options[$opt]))
{{ strtoupper(substr($opt, -1)) }}. {{ $question->options[$opt] }} @if ($question->question_type == 'audio' && !empty($question->options[$opt . '_image']))
Option {{ strtoupper(substr($opt, -1)) }} Image @endif
@endif @endforeach @endif
@if ($question->question_type == 'audio' && $question->audio)
Audio available
@endif
@switch($question->question_type) @case('mcq') MCQ @break @case('tf') T/F @break @case('blank') Blank @break @case('audio') Audio @break @case('matching') Matching @break @default {{ ucfirst($question->question_type) }} @endswitch @switch($question->difficulty_level) @case(1) Easy @break @case(2) Medium @break @case(3) Hard @break @endswitch
Edit
@csrf @method('DELETE')
@else
No entrance exam questions found. Add Question
@endif
@endsection