@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; // datetime-local inputs carry no timezone of their own and are treated as the // tenant's local wall-clock time (see AdmissionTestController::store) — the // "now" floor for the picker must be expressed in that same timezone, or a // school ahead of UTC could still pick a moment that's already passed locally. $nowLocal = now()->setTimezone($tenant->timezone)->format('Y-m-d\TH:i'); @endphp @php $reopenEdit = $errors->any() && old('_form') === 'edit'; @endphp
old('_test_id')]) : 'null' }}, editForm: {{ $reopenEdit ? Illuminate\Support\Js::from([ 'title' => old('title'), 'scheduled_at' => old('scheduled_at'), 'duration_minutes' => old('duration_minutes'), 'question_count' => old('question_count'), ]) : '{}' }} }"> Question Bank
All @foreach($schoolClasses as $schoolClass) {{ $schoolClass->name }} @endforeach
@forelse($tests as $test) @empty @endforelse
SL Title Class Scheduled At Start Deadline Duration Questions Invited
{{ $loop->iteration }} {{ $test->title }} {{ $test->schoolClass?->name ?? '—' }} {{ $test->scheduledAtLocal()->format('M j, Y g:i A') }} {{ $test->endsAtLocal()->format('M j, Y g:i A') }} @if($test->hasClosed()) Closed @elseif($test->isOpen()) Open @endif {{ $test->duration_minutes }} min {{ $test->question_count }} {{ $test->attempts_count }}
No admission tests scheduled yet.
@csrf @error('scheduled_at')

{{ $message }}

@enderror @error('question_count')

{{ $message }}

@enderror

Questions are drawn randomly from the selected class's bank and locked in per applicant once invited.

@csrf @method('PUT') @error('scheduled_at')

{{ $message }}

@enderror @error('question_count')

{{ $message }}

@enderror

Class can't be changed after a test is scheduled — delete and re-create it instead if you need a different class.