{{-- ? To set: * required: model as string * models as string * thead as array [ tr => [ th => [ name as string name of column sortable_id as string default false width as integer between 1 and 10 scope as string default col ] ] ] option: class_vh as integer between 10 and 100 ? Filenames: Table Data File = _table_data_ $table_name ? To implement in Blade: * @includeIf('layouts.components.table_infinity_scroll', [ 'model' => $model, 'models' => $models, 'thead' => [ [ 0 => [ 'name' => '', 'sortable_id' => '', 'width' => '' ] ] ] ]) --}}
| # | @foreach ($tr as $th)@if (!empty($th['sortable_id'])) @sortablelink($th['sortable_id'], $th['name']) @else {{ $th['name'] }} @endif | @endforeach
|---|