{if $stores|@count > 0}
    {assign var="current_store" value=null}

    {foreach from=$stores item=store}
        {if $store->url == $urls.base_url}
            {assign var="current_store" value=$store}
        {/if}
    {/foreach}

    <div class="store-nav">
        {if $current_store}
                <a class="expand-more"><img src="{$current_store->image}" alt="{$current_store->name}"> {$current_store->name} <svg xmlns="http://www.w3.org/2000/svg" class="add" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e3e3e3"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"></path></svg></a>
        {/if}
        <ul class="dropdown-menu">
        {foreach from=$stores item=store }
            <li><a href="{$store->url}"><img src="{$store->image}" alt="{$store->name}"> {$store->name}</a></li>
        {/foreach}
        </ul>
    </div>
    <script src="{$urls.base_url}modules/lcvprestatheme/views/js/store.js"></script>
{/if}