@php $allocatedIds = array_map('intval', $allocatedIds ?? []); @endphp @foreach($mcqs as $index => $mcq)