@foreach($questions as $index => $q) @php $serial = $serialStart + $index; $isChecked = in_array($q->id, $checkedQuestions ?? []); @endphp

{{ $serial }}. {{ strip_tags($q->title) }}

{{ $q->level }} @if($isChecked) Selected @endif
@endforeach @if($questions->isEmpty())

No Questions Found

No coding questions available for this course. Add some questions first.

@endif