@php /** @var \App\Models\Staff|null $staff */ $timeline = $staff?->employmentTimeline() ?? [ 'joining_date' => null, 'probation_months' => null, 'probation_end_date' => null, 'probation_days' => null, 'permanent_date' => null, 'separation_date' => null, 'lifecycle_status' => null, 'lifecycle_label' => '—', ]; @endphp
{{ __('Employment lifecycle') }} {{ $timeline['lifecycle_label'] }}
{{ __('Joined') }}
{{ $timeline['joining_date'] ?? '—' }}
{{ __('Probation') }}
@if($timeline['probation_months']) {{ __(':m months', ['m' => $timeline['probation_months']]) }} @if($timeline['probation_days'] !== null) ({{ __(':d days', ['d' => $timeline['probation_days']]) }}) @endif @else — @endif
{{ __('Probation end') }}
{{ $timeline['probation_end_date'] ?? '—' }}
{{ __('Permanent from') }}
{{ $timeline['permanent_date'] ?? '—' }}
{{ __('Separated on') }}
{{ $timeline['separation_date'] ?? '—' }}