@if ($letter->document) @php($owner = (int) $letter->user_id === (int) auth()->id()) @if ($owner) Download copy @elseif (auth()->user()->can('hrm.staff.view')) Download copy @endif @endif @if (session('status'))
{{ session('status') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

{{ \App\Models\Setting::get('facility_name', config('app.name')) }}

{{ \App\Models\Setting::get('facility_address', 'Human Resources Office') }}

{{ $letter->letter_no }}

{{ $letter->issued_at?->format('d F Y') }}

{{ $letter->user?->name }}

{{ $letter->user?->employee_no ?? '—' }}

{{ $letter->user?->department?->name ?? 'Unassigned' }}

{{ $letter->subject }}

{!! nl2br(e($letter->body)) !!}

Yours sincerely,

{{ $letter->issuedBy?->name ?? 'Human Resources' }}

{{ \App\Models\Setting::get('facility_name', config('app.name')) }} · Human Resources

@if ($letter->is_acknowledged)
Signed by
{{ $letter->acknowledged_name }}
Signed at
{{ $letter->acknowledged_at?->format('d M Y H:i') }}
@can('hrm.staff.view')
Signed from IP
{{ $letter->acknowledged_ip ?? '—' }}
@endcan
@elseif ($canSign)

Read the letter, then sign by typing your full name exactly as it appears on your profile. The date and IP address are recorded with your signature.

@csrf @else

Awaiting the employee's signature in their portal.

@endif
Letter no
{{ $letter->letter_no }}
Employee
{{ $letter->user?->name ?? '—' }}
Template
{{ $letter->template?->name ?? 'Custom letter' }}
Issued by
{{ $letter->issuedBy?->name ?? '—' }}
Filed in vault
@if ($letter->document && auth()->user()->can('hrm.staff.view')) View employee file @elseif ($letter->document) Open archived copy @else Not filed @endif