<?php

namespace App\Enums;

use App\Enums\Concerns\HasValues;

enum StokOpnameStatus: string
{
    use HasValues;

    case CANCELLED = 'cancelled';
    case COMPLETED = 'completed';
    case DRAFT = 'draft';
    case IN_PROGRESS = 'in_progress';
    case VERIFIED = 'verified';

    public function label(): string
    {
        return match ($this) {
            self::CANCELLED => 'Dibatalkan',
            self::COMPLETED => 'Selesai',
            self::DRAFT => 'Draft',
            self::IN_PROGRESS => 'Dalam Proses',
            self::VERIFIED => 'Terverifikasi',
        };
    }
}
