@php $allocatedIds = array_map('intval', $allocatedIds ?? []); @endphp @foreach($mcqs as $index => $mcq) {{ $serialStart + $index }} {!! \Illuminate\Support\Str::limit(strip_tags($mcq->question), 150) !!} id, $allocatedIds, true) ? 'checked' : '' }}> @endforeach @if($mcqs->isEmpty()) No MCQs found. @endif