<?php

namespace App\Enums;

enum WalkInStatus: string
{
    case WAITING = 'waiting';
    case ASSIGNED = 'assigned';
    case IN_SERVICE = 'in_service';
    case COMPLETED = 'completed';
    case CANCELLED = 'cancelled';
    case CONVERTED = 'converted';

    public function label(): string
    {
        return match ($this) {
            self::WAITING => 'Waiting',
            self::ASSIGNED => 'Assigned',
            self::IN_SERVICE => 'In Service',
            self::COMPLETED => 'Completed',
            self::CANCELLED => 'Cancelled',
            self::CONVERTED => 'Converted',
        };
    }
}
