@if($questions->count() === 0)

No MCQ Questions Found

@if(request()->filled('search') || !empty($search)) No questions match your search filter. Try another keyword or clear the search box. @else No multiple-choice questions have been added for this topic yet. Click "Add MCQ" or "Bulk Upload" above to get started. @endif

@else @foreach($questions as $index => $mcq) @php $qNumber = ($questions->currentPage() - 1) * $questions->perPage() + $index + 1; $levelRaw = strtolower(trim((string) ($mcq->level ?? 'easy'))); $levelClass = $levelRaw === 'hard' ? 'sr-level-hard' : ($levelRaw === 'medium' ? 'sr-level-medium' : 'sr-level-easy'); $cleanQuestion = strip_tags(htmlspecialchars_decode((string) $mcq->question), '


'); @endphp

Q{{ $qNumber }} {{ ucfirst($levelRaw ?: 'Easy') }}
{!! $cleanQuestion !!}
@endforeach @endif