@props(['type' => 'success', 'message' => '', 'title' => '', 'dismissible' => true, 'autoHide' => false, 'duration' => 5000]) @php $classes = match($type) { 'success' => 'bg-green-50 border-green-200 text-green-800', 'error' => 'bg-red-50 border-red-200 text-red-800', 'warning' => 'bg-yellow-50 border-yellow-200 text-yellow-800', 'info' => 'bg-blue-50 border-blue-200 text-blue-800', default => 'bg-gray-50 border-gray-200 text-gray-800' }; $ringClasses = match($type) { 'success' => 'focus:ring-green-500', 'error' => 'focus:ring-red-500', 'warning' => 'focus:ring-yellow-500', 'info' => 'focus:ring-blue-500', default => 'focus:ring-gray-500' }; $icon = match($type) { 'success' => '', 'error' => '', 'warning' => '', 'info' => '', default => '' }; $uniqueId = 'notification-' . uniqid(); @endphp