@extends('layouts.master', ['title' => 'Job Seeker Dashboard']) @section('content')

Take Your Exam

@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif @foreach ($exams as $exam) @php $iscancelled = App\Models\ExamStatus::select('status', 'timeend', 'timestart', 'cancel_reason')->where([ 'centre_id' => $jobSeekerCentreDetails->centre_id, 'exam_id' => $exam->id, 'jobseeker_id' => Auth::user()->id, ])->get(); @endphp @forelse($iscancelled as $examstatus) @empty @endforelse @endforeach
Id Exam Name No. of Questions Max Time Allowed Marks per question Time Taken Remark (If any) Action
{{$loop->iteration}} {{$exam->examname}} {{$exam->no_of_questions}} {{ \Carbon\CarbonInterval::seconds($exam->max_time_allowed)->cascade()->forHumans() }} {{$exam->marks_per_question}} {{$examstatus->timeend ? \Carbon\CarbonInterval::seconds($examstatus->timeend - $examstatus->timestart)->cascade()->forHumans() : 'Not Started'}} {{$examstatus->cancel_reason}} @if ($examstatus->status == 'inprogress')
@csrf
@elseif(isset($examstatus->status) && $examstatus->status == 'complete') @elseif(isset($examstatus->status) && $examstatus->status == 'inprogress') @else @endif {{-- Start Exam --}}
{{$loop->iteration}} {{$exam->examname}} {{$exam->no_of_questions}} {{ \Carbon\CarbonInterval::seconds($exam->max_time_allowed)->cascade()->forHumans() }} {{$exam->marks_per_question}} Not Started Not Started
@csrf
{{ $exams->links() }}
@endsection