This commit is contained in:
sayliraut
2024-07-10 13:15:23 +05:30
parent 499f00148b
commit 75720d7b44

View File

@@ -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);