<?php

namespace App\Domain\HR\Enums;

enum AdvanceStatus: string
{
    case Active = 'active';
    case FullyDeducted = 'fully_deducted';
    case Cancelled = 'cancelled';
    case Paused = 'paused';

    public function label(): string
    {
        return match($this) {
            self::Active => 'نشطة',
            self::FullyDeducted => 'مسددة بالكامل',
            self::Cancelled => 'ملغاة',
            self::Paused => 'متوقفة',
        };
    }
}
