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

{{ trans('quiz.level_identification_quiz') }}

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

{{ $quiz->pass_mark }}/{{ $quizQuestions->sum('grade') }} {{ trans('public.min') }} {{ trans('quiz.grade') }}
{{ $attempt_count }}/{{ $quiz->attempt }} {{ trans('quiz.attempts') }}
{{ $quizResult->user_grade }}/{{ $quizQuestions->sum('grade') }} {{ trans('quiz.your_grade') }}
{{ trans('quiz.'.$quizResult->status) }} {{ trans('public.status') }}
@switch($quizResult->status) @case(\App\Models\QuizzesResult::$passed)

{{ trans('quiz.status_passed_title') }}

{!! trans('quiz.status_passed_hint',['grade' => $quizResult->user_grade.'/'.$quizQuestions->sum('grade')]) !!}

@if($quiz->certificate)

{{ trans('quiz.you_can_download_certificate') }}

@endif
@break @case(\App\Models\QuizzesResult::$failed)

{{ trans('quiz.status_failed_title') }}

{!! trans('quiz.status_failed_hint',['min_grade' => $quiz->pass_mark .'/'. $quizQuestions->sum('grade'),'user_grade' => $quizResult->user_grade]) !!}

@if($canTryAgain)

{{ trans('public.you_can_try_again') }}

@endif
@break @case(\App\Models\QuizzesResult::$waiting)

{{ trans('quiz.status_waiting_title') }}

{!! nl2br(trans('quiz.status_waiting_hint')) !!}

@break @endswitch
@endsection