<?php

namespace App\Enums;

/**
 * Status billing/invoice (RPD BR-04).
 */
enum BillingStatus: string
{
    case Pending = 'Pending';
    case Lunas = 'Lunas';
    case Batal = 'Batal';

    public function label(): string
    {
        return $this->value;
    }

    /**
     * Hanya Pending yang dapat diubah/dihapus.
     */
    public function isPending(): bool
    {
        return $this === self::Pending;
    }
}
