@if ($showFilters && count($this->getFiltersWithoutSearch()))
@lang('Applied Filters'): @foreach($filters as $key => $value) @if ($key !== 'search' && filled($value)) {{ $filterNames[$key] ?? collect($this->columns())->pluck('text', 'column')->get($key, isset($customFilters[$key]) && property_exists($customFilters[$key], 'name') ? $customFilters[$key]->name : ucwords(strtr($key, ['_' => ' ', '-' => ' ']))) }}: @if(isset($customFilters[$key]) && method_exists($customFilters[$key], 'options')) @if(is_array($value)) @foreach($value as $selectedValue) {{ $customFilters[$key]->options()[$selectedValue] ?? $selectedValue }}@if(!$loop->last) , @endif @endforeach @else {{ $customFilters[$key]->options()[$value] ?? $value }} @endif @elseif(is_array($value)) {{ implode(', ', $value) }} @else {{ ucwords(strtr($value, ['_' => ' ', '-' => ' '])) }} @endif @endif @endforeach
@endif