@php $stages = config('southend.disciplinary_stages', []); $stageKeys = array_keys($stages); $currentIndex = array_search($case->stage, $stageKeys, true); @endphp @foreach ($stageKeys as $index => $stageKey) @if ($stageKey === 'dismissed') @continue @endif {{ $stages[$stageKey] ?? $stageKey }} @endforeach Case Number{{ $case->case_number }} Stage{{ $casesService->stageLabel($case->stage) }} Subject Student{{ $case->subjectStudent?->full_name }} Reported By{{ $casesService->reporterDisplayName($case, auth()->user()) }} Class{{ $case->schoolClass?->name ?? '—' }} Class Teacher{{ $case->classTeacher?->full_name ?? '—' }} Category{{ config('southend.disciplinary_categories.'.$case->category, $case->category ?? '—') }} Severity{{ ucfirst($case->severity) }} Title{{ $case->title }} Description{{ $case->description }} @if ($case->outcome) Outcome{{ $casesService->outcomeLabel($case->outcome) }} @if ($case->outcome_details)Outcome Details{{ $case->outcome_details }}@endif @if ($case->suspension_starts_on) Suspension{{ $case->suspension_starts_on->format('d M Y') }} — {{ $case->suspension_ends_on?->format('d M Y') ?? 'ongoing' }} @endif Parent Notified{{ $case->parent_notified ? 'Yes' : 'No' }} @endif @if ($case->attachments->isNotEmpty()) Evidence @foreach ($case->attachments as $file){{ $file->file_name }}@endforeach @endif @if (!empty($nextStages) && ! $case->isClosed()) @csrf Move To Stage @foreach ($nextStages as $stage) {{ $casesService->stageLabel($stage) }} @endforeach @if ($showOutcomeForm ?? false) Outcome (required when closing) — Select outcome — @foreach ($outcomes ?? [] as $outcome) {{ $casesService->outcomeLabel($outcome) }} @endforeach Outcome Details Parent notified Suspension starts Suspension ends @endif Notes Update Case @endif @if ($case->actions->isEmpty()) No actions recorded yet. @else DateActionStageByNotes @foreach ($case->actions as $action) {{ $action->created_at->format('d M Y H:i') }} {{ $action->action }} {{ $casesService->stageLabel($action->to_stage) }} {{ $action->performedBy?->name ?? '—' }} {{ $action->notes ?? '—' }} @endforeach @endif
No actions recorded yet.