@extends(getTemplate().'.layouts.app') @section('content')

{{ $quiz->title }}

{{ $quiz->webinar->title }} | {{ trans('public.by') }} {{ $quiz->creator->full_name }}

{{ $quiz->pass_mark }}/{{ $questionsSumGrade }} {{ trans('public.min') }} {{ trans('quiz.grade') }}
{{ $numberOfAttempt }}/{{ $quiz->attempt }} {{ trans('quiz.attempts') }}
{{ $quizResult->user_grade }}/{{ $questionsSumGrade }} {{ trans('quiz.your_grade') }}
{{ trans('quiz.'.$quizResult->status) }} {{ trans('public.status') }}
{{ csrf_field() }} @foreach($quizQuestions as $key => $question)

{{ $question->title }}?

{{ trans('quiz.question_grade') }} : {{ $question->grade }} | {{ trans('quiz.your_grade') }} : {{ (!empty($userAnswers[$question->id]) and !empty($userAnswers[$question->id]["grade"])) ? $userAnswers[$question->id]["grade"] : 0 }}

{{ $key + 1 }}/{{ $quizQuestions->count() }}
@if($question->type === \App\Models\QuizzesQuestion::$descriptive)
@if(!empty($newQuizStart) and $newQuizStart->quiz->creator_id == $authUser->id)
id]["grade"] : 0 }}" class="form-control">
@endif @else
@foreach($question->quizzesQuestionsAnswers as $key => $answer)
@if($answer->correct) {{ trans('quiz.correct') }} @endif id]) and (int)$userAnswers[$question->id]["answer"] === $answer->id) ? 'checked' : '' }}> @if(!$answer->image) @else @endif
@endforeach
@endif
@endforeach
@if(!empty($newQuizStart)) @endif
@endsection @push('scripts_bottom') @endpush