@extends('employee.layouts.app') @section('title', get_setting('site_name').' | '.__('Disciplinary case')) @section('content') @php $statusKey = str_replace('-', '_', (string) $case->status); @endphp

{{ __('Case') }} #{{ $case->id }}

{{ $case->incident->category->name ?? __('Disciplinary case') }}

{{ __('Back to list') }}
@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
{{ __('Case details') }} {{ \App\Models\DisciplinaryCase::statusLabel($case->status) }}
{{ __('Category') }}
{{ $case->incident->category->name ?? '—' }}
{{ __('Incident date') }}
{{ $case->incident->incident_date?->format('Y-m-d') ?? '—' }}
{{ __('Compliance total') }}
{{ $complianceTotal }}
@if($case->finalAction && $case->status === \App\Models\DisciplinaryCase::STATUS_CLOSED)
{{ __('Outcome') }}
{{ $case->finalAction->name }}
@endif
{{ $case->incident->description }}
@if($settings?->grievance_instructions)
{!! nl2br(e($settings->grievance_instructions)) !!}
@endif @if($case->hasShowCauseNotice()) {{ __('View / Print show-cause notice') }} @endif @if($case->hasWarningLetter()) {{ __('View / Print warning letter') }} @endif
@if($case->hearing_at)
{{ __('Hearing schedule') }}
{{ __('When') }}
{{ $case->hearing_at->format('d M Y H:i') }}
{{ __('Location') }}
{{ $case->hearing_location ?: '—' }}
@if($case->hearing_notes)
{{ $case->hearing_notes }}
@endif
@endif @if($case->status === \App\Models\DisciplinaryCase::STATUS_SHOW_CAUSE)
{{ __('Your written reply') }}
@if($case->employee_reply_at)
{{ __('Reply submitted at :t', ['t' => $case->employee_reply_at]) }}
{{ $case->employee_reply_text }}
@else
{{ __('A written reply is required for this show-cause notice.') }}
@csrf
@error('employee_reply_text')
{{ $message }}
@enderror
@endif
@endif @if($case->appeal)
{{ __('Your appeal') }} {{ \App\Models\DisciplinaryAppeal::statusLabel($case->appeal->status) }}
{{ $case->appeal->grounds }}
@if($case->appeal->decision_notes)
{{ $case->appeal->decision_notes }}
@endif
@elseif($case->canEmployeeAppeal())
{{ __('Appeal this decision') }}
@if($case->appeal_deadline_at)

{{ __('Deadline') }}: {{ $case->appeal_deadline_at->format('d M Y') }}

@endif
@csrf
@error('grounds')
{{ $message }}
@enderror
@endif
@endsection