<?php

namespace App\Enums;

enum ConsultationStatus: string
{
    case Pending = 'pending';
    case Approved = 'approved';
    case Rejected = 'rejected';
    case Completed = 'completed';
    case NoShow = 'no_show';
    case Cancelled = 'cancelled';

    public function label(): string
    {
        return match ($this) {
            self::Pending => __('enums.consultation_status.pending'),
            self::Approved => __('enums.consultation_status.approved'),
            self::Rejected => __('enums.consultation_status.rejected'),
            self::Completed => __('enums.consultation_status.completed'),
            self::NoShow => __('enums.consultation_status.no_show'),
            self::Cancelled => __('enums.consultation_status.cancelled'),
        };
    }
}
