<?php

namespace App\Domain\Website\Enums;

enum ContactSubmissionStatus: string
{
    case New = 'new';
    case Read = 'read';
    case Replied = 'replied';
    case Archived = 'archived';

    public function label(): string
    {
        return match ($this) {
            self::New => 'جديد',
            self::Read => 'مقروء',
            self::Replied => 'تم الرد',
            self::Archived => 'مؤرشف',
        };
    }

    public function color(): string
    {
        return match ($this) {
            self::New => 'blue',
            self::Read => 'amber',
            self::Replied => 'green',
            self::Archived => 'gray',
        };
    }
}
