addLoginTab(); $this->addLoginTabForm(); $this->updateSidebar(); $this->hidePlusMenuForStaff(); $this->addTooltipsToMenus(); $this->fixStaffSidebarMenuOrder(); $this->updateCreateDashboardColorPickers(); $this->updateEditDashboardColorPickers(); if (isModuleActive('JobPortal')) { $this->updateDashboard(); $this->addMainMenuToAdminDashboard(); $this->addMenuColorSettings(); $this->updateProfileMenu(); } $this->addUsernameFieldToStaffCreateForm(); $this->addUsernameFieldToStaffEditForm(); $this->updateUserRepository(); $this->updateStaffRequest(); $this->updateLoginController(); //$this->addMobileHeaderForStaffLogin(); $this->updateRegisterController(); $this->addUsernameSupportToProfilePage(); $this->updateUsernameSupportInCustomerController(); $this->addUsernameFieldToCandidateProfileForm(); $this->updateUsernameSupportInCandidateProfileController(); $this->addFrontendProfileMenu(); $this->copyLangFile(); $this->addUsernameFieldToStaffRegister(); $this->updateUserModel(); $this->addJobPortalMenu(); $this->addEmailSettingsToGeneralSettings(); $this->updateCustomerDetails(); } public static function addLoginTab() { if (isModuleActive('FrontendCMS')) { $path = module_path('FrontendCMS', 'Resources/views/login-page/index.blade.php'); if (file_exists($path)) { $content = file_get_contents($path); if (!preg_match("/@include\('staffportal::components\._login_tab'\)/", $content)) { $matches = null; preg_match("/@if\(isModuleActive\('MultiVendor'\)\)/", $content, $matches); if (count($matches) > 0) { $code = $matches[0]; $snippet = " @if (isModuleActive('StaffPortal')) @include('staffportal::components._login_tab') @endif "; $code = $snippet.$code; $content = preg_replace("/@if\(isModuleActive\('MultiVendor'\)\)/", $code, $content); file_put_contents($path, $content); } } } } } public static function addLoginTabForm() { if (isModuleActive('FrontendCMS')) { $path = module_path('FrontendCMS', 'Resources/views/login-page/components/form.blade.php'); if (file_exists($path)) { $content = file_get_contents($path); if (!preg_match("/@include\('staffportal::components\._login_tab_form'\)/", $content)) { $matches = null; preg_match('/