@if($course->publishedExams->count() > 0) @if(!$action_type) @include('frontend.student.course.partial.render-quiz-list') @elseif($action_type == 'quiz-list') @include('frontend.student.course.partial.render-quiz-list') @else @if($action_type == 'start-quiz') @if(isset($answer))
{{$exam->name}}

Question {{$number_of_answer}} of {{$exam->questions->count()}}

@if(@$take_exam) @php $now = \Carbon\Carbon::now(); $expend_second = $now->diffInSeconds($take_exam->created_at); @endphp

Time remaining: {{\Carbon\Carbon::parse($exam->duration * 60)->subSecond($expend_second)->format('H:i:s')}} of {{\Carbon\Carbon::parse($exam->duration * 60)->format('H:i:s')}}

@endif
@if(@$answer->question)

{{$answer->question->name}}

@foreach($answer->question->options as $key => $option) @if($option->id == $answer->question_option_id)
@else
@endif @endforeach
@endif
@else
@csrf
{{$exam->name}}

Question {{$number_of_answer + 1}} of {{$exam->questions->count()}}

@if(@$take_exam) @php $now = \Carbon\Carbon::now(); $expend_second = $now->diffInSeconds($take_exam->created_at); @endphp

Time remaining: {{\Carbon\Carbon::parse($exam->duration * 60)->subSecond($expend_second)->format('H:i:s')}} of {{\Carbon\Carbon::parse($exam->duration * 60)->format('H:i:s')}}

@endif

{{$question->name}} - {{$question->id}}

@foreach($question->options as $key => $option)
@endforeach
@endif @endif @if($action_type == 'quiz-result')
{{$exam->name}}

Total Score: {{get_total_score($exam->id)}}

Your Score: {{get_student_score($exam->id)}}

@foreach($exam->questions as $question)

{{$question->name}}

@foreach($question->options as $option)
@endforeach
@endforeach
@endif @if($action_type == 'leaderboard')
Your Position Quiz Mark Your Mark
{{get_position($exam->id)}}
img
{{auth::user()->name}}
{{get_total_score($exam->id)}}
{{get_student_score($exam->id)}}
Leaderboard
@foreach($top5_take_exams as $key => $top5_take_exam) @if($top5_take_exam->user)
{{$key + 1}}
img
{{$top5_take_exam->user->name}}
img
{{get_total_score($exam->id)}}
{{get_student_by_student_score($exam->id, $top5_take_exam->user_id)}}
@endif @endforeach
@if($take_exams->count() > 0)
@foreach($take_exams as $k => $take_exam) @if($take_exam->user)
{{$k + 1}}
img
{{$take_exam->user->name}}
{{get_total_score($exam->id)}}
{{get_student_by_student_score($exam->id, $top5_take_exam->user_id)}}
@endif @endforeach
@endif
@endif @endif @else
img
{{ __('Empty Quiz') }}
@endif