@extends('layouts.admin') @section('content') @php $language = $exam->language ?? 'both'; $showHindi = in_array($language, ['hindi', 'both']); $showEnglish = in_array($language, ['english', 'both']); $isBilingual = $language === 'both'; @endphp

Questions

{{ $exam->title }}

{{ $exam->exam_type }} @if($exam->subject && $exam->subject !== 'All Subjects') ๐Ÿ“š {{ $exam->subject }} @endif @if($exam->topic) โ†’ {{ $exam->topic }} @endif ๐ŸŒ {{ $isBilingual ? 'Bilingual' : ($showHindi ? 'Hindi' : 'English') }} ๐Ÿ“ {{ $questions->count() }} questions
โ† Back + Add Question
@if(session('success'))
โœ… {{ session('success') }}
@endif
@forelse($questions as $q) @php $correctOption = $q->options->firstWhere('is_correct', true); @endphp {{-- QUESTION --}} {{-- OPTIONS --}} {{-- CORRECT ANSWER --}} {{-- ACTIONS --}} @empty @endforelse
# Question Options Correct Actions
{{ $loop->iteration }} @if($isBilingual)
๐Ÿ‡ฎ๐Ÿ‡ณ เคนเคฟเค‚เคฆเฅ€
{{ $q->question_text ?: 'โ€”' }}
๐Ÿ‡ฌ๐Ÿ‡ง English
{{ $q->question_text_en ?: 'โ€”' }}
@elseif($showHindi)
{{ $q->question_text ?: 'โ€”' }}
@else
{{ $q->question_text_en ?: $q->question_text ?: 'โ€”' }}
@endif
@foreach($q->options as $index => $op)
{{ chr(65 + $index) }}
@if($isBilingual)
{{ $op->option_text ?: 'โ€”' }}
{{ $op->option_text_en ?: 'โ€”' }}
@elseif($showHindi)
{{ $op->option_text ?: 'โ€”' }}
@else
{{ $op->option_text_en ?: $op->option_text ?: 'โ€”' }}
@endif
@endforeach
@if($correctOption)
{{ chr(65 + $q->options->search($correctOption)) }}
@if($isBilingual)
{{ $correctOption->option_text }}
{{ $correctOption->option_text_en }}
@elseif($showHindi)
{{ $correctOption->option_text }}
@else
{{ $correctOption->option_text_en ?: $correctOption->option_text }}
@endif
@else โ€” @endif
Edit
@csrf @method('DELETE')

๐Ÿ“ญ

No questions added yet

Click "Add Question" to create the first one

+ Add Question
@endsection