original_string: public function showEditComponent(Component $component)
      {
          $groups = ComponentGroup::all();
  
          $pageTitle = sprintf('"%s" - %s - %s', $component->name, trans('dashboard.components.edit.title'), trans('dashboard.dashboard'));
  
          return View::make('dashboard.components.edit')
              ->withPageTitle($pageTitle)
              ->withComponent($component)
              ->withGroups($groups);
      }
code: public function showEditComponent(Component $component)
      {
          $groups = ComponentGroup::all();
  
          $pageTitle = sprintf('"%s" - %s - %s', $component->name, trans('dashboard.components.edit.title'), trans('dashboard.dashboard'));
  
          return View::make('dashboard.components.edit')
              ->withPageTitle($pageTitle)
              ->withComponent($component)
              ->withGroups($groups);
      }
code_tokens: public function showEditComponent ( Component $ component ) { $ groups = ComponentGroup :: all ( ) ; $ pageTitle = sprintf ( '"%s" - %s - %s' , $ component -> name , trans ( 'dashboard.components.edit.title' ) , trans ( 'dashboard.dashboard' ) ) ; return View :: make ( 'dashboard.components.edit' ) -> withPageTitle ( $ pageTitle ) -> withComponent ( $ component ) -> withGroups ( $ groups ) ; }
docstring: Shows the edit component view.
  
  @param \CachetHQ\Cachet\Models\Component $component
  
  @return \Illuminate\View\View
docstring_tokens: Shows the edit component view .