<?php

namespace App\Enums;

use App\Enums\Concerns\HasValues;

enum EmployeeAdvanceStatus: string
{
    use HasValues;

    case APPROVED = 'approved';
    case CANCELLED = 'cancelled';
    case PAID = 'paid';
    case PENDING = 'pending';
    case REJECTED = 'rejected';

    public function label(): string
    {
        return match ($this) {
            self::APPROVED => 'Disetujui',
            self::CANCELLED => 'Dibatalkan',
            self::PAID => 'Dibayar',
            self::PENDING => 'Menunggu',
            self::REJECTED => 'Ditolak',
        };
    }
}
