@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Disciplinary case')) @section('content')
{{ __('Case') }} #{{ $case->id }}
{{ __('Back') }}

{{ __('Status') }}: {{ $case->status }}

{{ __('Employee') }}: {{ $case->incident->staff->user->name ?? '—' }}

{{ __('Rolling compliance total (window)') }}: {{ $complianceTotal }}

{{ __('Category') }}: {{ $case->incident->category->name ?? '—' }}

{{ __('Incident date') }}: {{ $case->incident->incident_date?->format('Y-m-d') }}

{{ __('Reported by') }}: {{ $case->incident->reporter->name ?? '—' }}

{{ __('Description') }}:

{{ $case->incident->description }}
@if($case->incident->evidence_files)

{{ __('Evidence paths') }}:

    @foreach($case->incident->evidence_files as $p)
  • {{ $p }}
  • @endforeach
@endif @if($case->investigator)

{{ __('Investigator') }}: {{ $case->investigator->user->name ?? '—' }}

@endif @if($case->investigation_notes)

{{ __('Investigation notes') }}:

{{ $case->investigation_notes }}
@endif @if($case->employee_reply_text)

{{ __('Employee reply') }}: ({{ $case->employee_reply_at }})

{{ $case->employee_reply_text }}
@endif @if($case->final_verdict)

{{ __('Proposed / final verdict') }}:

{{ $case->final_verdict }}
@endif @if($case->show_cause_notice_path) {{ __('Download show-cause PDF') }} @endif @if($case->warning_letter_path) {{ __('Download warning letter') }} @endif
@can('Disciplinary-edit') @if($case->status === \App\Models\DisciplinaryCase::STATUS_OPEN)
{{ __('Start investigation') }}
@csrf
@endif @if($case->status === \App\Models\DisciplinaryCase::STATUS_INVESTIGATION)
{{ __('Show-cause') }}
@csrf
@endif @endcan @can('Disciplinary-Approve') @if(in_array($case->status, [\App\Models\DisciplinaryCase::STATUS_SHOW_CAUSE, \App\Models\DisciplinaryCase::STATUS_INVESTIGATION], true))
{{ __('Send for hierarchy verdict') }}
@csrf

{{ __('Uses Approval Hierarchy / supervisor chain when configured for request type :t.', ['t' => 'App\\Models\\DisciplinaryCase']) }}

@endif @endcan @can('Disciplinary-edit') @if(! in_array($case->status, [\App\Models\DisciplinaryCase::STATUS_CLOSED, \App\Models\DisciplinaryCase::STATUS_DISMISSED], true))
{{ __('Dismiss case') }}
@csrf
@endif @endcan
@endsection @section('script') @endsection