@if($questions->isEmpty() && $answered_questions->isEmpty())

No quizzes found

@else

Questions


{{ csrf_field() }} @php $i = 1; $enable = 0; $qno = 1; @endphp @forelse($answered_questions as $key1=>$answerQuest) @php $ans = explode(',',$answerQuest->correct_answer); $color = $answerQuest->is_correct?'green':'red'; @endphp
@if($answerQuest->post_text!='')
{{ $answerQuest->post_text}}
@else @endif @if($answerQuest->is_correct == 0)

Answer : {{ $ans[0] }} Report an issue

@endif
@php $qno++; @endphp @empty @endforelse @foreach($questions as $key=>$quest) @if($i == 1)
@else @php $i++; $qno++; @endphp @endforeach
@endif