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


{if $templatefile == "masspay"}
	<div class="panel panel-sidebar panel-invoice-info">
		<div class="panel-body">
			<div class="total">
				<span class="total-text">
					{$LANG.invoicestotaldue}
				</span> 
				<span class="total-price">
					{$total}
					<i class="fal fa-exclamation-circle"></i>
				</span>
			</div>
			<form method="post" action="clientarea.php?action=masspay">
				<input type="hidden" name="geninvoice" value="true" />
					{foreach from=$invoiceitems key=invid item=invoiceitem}
						<input type="hidden" name="invoiceids[]" value="{$invid}" />
					{/foreach}
					<fieldset>
						<div class="form-group">
							<label for="paymentmethod" class="control-label">{$LANG.orderpaymentmethod}:</label>
							<br>
							<select name="paymentmethod" id="paymentmethod" class="form-control">
								{foreach from=$gateways item=gateway}
									<option value="{$gateway.sysname}">{$gateway.name}</option>
								{/foreach}
							</select>
						</div>
						<button type="submit" value="{$LANG.masspaymakepayment}" class="btn btn-primary btn-block">
							<span>{$LANG.masspaymakepayment}</span>
						</button> 
                    </fieldset>
			</form>    
		</div>
	</div>
{/if}