public function __construct() { BaseHelpers::checkBaseModules(); $this->modules = BaseHelpers::getAllModuleDetails(); $this->theme = Config::get('modulemanagement.theme'); $menuPages = Page::where('showMenu', 1)->where('masterPageId', 0)->get(); $brandname = ModvelHelpers::getInformation('brand-name'); $mainModuleCategories = BaseHelpers::getAdminModuleCategories(); view()->share('modules', $this->modules); view()->share('theme', $this->theme); view()->share('menuPages', $menuPages); view()->share('brandname', $brandname); view()->share('mainModuleCategories', $mainModuleCategories); }
public function __construct() { $user = Auth::user(); BaseHelpers::checkBaseModules(); BaseHelpers::getAllModuleDetails(); $this->modules = BaseHelpers::getModulesWithCategory(); $this->theme = Config::get('modulemanagement.adminTheme'); $cachedModules = Cache::get('modules'); $panelbold = ModvelHelpers::getInformation('administratorpanelnamebold'); $panelwhite = ModvelHelpers::getInformation('administratorpanelnamewhite'); $brandname = ModvelHelpers::getInformation('brand-name'); $panelname = ModvelHelpers::getInformation('administratorpanelname'); $adminModuleCategories = BaseHelpers::getAdminModuleCategories(); view()->share('modules', $this->modules); view()->share('theme', $this->theme); view()->share('user', $user); view()->share('panelbold', $panelbold); view()->share('panelwhite', $panelwhite); view()->share('panelname', $panelname); view()->share('brandname', $brandname); view()->share('adminModuleCategories', $adminModuleCategories); }