{{-- |-------------------------------------------------------------------------- | Admin Toast Notification System |-------------------------------------------------------------------------- | | Professional, production-ready toast notification system for Laravel Admin Panel. | | Features: | - Clean separation of concerns (CSS/JS in separate files) | - Memory leak prevention | - Accessibility compliant (WCAG 2.1) | - Performance optimized | - Error handling and fallbacks | - Responsive design | - High contrast mode support | - Reduced motion support | | Usage: | Controller: return redirect()->back()->with('success', 'Message'); | View: @include('components.admin-toast-notifications') | | Supported message types: success, error, warning, info |-------------------------------------------------------------------------- --}} @php $flashMessages = collect([ 'success' => session('success'), 'error' => session('error'), 'warning' => session('warning'), 'info' => session('info') ])->filter(); @endphp {{-- Always include JavaScript for AJAX toast support --}} @push('js') @endpush @if($flashMessages->isNotEmpty()) {{-- Toast Container --}}