/** * Shows the add component view. * * @return \Illuminate\View\View */ public function showAddComponent() { return View::make('dashboard.components.add')->withPageTitle(trans('dashboard.components.add.title') . ' - ' . trans('dashboard.dashboard'))->withGroups(ComponentGroup::all()); }
/** * Shows the add component view. * * @return \Illuminate\View\View */ public function showAddComponent() { $groups = ComponentGroup::all(); return View::make('dashboard.components.add')->with(['page_title' => trans('dashboard.components.add.title') . ' - ' . trans('dashboard.dashboard'), 'groups' => $groups]); }