original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Shows the components view.
  
  @return \Illuminate\View\View
docstring_tokens: Shows the components view .