<? global $vis_language; ?>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">&times;</button>
            <h4 class="modal-title"><? echo$vis_language['TXTADDINVOICEPAYMENT']; ?></h4>
        </div>
        <div class="modal-body">
            <div class="row">
                <div class="col-sm-12">
                    <form role="form" class="form-horizontal" name="vis_add_payment_form" id="vis_add_payment_form">
						<div class="form-group">	
							<label class="col-sm-3 control-label txt_nowrap"><?= $vis_language['TXTGATEWAY']; ?></label>
								<div class="col-sm-9">
								<select class="form-control input-sm selectpicker" name="payment_method" id="payment_method">
									<option value="0"><?= $vis_language['TXTOFFLINEPAYMENT']; ?></option>
									<?php if($payment_details!= -1) 
										{ 
											foreach($gatewayDetails as $gateway)
											{
											  if($gateway['gateway_type']== 1) { echo '<option value="1">'. $vis_language['TXTPAYPALEMAIL'].'</option>'; }
											  if($gateway['gateway_type']== 2) { echo '<option value="2">'. $vis_language['TXTAUTHORIZE'].'</option>';}
											  if($gateway['gateway_type']== 3) { echo '<option value="3">'. $vis_language['TXTSTRIPE'].'</option>';}
											}
										} ?>
								</select>
								</div>
						</div>
						<div class="form-group">
                            <label class="col-sm-3 control-label txt_nowrap"><?= $vis_language['TXTTRANSACTIONID']; ?></label>
                            <div class="col-sm-9">
                                <input class="form-control input-sm" type="text" name="vis_transaction_id" id="vis_transaction_id">
                                <input type="hidden" name="vis_invoice_id" value="<? echo $invoiceId; ?>" /> 
                                <input type="hidden" name="vis_client_id" value="<? echo $clientId; ?>" /> 
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label txt_nowrap"><?= $vis_language['TXTAMOUNT']; ?></label>
                            <div class="col-sm-9">
                                <input class="form-control input-sm" type="text" name="vis_amt" id="vis_amt">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="modal-footer">
			<a class="btn btn-default" data-dismiss="modal"><? echo $vis_language['TXTCANCEL']; ?></a>
            <a class="btn btn-primary" onclick="$(this).visExecution('submit_form',{'vis_module':'billing', 'vis_operation':'add_payment', 'vis_form':'vis_add_payment_form'});"><? echo $vis_language['TXTOK']; ?></a>
        </div>
    </div>
</div>
<script type="text/javascript">
	$(".selectpicker").selectpicker();
</script>
