@php $serial = $serialStart ?? 1; $allocatedSet = array_map('strval', $allocatedQuestionIds ?? []); @endphp @forelse($questions as $q) @php $qid = (string) $q->id; $isAllocated = in_array($qid, $allocatedSet, true); $levelRaw = strtolower(trim((string) ($q->level ?? 'easy'))); $levelClass = $levelRaw === 'hard' ? 'sr-level-hard' : ($levelRaw === 'medium' ? 'sr-level-medium' : 'sr-level-easy'); $cleanText = trim(preg_replace('/\s+/', ' ', strip_tags(htmlspecialchars_decode((string) $q->question)))); @endphp
No MCQ questions were found for this course and module yet.