<?php

namespace App\Domain\HR\Enums;

enum EmployeeStatus: string
{
    case Active = 'active';
    case OnLeave = 'on_leave';
    case Suspended = 'suspended';
    case Terminated = 'terminated';
    case Resigned = 'resigned';

    public function label(): string
    {
        return match ($this) {
            self::Active => 'نشط',
            self::OnLeave => 'في إجازة',
            self::Suspended => 'موقوف',
            self::Terminated => 'منتهي الخدمة',
            self::Resigned => 'مستقيل',
        };
    }
}
