checkApiToken(); $purchased = $this->getMyModules(); $modules = $this->getInstalledModules(); $installed = Module::where('company_id', '=', session('company_id'))->pluck('status', 'alias')->toArray(); return view('modules.my.index', compact('purchased', 'modules', 'installed')); } }