Пример #1
0
 /**
  * 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());
 }
Пример #2
0
 /**
  * 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]);
 }