original_string: public function showDashboard()
      {
          $components = Component::orderBy('order')->get();
          $incidents = $this->getIncidents();
          $subscribers = $this->getSubscribers();
  
          $componentGroups = $this->getVisibleGroupedComponents();
          $ungroupedComponents = Component::ungrouped()->get();
  
          $welcomeUser = !Auth::user()->welcomed;
          if ($welcomeUser) {
              execute(new WelcomeUserCommand(Auth::user()));
          }
  
          $entries = null;
          if ($feed = $this->feed->latest()) {
              if (is_object($feed)) {
                  $entries = array_slice($feed->channel->item, 0, 5);
              }
          }
  
          return View::make('dashboard.index')
              ->withPageTitle(trans('dashboard.dashboard'))
              ->withComponents($components)
              ->withIncidents($incidents)
              ->withSubscribers($subscribers)
              ->withEntries($entries)
              ->withComponentGroups($componentGroups)
              ->withUngroupedComponents($ungroupedComponents)
              ->withWelcomeUser($welcomeUser);
      }
code: public function showDashboard()
      {
          $components = Component::orderBy('order')->get();
          $incidents = $this->getIncidents();
          $subscribers = $this->getSubscribers();
  
          $componentGroups = $this->getVisibleGroupedComponents();
          $ungroupedComponents = Component::ungrouped()->get();
  
          $welcomeUser = !Auth::user()->welcomed;
          if ($welcomeUser) {
              execute(new WelcomeUserCommand(Auth::user()));
          }
  
          $entries = null;
          if ($feed = $this->feed->latest()) {
              if (is_object($feed)) {
                  $entries = array_slice($feed->channel->item, 0, 5);
              }
          }
  
          return View::make('dashboard.index')
              ->withPageTitle(trans('dashboard.dashboard'))
              ->withComponents($components)
              ->withIncidents($incidents)
              ->withSubscribers($subscribers)
              ->withEntries($entries)
              ->withComponentGroups($componentGroups)
              ->withUngroupedComponents($ungroupedComponents)
              ->withWelcomeUser($welcomeUser);
      }
code_tokens: public function showDashboard ( ) { $ components = Component :: orderBy ( 'order' ) -> get ( ) ; $ incidents = $ this -> getIncidents ( ) ; $ subscribers = $ this -> getSubscribers ( ) ; $ componentGroups = $ this -> getVisibleGroupedComponents ( ) ; $ ungroupedComponents = Component :: ungrouped ( ) -> get ( ) ; $ welcomeUser = ! Auth :: user ( ) -> welcomed ; if ( $ welcomeUser ) { execute ( new WelcomeUserCommand ( Auth :: user ( ) ) ) ; } $ entries = null ; if ( $ feed = $ this -> feed -> latest ( ) ) { if ( is_object ( $ feed ) ) { $ entries = array_slice ( $ feed -> channel -> item , 0 , 5 ) ; } } return View :: make ( 'dashboard.index' ) -> withPageTitle ( trans ( 'dashboard.dashboard' ) ) -> withComponents ( $ components ) -> withIncidents ( $ incidents ) -> withSubscribers ( $ subscribers ) -> withEntries ( $ entries ) -> withComponentGroups ( $ componentGroups ) -> withUngroupedComponents ( $ ungroupedComponents ) -> withWelcomeUser ( $ welcomeUser ) ; }
docstring: Shows the dashboard view.
  
  @return \Illuminate\View\View
docstring_tokens: Shows the dashboard view .