Notification System
Lartrix provides a complete notification system with support for category management and cross-admin sending.
Features
- Notification category management
- Personal message center
- Read / unread status
- Main admin can send notifications to sub-admins
Admin Interface
Notification Categories
Log in to the admin panel and go to "System" -> "Notification Categories":
- System notifications
- Task reminders
- Announcement messages
Send Notification
The main admin can send notifications to other admins:
- Go to "System" -> "Send Notification"
- Select target admin (Guard)
- Select notification category
- Fill in title and content
- Select recipients (optional, leave empty to send to all)
API
Get Notification List
http
GET /api/admin/notificationsMark as Read
http
POST /api/admin/notifications/{id}/mark-readMark All as Read
http
POST /api/admin/notifications/mark-all-readSend Notification to Admin
http
POST /api/admin/notifications/send-to-backend
{
"guard": "merchant",
"title": "System Announcement",
"content": "System maintenance tonight",
"category_id": 1
}Frontend Display
The system automatically shows a notification bell icon at the top of the page. Click it to view the message list.