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