user(); $notificationModels = $customerModel->notifications; return view('club.pages.notifications.index', compact('notificationModels')); } /** * Get notifications count * * @return \Illuminate\Http\JsonResponse */ public function notificationsCount(): \Illuminate\Http\JsonResponse { return response()->json(FacadesView::shared('notifications_count', 0)); } }