<?php

namespace App\Enums;

use App\Enums\Concerns\HasValues;

enum PayrollStatus: string
{
    use HasValues;

    case CANCELLED = 'cancelled';
    case PAID = 'paid';
    case UNPAID = 'unpaid';

    public function label(): string
    {
        return match ($this) {
            self::CANCELLED => 'Dibatalkan',
            self::PAID => 'Dibayar',
            self::UNPAID => 'Belum Dibayar',
        };
    }
}
