<?php if ($block->isProductAppointmentEnabled()) { ?>

<div class="storelocator-wrapper-popup">
    <a class="show-store-locator"><?php echo __('Try it in a shop')?></a>
    <div class="filoblu-storelocator-container"
         data-mage-init='{"storelocator_modal":{
                "trigger":".show-store-locator"}}
    '>

        <?php echo $block->getChildHtml('storelocator.filter'); ?>

        <div id="map"></div>

        <div id="gmapStoresList">
            <ul></ul>
        </div>

        <?php echo $block->getChildHtml('storelocator.direction'); ?>

        <?php echo $block->getChildHtml('storelocator.config'); ?>
    </div>
</div>

<script>
    window.currentProduct = '<?php echo $block->getCurrentProductId(); ?>'
</script>

<?php } ?>
