middleware('maintenance_mode'); $this->socialConfigRepository = $socialConfigRepository; } public function social_login_configuration() { try { $messanger_chat = $this->socialConfigRepository->getMessangerData(); return view('generalsetting::social_login_configuration',compact('messanger_chat')); } catch (\Exception $e) { Toastr::error(__('common.operation_failed')); LogActivity::errorLog($e->getMessage()); return back(); } } public function social_login_configuration_update(Request $request) { try { $this->socialConfigRepository->socialLoginConfigurationUpdate($request); Toastr::success(__('common.updated_successfully'), __('common.success')); LogActivity::successLog('track order configuration updated.'); return back(); } catch (\Exception $e) { Toastr::error(__('common.operation_failed')); LogActivity::errorLog($e->getMessage()); return back(); } } public function messangerChatUpdate(Request $request){ $this->socialConfigRepository->messangerChatUpdate($request->except('_token')); LogActivity::successLog('MessangerChat code Update'); Toastr::success(__('common.updated_successfully'), __('common.success')); return redirect()->back(); try{ $this->socialConfigRepository->messangerChatUpdate($request->except('_token')); LogActivity::successLog('MessangerChat code Update'); Toastr::success(__('common.updated_successfully'), __('common.success')); return redirect()->back(); }catch(Exception $e){ LogActivity::errorLog($e->getMessage()); Toastr::error(__('common.Something Went Wrong'), __('common.error')); return redirect()->back(); } } }