@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $fmt = fn ($n) => $n === null ? '—' : rtrim(rtrim(number_format((float) $n, 2), '0'), '.'); @endphp

Upcoming & open

@forelse($upcoming as $test) @php $mine = $myResults->get($test->id); @endphp

{{ $test->title }}

{{ $test->course?->name }} · {{ $test->test_date->format('D, d M Y') }}

@if($test->syllabus)

Syllabus: {{ $test->syllabus }}

@endif
{{ $test->isOnline() ? 'Online' : 'In class' }}
@if($test->isOnline())

{{ $test->test_questions_count }} questions · {{ $fmt($test->total_marks) }} marks · {{ $test->duration_minutes }} min · −{{ $fmt($test->negative_marks) }} per wrong answer

{{ $test->opens_at ? 'Opens '.$test->opens_at->format('d M g:i A') : '' }}{{ $test->closes_at ? ' · Closes '.$test->closes_at->format('d M g:i A') : '' }}

@if($mine?->submitted_at) Submitted — result after publishing @elseif($test->isOpenForAttempts()) {{ $mine?->started_at ? 'Resume test' : 'Start test' }} @else {{ $test->closes_at?->isPast() ? 'Closed' : 'Not open yet' }} @endif
@endif
@empty

No upcoming tests.

@endforelse

Results

@forelse($published as $test) @php $mine = $myResults->get($test->id); @endphp @empty @endforelse
DateTestMarksPosition
{{ $test->test_date->format('d M Y') }} {{ $test->title }} {{ ! $mine || $mine->is_absent || $mine->marks === null ? 'Absent' : $fmt($mine->marks).' / '.$fmt($test->total_marks) }} {{ $mine?->merit_position ? $mine->merit_position.' / '.($participants[$test->id] ?? '?') : '—' }} Details
No results yet.