public function showComponents()
    {
        $components = Component::with('group')->orderBy('order')->orderBy('created_at')->get();

        $this->subMenu['components']['active'] = true;

        return View::make('dashboard.components.index')
            ->withPageTitle(trans_choice('dashboard.components.components', 2).' - '.trans('dashboard.dashboard'))
            ->withComponents($components)
            ->withSubMenu($this->subMenu);
    }
public function showComponents()
    {
        $components = Component::with('group')->orderBy('order')->orderBy('created_at')->get();

        $this->subMenu['components']['active'] = true;

        return View::make('dashboard.components.index')
            ->withPageTitle(trans_choice('dashboard.components.components', 2).' - '.trans('dashboard.dashboard'))
            ->withComponents($components)
            ->withSubMenu($this->subMenu);
    }
public function showComponents ( ) { $ components = Component :: with ( 'group' ) -> orderBy ( 'order' ) -> orderBy ( 'created_at' ) -> get ( ) ; $ this -> subMenu [ 'components' ] [ 'active' ] = true ; return View :: make ( 'dashboard.components.index' ) -> withPageTitle ( trans_choice ( 'dashboard.components.components' , 2 ) . ' - ' . trans ( 'dashboard.dashboard' ) ) -> withComponents ( $ components ) -> withSubMenu ( $ this -> subMenu ) ; }
Shows the components view.

@return \Illuminate\View\View
Shows the components view .