<?php

namespace App\Enums\Barangay;

enum DocumentStatus: string
{
    case DRAFT = 'DRAFT';
    case PENDING_PAYMENT = 'PENDING_PAYMENT';
    case PAID = 'PAID';
    case PROCESSING = 'PROCESSING';
    case READY = 'READY';
    case CLAIMED = 'CLAIMED';
    case CANCELLED = 'CANCELLED';

    public function label(): string
    {
        return match($this) {
            self::DRAFT          => 'Draft',
            self::PENDING_PAYMENT => 'Pending Payment',
            self::PAID           => 'Paid',
            self::PROCESSING     => 'Processing',
            self::READY          => 'Ready for Pickup',
            self::CLAIMED        => 'Claimed',
            self::CANCELLED      => 'Cancelled',
        };
    }
}
