@extends('layouts.landing') @section('title', 'Elearning Quiz') @section('content') @php $score = $third_percentage ? $third_percentage : ($second_percentage ? $second_percentage : ($first_percentage ? $first_percentage : 0)); @endphp
{{$test->title}}
{{$test->timer == 1 ? $test->timer. ' min' : $test->timer. ' mins'}} - {{$question_count == 1 ? $question_count. ' question' : $question_count. ' questions'}}
00:00
@if($third_percentage) @if($third_percentage < 60)

Maximum limit reached, You cannot retake this test again

@endif @elseif($second_percentage) @if($second_percentage < 60)
@if(count($questions) > 0) @php $question_no = 1; @endphp @foreach ($questions as $question)
{{$question_no}}. {{$question->title}}
@endforeach @endif
@endif @elseif($first_percentage) @if($first_percentage < 60)
@if(count($questions) > 0) @php $question_no = 1; @endphp @foreach ($questions as $question)
{{$question_no}}. {{$question->title}}
@endforeach @endif
@endif @else
@if(count($questions) > 0) @php $question_no = 1; @endphp @foreach ($questions as $question)
{{$question_no}}. {{$question->title}}
@endforeach @endif
@endif
@php $time = \Carbon\Carbon::parse($user_time->time)->addMinutes($test->timer); @endphp @endsection