original_string: public function render()
      {
          $columns = $this->getGrid()->columns()->flatMap(function (Column $column) {
              $name = $column->getName();
  
              $total = ($display = Arr::get($this->columns, $name)) ? $this->total($name, $display) : '';
  
              return [$name => $total];
          })->toArray();
  
          return view('admin::grid.total-row', compact('columns'));
      }
code: public function render()
      {
          $columns = $this->getGrid()->columns()->flatMap(function (Column $column) {
              $name = $column->getName();
  
              $total = ($display = Arr::get($this->columns, $name)) ? $this->total($name, $display) : '';
  
              return [$name => $total];
          })->toArray();
  
          return view('admin::grid.total-row', compact('columns'));
      }
code_tokens: public function render ( ) { $ columns = $ this -> getGrid ( ) -> columns ( ) -> flatMap ( function ( Column $ column ) { $ name = $ column -> getName ( ) ; $ total = ( $ display = Arr :: get ( $ this -> columns , $ name ) ) ? $ this -> total ( $ name , $ display ) : '' ; return [ $ name => $ total ] ; } ) -> toArray ( ) ; return view ( 'admin::grid.total-row' , compact ( 'columns' ) ) ; }
docstring: Render total-row.
  
  @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
docstring_tokens: Render total - row .