$params_clone = $params;
                            if ($current_selections['properties'][$property_id][0] == $value['id'] || !$onlyUncheckSlug) {
                                if ($current_selections['properties'][$property_id][0] == $value['id']) {
                                    unset($params_clone['properties'][$property_id]);
                                }
                                $go_back = Url::toRoute($params_clone);
                                $should_link = false;
                            }
                        }
                    }
                    if ($should_link === true) {
                        $url = Url::toRoute($params);
                        $label = Html::a($value['name'], $url, ['class' => 'filter-link']);
                    }
                }
                $checkbox = Html::tag('div', Html::label(Html::checkBox("properties[{$property_id}][]", $active, ['class' => 'filter-checkbox', 'id' => "p_{$property_id}_{$value['id']}", 'value' => $value['id'], 'data-goback' => $go_back]) . " " . $label, "p_{$property_id}_{$value['id']}", ['class' => $disabled ? 'muted' : '']), ['class' => '']);
                if ($disabled) {
                    array_push($checkboxes, $checkbox);
                } else {
                    array_unshift($checkboxes, $checkbox);
                }
            }
            echo implode("\n", $checkboxes);
            ?>
                            </li>
                            <?php 
        }
    }
    ?>

                <?php