@php $icon = match ($type) { 'success' => 'check-circle', 'error' => 'close-circle', 'info' => 'info-circle', 'warning' => 'exclamation-circle', default => 'info-circle', }; $color = match ($type) { 'success' => 'bg-green-500', 'error' => 'bg-red-500', 'info' => 'bg-blue-500', 'warning' => 'bg-yellow-500', default => 'bg-blue-500', }; @endphp