original_string: public function renderWhen($condition, $view, $data = [], $mergeData = [])
      {
          if (! $condition) {
              return '';
          }
  
          return $this->make($view, $this->parseData($data), $mergeData)->render();
      }
code: public function renderWhen($condition, $view, $data = [], $mergeData = [])
      {
          if (! $condition) {
              return '';
          }
  
          return $this->make($view, $this->parseData($data), $mergeData)->render();
      }
code_tokens: public function renderWhen ( $ condition , $ view , $ data = [ ] , $ mergeData = [ ] ) { if ( ! $ condition ) { return '' ; } return $ this -> make ( $ view , $ this -> parseData ( $ data ) , $ mergeData ) -> render ( ) ; }
docstring: Get the rendered content of the view based on a given condition.
  
  @param  bool  $condition
  @param  string  $view
  @param  \Illuminate\Contracts\Support\Arrayable|array   $data
  @param  array   $mergeData
  @return string
docstring_tokens: Get the rendered content of the view based on a given condition .