<?php

namespace App\Enums;

use App\Enums\Concerns\HasValues;

enum EmployeeAdvanceStatus: string
{
    use HasValues;

    case DISBURSED = 'disbursed';
    case PARTIAL = 'partial';
    case PENDING = 'pending';
    case REJECTED = 'rejected';
    case REPAID = 'repaid';

    public function label(): string
    {
        return match ($this) {
            self::DISBURSED => 'Dikeluarkan',
            self::PARTIAL => 'Dicicil',
            self::PENDING => 'Menunggu',
            self::REJECTED => 'Ditolak',
            self::REPAID => 'Lunas',
        };
    }
}
