@extends('layouts.app') @section('title','Life Events — '.$employee->full_name) @section('page-title','Employees') @section('content')
{{-- Employee Status Card --}}
{{ strtoupper(substr($employee->first_name,0,1).substr($employee->last_name,0,1)) }}
{{ $employee->full_name }}
{{ $employee->employee_number }}
Current Status {{ ucfirst($employee->status) }}
Employed {{ $employee->date_of_employment?->format('M d, Y') ?? '—' }}
@if($employee->confirmation_date)
Confirmed {{ $employee->confirmation_date->format('M d, Y') }}
@endif @if($employee->retirement_date)
Retired {{ $employee->retirement_date->format('M d, Y') }}
@endif @if($employee->deceased_date)
Deceased {{ $employee->deceased_date->format('M d, Y') }}
@endif
Pension Eligible {{ $employee->pension_eligible ? '✓ Yes' : '✗ No' }}
{{-- Record New Event --}}
Record Life Event
@csrf
{{-- Timeline --}}
Event Timeline
@if($events->isEmpty())
No life events recorded yet.
@else
@foreach($events as $event)
{{ $event->event_label }}
{{ $event->event_date->format('M d, Y') }} @if($event->effective_date && $event->effective_date != $event->event_date) · Effective: {{ $event->effective_date->format('M d, Y') }} @endif
by {{ $event->recordedBy?->name ?? 'System' }}
@if($event->new_position || $event->new_salary)
@if($event->new_position)
Position: {{ $event->previous_position }}{{ $event->new_position }}
@endif @if($event->new_salary)
Salary: ${{ number_format($event->previous_salary ?? 0, 0) }}${{ number_format($event->new_salary, 0) }}
@endif
@endif @if($event->notes)
{{ $event->notes }}
@endif
@endforeach
@endif
@endsection @push('scripts') @endpush