{{ __('app.hr.staff.title') }}

{{ __('app.hr.staff.desc') }}

@can('staff.create') {{ __('app.hr.staff.create') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($showForm)
@foreach ($accounts as $account) @endforeach @foreach ($departments as $department) @endforeach @foreach ($designations as $designation) @endforeach @foreach ($employmentTypes as $type) @endforeach @foreach ($statuses as $option) @endforeach @foreach ($genders as $option) @endforeach
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@foreach ($departments as $department) @endforeach @foreach ($statuses as $option) @endforeach
@forelse ($profiles as $profile) @empty @endforelse
{{ __('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->status->label() }} {{ $profile->joined_on?->translatedFormat('d M Y') }}
{{ __('app.actions.view') }} @can('staff.edit') {{ __('app.actions.edit') }} @endcan @can('staff.delete') {{ __('app.actions.delete') }} @endcan
@if ($profiles->hasPages())
{{ $profiles->links() }}
@endif