<?php

namespace Modules\SystemCore\App\Enums;

enum CustomerStatus: string
{
    case Active = 'active';
    case Inactive = 'inactive';
    case Blocked = 'blocked';
    case Pending = 'pending';
    case Suspended = 'suspended';

    public function label(): string
    {
        return match ($this) {
            self::Active => __('Active'),
            self::Inactive => __('Inactive'),
            self::Blocked => __('Blocked'),
            self::Pending => __('Pending'),
            self::Suspended => __('Suspended'),
        };
    }

    public function color(): string
    {
        return match ($this) {
            self::Active => 'success',
            self::Inactive => 'secondary',
            self::Blocked => 'danger',
            self::Pending => 'warning',
            self::Suspended => 'dark',
        };
    }
}
