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

declare(strict_types=1);

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()),
        ]);
    }
}