@props([
'makeFilters' => null,
'checkbox' => null,
'columns' => null,
'actions' => null,
'theme' => null,
'enabledFilters' => null,
'inputTextOptions' => [],
'tableName' => null,
'filters' => [],
])
@if(config('livewire-powergrid.filter') === 'inline')
@if(count($makeFilters))
@if($checkbox)
|
@endif
@foreach($columns as $column)
@foreach(data_get($makeFilters, 'date_picker', []) as $index => $date)
@if(data_get($date, 'field') === $column->field)
@endif
@endforeach
@foreach(data_get($makeFilters, 'select', []) as $index => $select)
@if(data_get($select, 'field') === $column->field)
@endif
@endforeach
@foreach(data_get($makeFilters, 'multi_select', []) as $index => $multiSelect)
@if(data_get($multiSelect, 'field') === $column->field)
@includeIf($theme->filterMultiSelect->view, [
'inline' => true,
'column' => $column,
'selected' => $filters['multi_select'] ?? [],
'tableName' => $tableName,
])
@endif
@endforeach
@foreach(data_get($makeFilters, 'number', []) as $index => $number)
@if(data_get($number, 'field') === $column->field)
@endif
@endforeach
@foreach(data_get($makeFilters, 'input_text', []) as $index => $inputText)
@if(data_get($inputText, 'field') === $column->field)
@endif
@endforeach
@foreach(data_get($makeFilters, 'boolean_filter', []) as $index => $booleanFilter)
@if(data_get($booleanFilter, 'field') === $column->field)
@endif
@endforeach
|
@endforeach
@if(isset($actions) && count($actions))
|
@endif
@endif
@endif