@props(['appointment']) @php $subtext = $appointment instanceof \App\Models\Appointment ? $appointment->displaySubtext() : null; @endphp @if ($subtext) merge(['class' => 'inline-flex rounded-full bg-indigo-50 px-2 py-0.5 text-[10px] font-semibold text-indigo-800']) }}> {{ $subtext }} @endif