@extends(getTemplate() .'.panel.layouts.panel_layout') @push('styles_top') @endpush @section('content')

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

{{ $waitingCount }} {{ trans('quiz.need_to_review') }}
{{ $quizResultsCount }} {{ trans('public.results') }}
{{ $quizAvgGrad }} {{ trans('quiz.average_grade') }}
{{ $successRate }}% {{ trans('quiz.success_rate') }}

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

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

get('open_results',null) == 'on') checked @endif>
@if($quizzesResults->count() > 0)
@foreach($quizzesResults as $result) @endforeach
{{ trans('quiz.student') }} {{ trans('quiz.quiz') }} {{ trans('quiz.quiz_grade') }} {{ trans('quiz.student_grade') }} {{ trans('public.status') }} {{ trans('public.date') }}
{{ $result->user->full_name }} {{ $result->user->email }}
{{ $result->quiz->title }} {{ $result->quiz->webinar->title }} {{ $result->getQuestions()->sum('grade') }} {{ $result->user_grade }} @switch($result->status) @case(\App\Models\QuizzesResult::$passed) {{ trans('quiz.passed') }} @break @case(\App\Models\QuizzesResult::$failed) {{ trans('quiz.failed') }} @break @case(\App\Models\QuizzesResult::$waiting) {{ trans('quiz.waiting') }} @break @endswitch {{ dateTimeFormat($result->created_at, 'j M Y H:i') }}
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'result.png', 'title' => trans('quiz.quiz_result_no_result'), 'hint' => trans('quiz.quiz_result_no_result_hint'), ]) @endif
{{ $quizzesResults->appends(request()->input())->links('vendor.pagination.panel') }}
@endsection @push('scripts_bottom') @endpush