File "addfunds.twig"
Full Path: /home/cananyalcin/public_html/core/temp/client/Simplify-Blue/addfunds.twig
File size: 10.76 KB
MIME-type: text/plain
Charset: utf-8
{% include 'header.twig' %}
<div class="wrapper-content">
<div class="wrapper-content__header">
</div>
<div class="wrapper-content__body">
<!-- Main variables *content* -->
<div id="block_323">
<div class="faq ">
<div class="bg"></div>
<div class="divider-top"></div>
<div class="divider-bottom"></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="row">
</div>
</div>
</div>
</div>
</div>
</div>
{% if contentText %}
<div id="block_326">
<div class="text-block-with-card ">
<div class="bg"></div>
<div class="divider-top"></div>
<div class="divider-bottom"></div>
<div class="container">
<div class="row">
<div class="col-12">
<div class="component_card_1">
<div class="card">
<div class="text-block__description">
{{ contentText }} </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> {% endif %}
<div id="block_61">
<div class="add-funds__form">
<div class="bg"></div>
<div class="divider-top"></div>
<div class="divider-bottom"></div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="component_card">
<div class="card">
<form method="post" action="addfunds">
{% if error %}
<div class="alert alert-dismissible alert-danger">
<button type="button" class="close" data-dismiss="alert">×</button>
{{ errorText }}
</div>
{% endif %}
{% if success %}
<div class="alert alert-dismissible alert-success">
<button type="button" class="close" data-dismiss="alert">×</button>
{{ successText }}
</div>
{% endif %}
<div class="">
<div class="form-group">
<label for="method" class="control-label">Method</label>
<select class="form-control" id="payment_method" name="payment_type" onchange="handleOrderType(this)">
{% for payment in paymentsList %}
<option value="{{ payment['id'] }}" {% if data['payment_type'] == payment['id'] %} selected {% endif %} >{{ payment['method_name'] }}</option>
{% endfor %}
</select>
</div>
<div class="fga mb-4 custom-payment-content" style="display:none">
<label class="fla" for="amount">Instructions:</label>
<br>
<p>
{% for payment in paymentsList %}
{% if payment['id'] == 34 %}
{{ payment['content'] }}
{% endif %}
{% endfor %}
</p>
</div>
<div class="fga mb-4 custom-payment-content-bkash" style="display:none">
<label class="fla" for="amount">Instructions:</label>
<br>
<p>
{% for payment in paymentsList %}
{% if payment['id'] == 21 %}
{{ payment['content'] }}
{% endif %}
{% endfor %}
</p>
</div>
<!-- Start -->
<div id="qr">
<br> 1) Scan QR Code below and enter Amount. (Min 5 INR) </br>
<br> 2) Enter the 18 Digits Order ID below the QR Code. </br>
<br> Example of order id is "2018072606124600" and amount is "50" then click on pay. Without Space </br>
<br> Funds will be added automatically Instant </br>
<font color="red"><h3><b><i>Paytm and Phone Pe only</i></h3></b></font
<form method="post" action="addfunds">
<center><img width="300" height="600" src="{{ PaytmQRimage }}" ></img> </center>
<div class="form-group">
<label for="method" class="control-label">Order ID</label>
<p>Enter Transaction/Order ID without spaces. Example - 202010122210100058</p>
<input class="form-control" name="paytmqr_orderid" value="{{ data['paytmqr_orderid'] }}">
</div>
</div>
<!--end--->
<div class="form-group">
<label for="amount" class="control-label">Amount</label>
<input class="form-control" name="payment_amount" value="{{ data['payment_amount'] }}">
</div>
</div>
<div class="component_button_submit">
<div class="">
<button type="submit" class="btn btn-block btn-big-primary">Pay</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="block_41">
<div class="add-funds__list">
<div class="bg"></div>
<div class="divider-top"></div>
<div class="divider-bottom"></div>
<div class="container">
<div class="row mb-3">
<div class="col-lg-12">
<div class="table-bg component_table ">
<div class="table-wr table-responsive">
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Date</th>
<th>Method</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
{% for payment in lastPaymentsList %}
<tr>
<td>{{payment['id']}}</td>
<td>{{payment['created_at']}} </td>
<td class="width-40">{{payment['payment_method']}}</td>
<td >{{ payment['amount']|number_format(2) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-5">
<nav class="component_pagination">
<div class="">
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="wrapper-content__footer">
</div>
</div>
</div>
<script>
var total_ords = $('#total_ords').text();
var formatted = total_ords.replace(/\d+/g, n => Number(n).toLocaleString("en"));
$('#total_ords').text(formatted);
</script>
{% if kashier_code %}
<style>
#el-kashier-button{
display: none;
}
</style>
<script>
var interval = setInterval(function () {
var link =$('#el-kashier-button');
if(link.length){
link.click();
clearInterval(interval);
}
}, 1000);
</script>
{{ kashier_code }}
{{ unset_kashier_code }}
{% endif %}
{% include 'footer.twig' %}
<script>
$("#payment_method").on('change', function() {
if($(this).val() == 21){
$(".normal-payment").hide();
$(".custom-payment-content").hide();
$(".custom-payment-content-bkash").show();
}
else if($(this).val() == 34){
$(".normal-payment").hide();
$(".custom-payment-content-bkash").hide();
$(".custom-payment-content").show();
}
else{
$(".custom-payment-content").hide();
$(".custom-payment-content-bkash").hide();
$(".normal-payment").show();
}
});
</script>
<!-- start -->
<script>document.getElementById("qr").style.display = "none";
function handleOrderType(selectObject) {
var element = document.getElementById("qr");
var element2 = document.getElementById("ppqr");
if (selectObject.value == "14") {
element.style.display = "block";
element2.style.display = "none";
} else if (selectObject.value == "114") {
element.style.display = "none";
element2.style.display = "block";
} else {
element.style.display = "none";
element2.style.display = "none";
}
}
</script>
<!-- end -->