<?php

namespace App\Enums;

use App\Enums\Concerns\HasValues;

enum LeaveRequestStatus: string
{
    use HasValues;

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

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