<?php

namespace App\Enums;

enum CouponStatus: string
{
    case DRAFT = 'draft';
    case ACTIVE = 'active';
    case SCHEDULED = 'scheduled';
    case PAUSED = 'paused';
    case ARCHIVED = 'archived';

    public function label(): string
    {
        return match ($this) {
            self::DRAFT => __('Draft'),
            self::ACTIVE => __('Active'),
            self::SCHEDULED => __('Scheduled'),
            self::PAUSED => __('Paused'),
            self::ARCHIVED => __('Archived'),
        };
    }
}
