<?php

namespace App\Enums;

use App\Enums\Concerns\HasValues;

enum ProductStatus: string
{
    use HasValues;

    case ACTIVE = 'active';
    case INACTIVE = 'inactive';
    case DRAFT = 'draft';
    case PENDING = 'pending';
    case REJECTED = 'rejected';

    public function label(): string
    {
        return match ($this) {
            self::ACTIVE => 'Aktif',
            self::INACTIVE => 'Non Aktif',
            self::DRAFT => 'Draft',
            self::PENDING => 'Menunggu Verifikasi',
            self::REJECTED => 'Ditolak',
        };
    }
}
