{{-- Zustand einer Berechtigung oder eines Inhalts: Symbol, Text und Rahmen tragen gemeinsam, nie Farbe allein. --}} @props(['state']) @php [$icon, $label, $tone] = match ($state) { 'nutzbar' => ['check-circle', 'Verfügbar', 'ok'], 'aktiv' => ['check-circle', 'Aktiv', 'ok'], 'teilweise' => ['exclamation-triangle', 'Teilweise verfügbar', 'warn'], 'geplant' => ['clock', 'Noch nicht gültig', 'warn'], 'abgelaufen' => ['x-circle', 'Abgelaufen', 'off'], 'ausgesetzt' => ['exclamation-triangle', 'Ausgesetzt', 'off'], 'widerrufen' => ['x-circle', 'Widerrufen', 'off'], default => ['lock-closed', 'Nicht enthalten', 'off'], }; @endphp class(['mb-status', 'mb-status-'.$tone, 'state', 'state-'.str_replace(' ', '', (string) $state)]) }}>