@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; $student = null; $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp ← Back to Schedules Enter Marks Seat Allocation {{-- Info cards --}}

Exam Date

{{ $schedule->exam_date?->format('M j, Y') ?? '—' }}

Time

@if($schedule->starts_at) {{ $local($schedule->starts_at)->format('g:i a') }} @if($schedule->ends_at) – {{ $local($schedule->ends_at)->format('g:i a') }} @endif @else — @endif

Room

{{ $schedule->room?->label() ?? $schedule->venue ?? '—' }}

Full / Pass Marks

{{ $schedule->full_marks }} / {{ $schedule->pass_marks }}

Status

{{ ucfirst($schedule->status) }}

{{-- Registered students + marks --}}

Registered Students ({{ $schedule->registrations->count() }})

Enter / Edit Marks →
@forelse($schedule->registrations->sortBy('student.first_name') as $registration) @php $entry = $schedule->markEntries->firstWhere('student_id', $registration->student_id); $seat = $schedule->seatAllocations->firstWhere('student_id', $registration->student_id); @endphp @empty @endforelse
# Student Roll No Seat Marks Obtained Status
{{ $loop->iteration }} {{ $registration->student->fullName() }} {{ $registration->student->roll_number ?? '—' }} {{ $seat?->seat_number ?? '—' }} @if($entry) @if($entry->is_absent) Absent @else {{ $entry->marks_obtained ?? '—' }} / {{ $schedule->full_marks }} @endif @else Not entered @endif @if($entry) {{ $entry->is_absent ? 'Absent' : ucfirst($entry->status) }} @else Pending @endif
No students registered for this schedule yet.