@php $serial = $serialStart ?? 1; @endphp @forelse ($questions as $q) @php $isAllocated = in_array($q->id, $allocatedQuestionIds ?? []); @endphp