@extends('layouts.admin') @section('content')
Academic Year
{{ $exam->academic_year }}
Class
{{ $exam->class }}
Status
@php $statusColors = [ 'draft' => 'bg-amber-600/10 text-amber-600', 'active' => 'bg-ledger-green-700/10 text-ledger-green-700', 'completed' => 'bg-seal-blue-700/10 text-seal-blue-700', 'cancelled' => 'bg-redpen-600/10 text-redpen-600', ]; $statusColor = isset($exam->status) && array_key_exists($exam->status, $statusColors) ? $statusColors[$exam->status] : 'bg-paper-100 text-graphite-400'; @endphp {{ ucfirst($exam->status ?? '') }}Total Subjects
{{ $exam->subjects->count() }}
| Name | Code | Duration (min) | Total Marks | Schedules | Question Papers |
|---|---|---|---|---|---|
| {{ $subject->name }} | {{ $subject->code }} | {{ $subject->duration_minutes }} | {{ $subject->total_marks }} |
@php
$hasMorning = $subject->schedules->contains('time_slot', 'morning');
$hasEvening = $subject->schedules->contains('time_slot', 'evening');
$bothSlotsFilled = $hasMorning && $hasEvening;
@endphp
@if($subject->schedules->count() > 0)
@foreach($subject->schedules as $schedule)
{{ $schedule->exam_date->format('d M Y') }} {{ $schedule->start_time }} - {{ $schedule->end_time }}
{{ $schedule->time_slot_label }}
@endforeach
@else
No schedule
@endif
@if($bothSlotsFilled)
+ Add
@else
@endif
|
{{ optional($subject->question_papers)->count() }} |
| No subjects found for this exam. | |||||