@extends('layouts.app')
@section('title', 'My exams')
@section('breadcrumb')
Dashboard
My exams
@endsection
@push('styles')
@endpush
@section('content')
@if(session('success')){{ session('success') }}
@endif
@if(session('error')){{ session('error') }}
@endif
@if($totalCount === 0)
No approved applications yet
Your exams will appear here once an admin approves your application(s) and a roll number is issued.
@else
{{-- ────────── LIVE / IN-PROGRESS ────────── --}}
@if($live->isNotEmpty())
Live now
{{ $live->count() }}
@foreach($live as $row)
@include('candidate.my-exams._card', ['app' => $row['app'], 'attempt' => $row['attempt'], 'tone' => 'is-live'])
@endforeach
@endif
{{-- ────────── UPCOMING ────────── --}}
@if($upcoming->isNotEmpty())
Upcoming
{{ $upcoming->count() }}
@foreach($upcoming as $row)
@php $tone = $row['app']->post->exam_login_enabled_at->diffInHours(now()) <= 2 ? 'is-soon' : 'is-upnext'; @endphp
@include('candidate.my-exams._card', ['app' => $row['app'], 'attempt' => $row['attempt'], 'tone' => $tone])
@endforeach
@endif
{{-- ────────── COMPLETED ────────── --}}
@if($done->isNotEmpty())
Completed
{{ $done->count() }}
@foreach($done as $row)
@include('candidate.my-exams._card', ['app' => $row['app'], 'attempt' => $row['attempt'], 'tone' => 'is-done'])
@endforeach
@endif
{{-- ────────── NOT YET SCHEDULED ────────── --}}
@if($unsched->isNotEmpty())
Awaiting schedule
{{ $unsched->count() }}
@foreach($unsched as $row)
@include('candidate.my-exams._card', ['app' => $row['app'], 'attempt' => $row['attempt'], 'tone' => ''])
@endforeach
@endif
@endif
@endsection