@php $class = match ($status) { 'CONFIRMED', 'COMPLETED' => 'bg-success', 'CANCELLED', 'NO_SHOW' => 'bg-danger', 'HELD' => 'bg-warning text-dark', default => 'bg-secondary', }; @endphp {{ $status }}