{% if setting_value('visiosoft.module.location::hide_location_filter') == false %}
    {% if setting_value('visiosoft.module.location::list_page_location') %}
        <div class="card mb-3">
            <div class="card-header breadcrumb mb-0" id="locationHeading">
                <h5 class="mb-0">
                    <button class="btn btn-link text-dark d-flex align-items-center" data-toggle="collapse"
                            data-target="#location" aria-expanded="true" aria-controls="location">
                        <img src="{{ img('visiosoft.module.location::images/location-icon.svg').url }}" class="mr-2"
                             alt="location icon">
                        <span>{{ trans("visiosoft.module.location::addon.title") }}</span>
                    </button>
                </h5>
            </div>
            <div id="location" class="collapse show overflow-auto" aria-labelledby="locationHeading">
                {% include "visiosoft.module.location::ads-list/partials/location-fields" %}
            </div>
        </div>
        <script>
            var select_trans = "{{ trans('visiosoft.module.location::field.pick_option.name') }}";
        </script>
        {{ asset_add("scripts.js", "visiosoft.module.location::js/filterLocation.js") }}
        {{ asset_add("styles.css", "visiosoft.module.location::css/filterLocation.css") }}
    {% endif %}
{% endif %}