{*
 **********************************************************
 * Developed by: Team Theme Metro
 * Website: http://www.thememetro.com
 **********************************************************
*}


<div id="sidebar">
	<div class="sidebar__inner blocks cartsummary">
		<div class="blocks_summaryheading d-none d-lg-block pb-1">
			<div class="d-flex align-items-center justify-content-between">
				<span class="h2">
					<i class="fal fa-shopping-cart"></i>&nbsp;{$LANG.ordersummary}
				</span>
				{if $ordertype == 'global'}
					<span class="d-none d-lg-block">
						<a href="{$WEB_ROOT}/order.php{if $domainorder == 'register'}?domainaction=register{elseif $domainorder == 'transfer'}?domainaction=transfer{/if}" onclick="emptyCart()" class="btn btn-icon btn-emptycart" data-toggle="tooltip" data-placement="top" title="{$LANG.emptycart}"><i class="fas fa-trash"></i></a>
					</span>
				{elseif $ordertype == 'domainrenewals'}
					<span class="d-none d-lg-block">
						<a href="{$WEB_ROOT}/order.php?ordertype=domain_renewal" onclick="emptyCart()" class="btn btn-icon btn-emptycart" data-toggle="tooltip" data-placement="top" title="{$LANG.emptycart}"><i class="fas fa-trash"></i></a>
					</span>
				{elseif $ordertype == 'servicerenewals'}
					<span class="d-none d-lg-block">
						<a href="{$WEB_ROOT}/order.php?ordertype=service_renewal" onclick="emptyCart()" class="btn btn-icon btn-emptycart" data-toggle="tooltip" data-placement="top" title="{$LANG.emptycart}"><i class="fas fa-trash"></i></a>
					</span>
				{elseif $ordertype == 'addons'}
					<span class="d-none d-lg-block">
						<a href="{$WEB_ROOT}/order.php?ordertype=addons" onclick="emptyCart()" class="btn btn-icon btn-emptycart" data-toggle="tooltip" data-placement="top" title="{$LANG.emptycart}"><i class="fas fa-trash"></i></a>
					</span>
				{/if}
			</div>
		</div>
		<div id="ordersummary">
			<div class="cartsummary_cont">
				<div class="summary_body">
					<div class="cart-contents collapse" id="CartContents">
						<div class="emptycart">
							{$LANG.cartempty}
						</div>
					</div>
					<div class="cart-loader">
						<i class="fad fa-circle-notch fa-spin fa-2x"></i>
					</div>
				</div>
			</div>
		</div>
		
		{if !$themesettings.orderform.nopromobox}
		<div class="coupon_cont mb-0 mt-0 mt-lg-2 p-3 p-lg-0">
			<div class="form-group promo_form" style="display: none;">
				<div class="input-group input-group-sm">
					<input type="text" value="" name="promocode" id="promocode" class="form-control" placeholder="{lang key="cartenterpromo"}" />							 
					<span class="input-group-btn">
						<a href="javascript:void(0)" class="btn btn-primary btn-sm promo_btn applypromo" onclick="applyPromo();">{$LANG.apply}</a>
						<a href="javascript:void(0)" class="btn btn-icon btn-sm promo_btn removepromo" onclick="removePromo();" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.removePromotionCode}" style="display: none;"><i class="fas fa-times text-danger"></i></a>
					</span>
				</div>
			</div>
			<div class="promo_text">
				<span class="text-muted">{if $themesettings.clientarea.doyouhaveapromocode}{$themesettings.clientarea.doyouhaveapromocode}{else}Do you have a promo code?{/if}</span>
			</div>
			<div class="alert p-1 mt-1 mb-0 promo-error small" style="display: none;"></div>
		</div>
		{/if}
		
	</div>
</div>