<?php

namespace App\Enums;

enum PropertyStatus: string
{
    case Available = 'available';
    case Sold = 'sold';
    case OnHold = 'on_hold';

    public function label(): string
    {
        return match ($this) {
            self::Available => 'Available',
            self::Sold => 'Sold',
            self::OnHold => 'On Hold',
        };
    }

    public function color(): string
    {
        return match ($this) {
            self::Available => 'success',
            self::Sold => 'danger',
            self::OnHold => 'warning',
        };
    }
}
