@php $quiz = $data['quiz']; $userQuiz = $data['userExam']; $questions = $data['questions']; $quizStart = $start ?: ($again ?: false); @endphp
@php $actionRoute = route('play.course', [ 'slug' => $quiz?->topic?->chapter?->course?->slug, 'topic_id' => $quiz?->topic?->id ?? null, 'type' => $type, 'chapter_id' => $quiz?->topic?->chapter?->id ?? null, ]); @endphp {{ translate('Course Video') }}
@php $icon = ' '; @endphp @php $icon = ' '; @endphp @php $icon = ' '; @endphp @php $icon = ' '; $attempt_number = $userQuiz->attempt_number ?? 0; $duration = $attempt_number == $quiz->total_retake ? 0 : ($userQuiz ? $quiz->duration : 0); $time = (!isInstructor() && $start ?: $again) ? $duration : ''; @endphp @php $icon = ' '; @endphp @php $icon = ' '; $status = translate('Not Yet'); if (isset($userQuiz->score)) { $status = $quiz->pass_mark <= $userQuiz->score ? '' . translate('Passed') . '' : '' . translate('Fail') . ''; } @endphp
@if (empty($userQuiz)) @else @php $attempt_number = $userQuiz->attempt_number ?? 0; $disabled = $attempt_number == $quiz->total_retake ? 'disabled' : ''; @endphp
@foreach ($questions as $questionList) @endforeach
@if ($attempt_number >= 1 && $attempt_number !== $quiz->total_retake && !$again && !isInstructor()) @else @if (!$disabled && !isInstructor())
@endif @endif @endif