diff --git a/app/Http/Controllers/APIs/Customer_API/NotificationController.php b/app/Http/Controllers/APIs/Customer_API/NotificationController.php index 4d15852..35788f5 100644 --- a/app/Http/Controllers/APIs/Customer_API/NotificationController.php +++ b/app/Http/Controllers/APIs/Customer_API/NotificationController.php @@ -24,7 +24,7 @@ class NotificationController extends Controller $page = $request->query('page', 1); if ($customerIamId) { - $notificationsData = NotificationDetails::where('principal_xid', $customerIamId)->orderBy('id', 'Desc')->get(); + $notificationsData = NotificationDetails::where('principal_xid', $customerIamId)->where('is_active', 1)->orderBy('id', 'Desc')->get(); $totalItems = $notificationsData->count(); $totalPages = ceil($totalItems / $perPage);