| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | public function render() |
||
| 63 | { |
||
| 64 | $columns = $this->getGrid()->columns()->flatMap(function (Column $column) { |
||
| 65 | |||
| 66 | $name = $column->getName(); |
||
| 67 | |||
| 68 | $total = ($display = Arr::get($this->columns, $name)) ? $this->total($name, $display) : ''; |
||
| 69 | |||
| 70 | return [$name => $total]; |
||
| 71 | |||
| 72 | })->toArray(); |
||
| 73 | |||
| 74 | return view('admin::grid.total-row', compact('columns')); |
||
|
|
|||
| 75 | } |
||
| 76 | } |