assignment
Result
@php
$count = 1;
$selected_answer_count = 0;
@endphp
@forelse ($qa as $q)
@if ($count <= $participants_answer_count)
@if ($participant_answers[$selected_answer_count]->point > 0)
@php
$correct_answer = true;
$bg = '#e3fef0';
@endphp
@else
@php
$correct_answer = false;
$bg = '#fee3e3';
@endphp
@endif
@endif
@php
$count += 1;
$selected_answer_count += 1;
@endphp
@empty
{{ $count }} {!! $q->question !!}
@if ($correct_answer == true)
@else
@endif
No data to display
@endforelse