<?php

namespace App\Enums;

use App\Traits\ProvidesEnumOptions;

enum StokOpnameStatus: string
{
    use ProvidesEnumOptions;

    case DRAFT = 'draft';
    case PENDING = 'pending';
    case VERIFIED = 'verified';
    case REJECTED = 'rejected';

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