@props(['status']) @php $statusClasses = [ 'In Progress' => 'bg-yellow-100 text-yellow-800', 'Completed' => 'bg-green-100 text-green-800', 'Failed' => 'bg-red-100 text-red-800', 'Paused' => 'bg-gray-100 text-gray-800', 'Scheduled' => 'bg-blue-100 text-blue-800', ]; $class = $statusClasses[$status] ?? 'bg-gray-100 text-gray-800'; @endphp merge(['class' => "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium $class"]) }}> {{ $status }}