{{-- The Search / Filter panel of an admin list (App\Support\ListFilter). $filters the ListFilter $action the list's URL $keep query parameters the panel does not own but must not drop, e.g. the status tab: ['status' => request('status')] --}} @php $keep = array_filter($keep ?? [], fn ($v) => $v !== null && $v !== ''); @endphp
isFiltered()) open @endif> {{ __('admin.filters.title') }} @if($filters->isFiltered()){{ count($filters->chips()) }}@endif
@foreach($keep as $k => $v)@endforeach
@foreach($filters->fields as $name => $spec) @php $type = $spec['type'] ?? 'text'; $id = 'flt-'.$name; @endphp
@if($type === 'select') @elseif($type === 'date_range' || $type === 'number_range') @php [$a, $b] = $type === 'date_range' ? ['_from', '_to'] : ['_min', '_max']; $input = $type === 'date_range' ? 'date' : 'number'; @endphp
–
@else @endif
@endforeach
{{ __('admin.filters.clear') }}
@if($filters->isFiltered())
@foreach($filters->chips() as $chip) {{ $chip['label'] }}: {{ $chip['value'] }} @endforeach
@endif