<?php

namespace App\Enums;

enum SubscriptionStatus: string
{
    case Draft = 'draft';
    case Pending = 'pending';
    case Reviewing = 'reviewing';
    case Approved = 'approved';
    case Completed = 'completed';
    case Cancelled = 'cancelled';

    public function label(): string
    {
        return match ($this) {
            self::Draft => 'Taslak',
            self::Pending => 'Beklemede',
            self::Reviewing => 'İnceleniyor',
            self::Approved => 'Onaylandı',
            self::Completed => 'Tamamlandı',
            self::Cancelled => 'İptal',
        };
    }
}
