@php $car_map_search_fields = setting_item_array('car_map_search_fields'); $usedAttrs = []; foreach ($car_map_search_fields as $field){ if($field['field'] == 'attr' and !empty($field['attr'])) { $usedAttrs[] = $field['attr']; } } $selected = (array) request()->query('terms'); @endphp