@php $field = 'block w-full rounded-lg border border-lms-line bg-white px-3.5 py-2.5 text-sm text-lms-ink shadow-sm focus:border-lms-blue focus:outline-none focus:ring-2 focus:ring-lms-blue/20'; @endphp
← Exams Edit
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif

Details

@if ($exam->is_published) Live @else Hidden @endif @if ($exam->results_published) Results on @else Results hidden @endif

Course: {{ $exam->course?->title }} · Pass {{ $exam->pass_score }}% @if ($exam->duration_minutes) · {{ $exam->duration_minutes }} min @endif

Window: @if ($exam->starts_at || $exam->ends_at) {{ optional($exam->starts_at)->format('d M Y, H:i') ?? 'Open' }} → {{ optional($exam->ends_at)->format('d M Y, H:i') ?? 'Open' }} @else Always open @endif · @if ($exam->isOpen()) Open now @else Closed @endif

@if ($exam->description)

{{ $exam->description }}

@endif

Questions

{{ $exam->questions->count() }} total
@forelse ($exam->questions as $index => $question)

{{ $index + 1 }}. {{ $question->question }}

    @foreach ($question->options as $optIndex => $option)
  • $optIndex === $question->correct_index, 'text-lms-muted' => $optIndex !== $question->correct_index])> {{ chr(65 + $optIndex) }}. {{ $option }} @if ($optIndex === $question->correct_index) ✓ @endif
  • @endforeach

{{ $question->points }} pts

@csrf @method('DELETE')
@empty
No questions yet
@endforelse
@csrf

Add question

Attempts

{{ $exam->attempts->count() }}
@forelse ($exam->attempts as $attempt) @empty @endforelse
Student Score % Result Completed
{{ $attempt->student?->name }}
{{ $attempt->student?->email }}
{{ $attempt->score }}/{{ $attempt->max_score }} {{ $attempt->percent() }}% @if ($attempt->passed) Pass @else Fail @endif {{ optional($attempt->completed_at)->format('d M Y, H:i') }}
No attempts yet