original_string: public function show(TeamRequest $request, Team $team)
      {
  
          if ($team->exists) {
              $view = 'team::team.show';
          } else {
              $view = 'team::team.new';
          }
  
          return $this->response->title(trans('app.view') . ' ' . trans('team::team.name'))
              ->data(compact('team'))
              ->view($view, true)
              ->output();
      }
code: public function show(TeamRequest $request, Team $team)
      {
  
          if ($team->exists) {
              $view = 'team::team.show';
          } else {
              $view = 'team::team.new';
          }
  
          return $this->response->title(trans('app.view') . ' ' . trans('team::team.name'))
              ->data(compact('team'))
              ->view($view, true)
              ->output();
      }
code_tokens: public function show ( TeamRequest $ request , Team $ team ) { if ( $ team -> exists ) { $ view = 'team::team.show' ; } else { $ view = 'team::team.new' ; } return $ this -> response -> title ( trans ( 'app.view' ) . ' ' . trans ( 'team::team.name' ) ) -> data ( compact ( 'team' ) ) -> view ( $ view , true ) -> output ( ) ; }
docstring: Display team.
  
  @param Request $request
  @param Model   $team
  
  @return Response
docstring_tokens: Display team .