@php // Maps every workflow status across the app onto a Bootstrap colour. $variant = match ($status) { 'pending', 'new', 'draft', 'unpaid' => 'warning', 'confirmed', 'reviewing', 'read', 'processing', 'quoted' => 'info', 'delivered', 'completed', 'approved', 'accepted', 'paid', 'sent', 'active', 'replied' => 'success', 'cancelled', 'rejected', 'no_show', 'failed' => 'danger', 'shipped' => 'primary', default => 'secondary', }; @endphp {{ $label }}