feat: is_read di violation_notifications + unread count + mark all read

This commit is contained in:
Novy San87
2026-08-06 18:39:02 +07:00
parent 8f866737a0
commit 30de2850f7
3 changed files with 48 additions and 5 deletions
+1
View File
@@ -44,6 +44,7 @@ Route::middleware('auth:sanctum')->prefix('parent')->group(function () {
// Notifikasi & perangkat
Route::get('/notifications', [ParentNotificationController::class, 'index'])->name('api.parent.notifications');
Route::get('/notifications/unread', [ParentNotificationController::class, 'unreadCount'])->name('api.parent.notifications.unread');
Route::post('/notifications/read', [ParentNotificationController::class, 'markAllRead'])->name('api.parent.notifications.read');
Route::get('/school-informations', [ParentSchoolInformationController::class, 'index'])->name('api.parent.school-informations');
Route::get('/academic-calendar', [ParentSchoolInformationController::class, 'calendar'])->name('api.parent.academic-calendar');
Route::post('/devices', [ParentNotificationController::class, 'registerDevice'])->name('api.parent.devices');