<?php

namespace App\Enums;

use App\Traits\ProvidesEnumOptions;

enum OwnerVerificationAction: string
{
    use ProvidesEnumOptions;

    case CREATE = 'create';
    case UPDATE = 'update';
    case DELETE = 'delete';
    case TOGGLE_STATUS = 'toggle_status';
    case STOCK_VERIFY = 'stock_verify';
    case RETAIL_STOCK_TRANSFER = 'retail_stock_transfer';

    public function label(): string
    {
        return match ($this) {
            self::CREATE => 'Tambah',
            self::UPDATE => 'Ubah',
            self::DELETE => 'Hapus',
            self::TOGGLE_STATUS => 'Ubah Status',
            self::STOCK_VERIFY => 'Verifikasi Stok',
            self::RETAIL_STOCK_TRANSFER => 'Transfer Stok Ecer',
        };
    }
}
