🔔
System

Notification System

Admin Settings

In-app notifications with real-time updates

Overview

Complete notification system for user alerts. Supports info, success, warning, and error types. Bell icon widget shows unread count. Notification center for viewing history.

Design Considerations

UX patterns and visual design notes for this feature:

  • Unread badge should pop but not scream
  • Notification toast duration: 5-8 seconds
  • Group similar notifications to reduce noise
  • Swipe-to-dismiss on mobile feels intuitive

Key Benefits

What makes this feature stand out:

  • Four notification types with icons
  • Unread count in header
  • Mark as read/dismiss functionality
  • Admin can send to any user
Technical Note

NotificationHelper::info($userId, $title, $message). Widget renders bell icon. Notification model handles CRUD. Check /notification for user's center.

Helpers
NotificationHelper
Models
Notification
Database Tables
notification

Configuration

Config Relationship Legend
DB overrides params.php🔗 DB related setting📋 DB stores value only
params.php Configuration

Config path: params['notifications']

params['features']['notifications'] => trueparams['notifications']['showInHeader'] => trueparams['notifications']['maxDisplayed'] => 5params['notifications']['autoRefresh'] => false
Note: Notifications are runtime data - stored in notification table, not in system_setting. Feature toggle only in params.php.