<?php

namespace App\Domain\Event\Enums;

enum RegistrationStatus: string
{
    case Pending = 'pending';
    case Confirmed = 'confirmed';
    case Cancelled = 'cancelled';
    case Attended = 'attended';
    case NoShow = 'no_show';

    public function label(): string
    {
        return match ($this) {
            self::Pending => 'قيد المراجعة',
            self::Confirmed => 'مؤكد',
            self::Cancelled => 'ملغي',
            self::Attended => 'حضر',
            self::NoShow => 'لم يحضر',
        };
    }

    public function color(): string
    {
        return match ($this) {
            self::Pending => 'yellow',
            self::Confirmed => 'green',
            self::Cancelled => 'red',
            self::Attended => 'blue',
            self::NoShow => 'gray',
        };
    }
}
