@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Appraisal records')) @section('content') @php $cycleLabels = [ \App\Models\StaffAppraisalRecord::CYCLE_THREE_MONTH => __('3-month probation'), \App\Models\StaffAppraisalRecord::CYCLE_SIX_MONTH => __('6-month review'), \App\Models\StaffAppraisalRecord::CYCLE_ANNUAL => __('Annual'), ]; @endphp
| {{ __('ID') }} | {{ __('Staff') }} | {{ __('Template') }} | {{ __('Cycle') }} | {{ __('Period') }} | {{ __('Due') }} | {{ __('Status') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|---|---|
| {{ $r->id }} | {{ $r->staff?->user?->name ?? __('Unknown') }} ({{ $r->staff?->user?->id ?? '—' }}) | {{ $r->template?->name ?? '—' }} | {{ $cycleLabels[$r->cycle_type] ?? $r->cycle_type }} | {{ $r->period_label ?? '—' }} | {{ $r->due_date ? $r->due_date->format('Y-m-d') : '—' }} | {{ $r->status }} | @if($r->status !== 'closed') @can('StaffAppraisal-edit') @endcan @endif |
| {{ __('No records.') }} | |||||||