<?php

namespace App\Enums;

use App\Traits\ProvidesEnumOptions;

enum OwnerVerificationStatus: string
{
    use ProvidesEnumOptions;

    case PENDING = 'pending';
    case APPROVED = 'approved';
    case REJECTED = 'rejected';

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

    public function badgeVariant(): string
    {
        return match ($this) {
            self::PENDING => 'outline',
            self::APPROVED => 'default',
            self::REJECTED => 'destructive',
        };
    }
}
