<?php

namespace App\Domain\Event\Enums;

enum EventType: string
{
    case Tournament = 'tournament';
    case Camp = 'camp';
    case Competition = 'competition';
    case OpenDay = 'open_day';
    case Workshop = 'workshop';
    case Friendly = 'friendly';
    case Exhibition = 'exhibition';
    case Other = 'other';

    public function label(): string
    {
        return match ($this) {
            self::Tournament => 'بطولة',
            self::Camp => 'معسكر',
            self::Competition => 'مسابقة',
            self::OpenDay => 'يوم مفتوح',
            self::Workshop => 'ورشة عمل',
            self::Friendly => 'ودية',
            self::Exhibition => 'عرض',
            self::Other => 'أخرى',
        };
    }

    public function icon(): string
    {
        return match ($this) {
            self::Tournament => 'trophy',
            self::Camp => 'fire',
            self::Competition => 'bolt',
            self::OpenDay => 'sun',
            self::Workshop => 'academic-cap',
            self::Friendly => 'hand-raised',
            self::Exhibition => 'eye',
            self::Other => 'calendar',
        };
    }
}
