@extends('layouts.app') @section('title', 'Browse Exams') @section('page-title', 'Available Exams') @section('content')
@forelse($exams as $exam)

{{ $exam->title }}

{{ ucfirst($exam->status) }}
@if($exam->description)

{{ Str::limit($exam->description, 100) }}

@endif
Duration
{{ $exam->duration_minutes }} min
Pass Mark
{{ $exam->pass_percentage }}%
Questions
{{ $exam->questions_count ?? '—' }}
Fee
{{ $exam->isFree() ? 'Free' : '$'.number_format($exam->price_per_candidate, 2) }}
@if($exam->start_at)
Opens: {{ $exam->start_at->format('M j, Y H:i') }}
@endif
By {{ $exam->tester->name }} @if($exam->tester->organization) · {{ $exam->tester->organization }} @endif {{ $exam->registrations_count }} registered
@php $myReg = auth()->user()->registrations()->where('exam_id', $exam->id)->first(); @endphp @if($myReg)
Registered View Status
@else
@csrf @if($exam->access_code)
@endif
@endif
@empty
No exams are currently available. Check back later.
@endforelse
@if($exams->hasPages())
{{ $exams->links() }}
@endif @endsection