{{ __('app.hr.staff.desc') }}
| {{ __('app.hr.fields.employee_no') }} | {{ __('app.hr.fields.employee') }} | {{ __('app.hr.fields.department') }} | {{ __('app.hr.fields.designation') }} | {{ __('app.hr.fields.employment_type') }} | {{ __('app.hr.fields.status') }} | {{ __('app.hr.fields.joined_on') }} | {{ __('app.actions.view') }} |
|---|---|---|---|---|---|---|---|
| {{ $profile->employee_no }} | {{ $profile->user?->name ?? '—' }} {{ $profile->user?->email }} | {{ $profile->department?->localizedName() ?? '—' }} | {{ $profile->designation?->localizedName() ?? '—' }} | {{ $profile->employment_type->label() }} |
@php($statusColor = match ($profile->status) {
\App\Enums\StaffStatus::Active => 'green',
\App\Enums\StaffStatus::OnLeave => 'gold',
\App\Enums\StaffStatus::Suspended => 'red',
default => 'slate',
})
|
{{ $profile->joined_on?->translatedFormat('d M Y') }} |
|
|
|
|||||||