<div class="rightPanelInner "> 
    {if $freeProductGifts|default:'' >0}
    <div class="select-gift free-gift-show border p-3 position-relative text-center  d-none d-lg-block mb-4">

        <figure>
            <img src="{$view_images}/free-gift.png" alt="free gift">
        </figure>
        
        <div class="gift-description">
            <h2 class="h4 font-bold">{$language.lblCongratulations}</h2>
            <p>{$language.lblBasedOnYourPurchase} <span class="freegcnt">{$freeProductGifts}</span> {$language.lblBasedOnYourPurchase2}</p>
            {*<button class="btn btn-select" data-toggle="modal" data-target="#myModal">{$language.lblSelectYorGifts}</button>*}
            <button class="btn btn-primary free-gift-product-cart" data-toggle="modal" data-target="#myModal">{$language.lblSelectYorGifts}</button>
        </div>
        
    </div>
        {/if} 
    
	 <!-- Begin : Gift Card -->
    
    
	<div class="rightBx d-none border p-3 mt-4 bg-light">
       
        {if $settingsEnableGiftCoupon eq "Yes"}
         {if $commonUserID|default:0>0}
        <div class="rightBx-content">
            <h4 class="pb h4 text-danger">{$language.lblHaveGiftCard}</h4>
            {form->start name="formRedeemCoupon" method="post" onsubmit="return false;"}   
                 <div class="input-group">
                        {form->textbox name="couponCode" class="form-control" autocomplete="off" validate="required" error=$language.errCouponCode value=""} 
                    <span class="input-group-addon rmv-padding">
                            {form->hidden name="pageCart" value="1"}
                            {form->hidden name="cartUser" value=$userID}
                        {form->submit name="submitCoupon" value="{$language.lblSubmitButton}" class="btn btn-primary"}
                    </span>
                </div>
            {form->close}
        </div>
        {else}
        <div class="rightBx-content"> 
             <h4 >{$language.lblHaveGiftCard}</h4>
            {form->start name="formRedeemCoupon" action="" method="post"}
            {form->hidden name="pageCart" value="1"}
                            {form->hidden name="cartUser" value=$userID}
        {html->anchor caption="{$language.lblLogin}"  id="submitCoupon" class="btn btn-warning btn-sm popuplogin"}
            {form->close}
        {/if}  

        {if $commonUserID|default:0>0}
        <div class="rightBx-content"> 
        <h3 class="h5 pt-3">{$language.lblWalletBalance}</h3>
					<div class="font-bold text-primary h5">{$availableBalance|price:'Full':$cityDefCurrencyID:$currentCurrencyID}</div>
        {/if}
        </div>
        {/if}
    </div>
	<!-- End : Gift Card -->  

	</div>
    {include file='catalog/default/freeGiftProduct.tpl'}
    