@props(['status']) @php [$label, $classes] = match ($status) { 'brouillon' => ['Brouillon', 'pastille'], 'a_relire' => ['À relire', 'pastille pastille--attente'], 'relecture' => ['Relecture juridique', 'bg-orange-50 text-orange-800 ring-orange-200'], 'valide' => ['Validé', 'pastille'], 'publie' => ['Publié', 'pastille pastille--vigueur'], 'a_actualiser' => ['À actualiser', 'bg-fuchsia-50 text-fuchsia-800 ring-fuchsia-200'], 'archive' => ['Archivé', 'pastille'], default => [$status, 'pastille'], }; @endphp merge(['class' => 'inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-semibold ring-1 '.$classes]) }}> {{ $label }}