user(); $notificationModels = $customerModel->notifications()->orderBy('created_at', 'DESC')->get(); 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)); } }