summaryrefslogtreecommitdiff
path: root/src/Toolbar/ColumnSelect.php
blob: 9380650326dca979f83b877fce3e9d8d86099396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Lightscale\LaralightTables\Toolbar;

use Illuminate\View\View;

class ColumnSelect extends Item
{
    public function __construct() {}

    public function render(): View
    {
        return view('laralight-tables::toolbar.column-select', [
            'allColumns' => $this->getTable()
                ->getColumns()
                ->filter(fn($c) => $c->getShowInSelect())
        ]);
    }
}