@foreach(@$post->quizQuestions as $key => $quizQuestion) {{-- quiz-answered--}}

{!! $key+1 .'. '. $quizQuestion->question ?? '' !!}

@foreach(@$quizQuestion->quizAnswers as $key => $quizAnswer) @if($quizQuestion->answer_format != 'text')
{{-- wrong-answer correct-answer--}}
@if(isFileExist(@$quizAnswer->image, $result = @$quizAnswer->image->medium_image)) {!! $quizAnswer->answer_text !!} @else {!! $quizAnswer->answer_text !!} @endif
{!! $quizAnswer->answer_text !!}
@elseif($quizQuestion->answer_format == 'text')
{{-- wrong-answer correct-answer--}}
{!! $quizAnswer->answer_text !!}
.
@endif @endforeach
@endforeach
@section('quiz') @endsection