@php $actionColors = [ 'none' => 'slate', 'verbal_warning' => 'amber', 'written_warning' => 'amber', 'final_warning' => 'rose', 'suspension' => 'rose', 'dismissal' => 'rose', ]; $docColors = ['warning' => 'rose', 'incident_report' => 'amber', 'suspension' => 'rose', 'medical' => 'sky']; $money = fn ($v) => $baseCode.' '.number_format((float) $v, 2); $openCount = $cases->where('status', 'open')->count(); @endphp
{{ __('Incidents, warnings, suspensions and costs recovered from pay. Private to HR and the employee.') }} @if ($cases->isNotEmpty()) · {{ trans_choice('{1}:count case|[2,*]:count cases', $cases->count(), ['count' => $cases->count()]) }}, {{ __(':n open', ['n' => $openCount]) }} @endif
{{ $case->incident_on?->format('j M Y') }} · {{ $case->categoryLabel() }} @if ($case->recorder) · {{ __('recorded by :name', ['name' => $case->recorder->name]) }} @endif
{{ $case->description }}
@endif {{-- Suspension + recovery strip --}} @if ($case->hasSuspension() || ($recovery && $canSeeMoney)){{ __('Suspension') }}
{{ $case->suspended_from->format('j M') }} – {{ $case->suspended_to->format('j M Y') }}
{{ trans_choice('{1}:n working day|[2,*]:n working days', (int) ceil($suspDays), ['n' => rtrim(rtrim(number_format($suspDays, 1), '0'), '.')]) }} · {{ $case->suspension_paid ? __('on full pay') : __('without pay') }} @if (! $case->suspension_paid && $canSeeMoney && $dailyRate > 0) · {{ __('about :amt off basic pay', ['amt' => $money($suspDays * $dailyRate)]) }} @endif
{{ __('Recovered from pay') }}
{{ $money($recovery->recovered_amount) }} {{ __('of') }} {{ $money($recovery->total_amount) }}
{{ __(':amt a month from :month', ['amt' => $money($recovery->instalment_amount ?: $recovery->target_instalment), 'month' => $recovery->start_period?->format('M Y')]) }} · @if ($recovery->status === 'settled') {{ __('paid back') }} @elseif ($recovery->status === 'waived') {{ __('waived') }} @else {{ __(':amt still to go', ['amt' => $money($recovery->outstanding)]) }} @endif
{{ \Illuminate\Support\Str::limit($doc->body, 240) }}
@endif{{ __('No warning letter or report filed yet.') }}
@endif @if (! $case->isOpen() && $case->outcome){{ __('Outcome') }}: {{ $case->outcome }}
@endif{{ __('File the signed warning letter and any reports against the case once it is saved.') }}
{{ __(':n working days.', ['n' => rtrim(rtrim(number_format($previewDays, 1), '0'), '.')]) }} @if (! $c_suspension_paid) {{ __('Payroll takes them off the basic salary of the month they fall in.') }} @if ($canSeeMoney && $dailyRate > 0) {{ __('About :amt at the current daily rate.', ['amt' => $money($previewDays * $dailyRate)]) }} @endif @endif {{ __('The attendance roster shows them as suspended, not absent.') }}
@endif{{ __('For money the company paid on their behalf, such as a hospital bill. Deducted on each payroll until it is back.') }}
@if ($r_enabled){{ trans_choice('{1}Paid back in :n month.|[2,*]Paid back in :n months.', (int) ceil((float) $r_amount / (float) $r_instalment), ['n' => (int) ceil((float) $r_amount / (float) $r_instalment)]) }} {{ __('Taken in full each month, like a loan instalment, but never below zero pay.') }}
@endif{{ __('Closing does not stop a deduction still running.') }}