{if $view_all_currencies|@count>1}
    {if $view_all_currencies|@count eq 2}
        <div class="currencyList xs-list lang-option">
              {foreach from=$view_all_currencies item="resCurrency" key="key"}

                  <span class="btn btn-sm lang-optionlist
lang-optionlist-btn" id="common_currency_{$resCurrency.currencyID}_{$resCurrency.currencyCode}"> 

                  {$resCurrency.currencyCode}
                </span>
              {/foreach}
        </div>
    {else}
        <div class="dropdown lang-option mt-lg-1 col">
             <a class="languagebox_head" data-toggle="dropdown" id="{$currentCurrencyID}" title="{$view_common_currencyName}">
                {$view_common_currencyName}
          </a>
          <ul class="dropdown-menu p-lg-2 currencyList">
               {foreach from=$view_all_currencies item="resCurrency" key="key"}
      {if $currentCurrencyID neq $resCurrency.currencyID}
       <li class="pb-1"> 
          <a href="javascript:void(0);" class="lang-optionlist" id="common_currency_{$resCurrency.currencyID}_{$resCurrency.currencyCode}">  {$resCurrency.currencyCode}</a></li>
              {/if}
      {/foreach}
                        </ul>
          </div>
    {/if}
{/if}