<?php

namespace App\Domain\Inventory\Enums;

enum PurchaseOrderStatus: string
{
    case Draft = 'draft';
    case Submitted = 'submitted';
    case Confirmed = 'confirmed';
    case PartiallyReceived = 'partially_received';
    case Received = 'received';
    case Cancelled = 'cancelled';

    public function label(): string
    {
        return match ($this) {
            self::Draft => 'مسودة',
            self::Submitted => 'مقدم',
            self::Confirmed => 'مؤكد',
            self::PartiallyReceived => 'مستلم جزئياً',
            self::Received => 'مستلم',
            self::Cancelled => 'ملغى',
        };
    }
}
