@extends('layouts.app') @section('content')

Global Notification Test Page

Success Notification

Error Notification

Warning Notification

Info Notification

Test from Controller (Server-side)

@csrf

How to Use:

  • JavaScript: showNotification('message', 'type', duration)
  • From Controllers: show_notification('message', 'type', duration)
  • From Livewire: Livewire::emit('showNotification', 'message', 'type', duration)
  • Types: success, error, warning, info
  • Duration is in milliseconds (default: 5000)
@endsection