@model string
@{
    var badgeClass = Model?.ToLowerInvariant() switch
    {
        "active" => "badge bg-green-lt text-green",
        "inactive" => "badge bg-gray-lt text-muted",
        "new" => "badge bg-blue-lt text-blue",
        "consulting" => "badge bg-yellow-lt text-yellow",
        "contracted" => "badge bg-green-lt text-green",
        "rejected" => "badge bg-red-lt text-red",
        "closed" => "badge bg-secondary-lt text-secondary",
        _ => "badge bg-secondary-lt text-secondary"
    };
}
<span class="@badgeClass">@Model</span>
