File "addfunds.twig"

Full Path: /home/cananyalcin/public_html/core/temp/client/Enternity-Black/addfunds.twig
File size: 11.21 KB
MIME-type: text/html
Charset: utf-8

{% include 'header.twig' %}



 <div class="wrapper-content">
                <div class="wrapper-content__header"></div>
                <div class="wrapper-content__body">
                    <style>
    #pmDetails  img {
        max-width: 100%;
        width: auto;
        height: 100%;
    }
</style>
<div id="block_33">
    <div class="add-funds__form">
        <div class="bg"></div>
        <div class="divider-top"></div>
        <div class="divider-bottom"></div>
        <div class="container-fluid">
            <div class="row add-funds__form-alignment px-lg-4">
                <div class="col-lg-6">
                    <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="box">
                                    <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>
                                
                                
                                
                                
                                
                                 <!-- content -->
                  
                  <div class="payment_contents mt-3 mb-3">
                                                     {% for payment in paymentsList %}
                                                         <div id="{{payment['id']}}" class="payment_content_class d-none">
                                                             <div class="card">
                                                                 {{payment['content']}}
                                                             </div> 
                                                         </div>
                                                     {% endfor %}
                                                 </div>
                                
                                
                                
                                 
                                        
                                         
                                        
                                        
                                        
                                        
                                        
                                        
                                        						 <!-- Start -->
                
    <div id="qr">
        
        
        
              <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 normal-payment" >
                                        <label for="amount" class="control-label">💰 Amount</label>
                                        <div class="row">
                                            
                                            <div class="col-9" id="amountDiv">
                                                <div class="input-group mb-3">
                                                    <div class="input-group-prepend">
                                                        <span class="input-group-text" id="amount_symbol" style="background-color: var(--secondary-color);color: white;">@</span>
                                                    </div>
                                                    <input type="number" class="form-control" name="payment_amount"  placeholder="0.00" step="0.01" min="0.01" value="{{ data['payment_amount'] }}" required>
                                                </div>
                                            </div>
                                            
                                            
                                            
                                            <div class="col-3 align-center">
                                                <button type="submit" class="btn btn-primary submit-btn normal-payment" style="width: 100%;border-radius: 5px;padding: 7px;">🤑 Pay</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                                                
                    </div>
                </div>
                
                
                
                <div class="col-lg-6">
                    <div class="component_card">
                        <div class="card mb-3" id="pmDetails" style="display: none">
                            <div class="tab-content">
                                                                                                           
                                                                                                </div>
                        </div>{% if contentText %}
                                                    <div class="card">
                                {{ contentText }}
                              
                            </div>{% endif %}
                                            </div>
                </div>
            </div>
        </div>
    </div>
</div>
    
    
    
    
    
    
    
     <br>
     <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>🆔</th>
                                                <th>🗓️ Date</th>
                                                <th>🏦 Payment Method </th>
                                                <th>💰 Amount</th>
                                                
                                </tr>
                                </thead>
                                <tbody>
                                                                    <tr>
                                        <td colspan="4">&nbsp;</td>
                                    </tr>

            {% 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 %}   
</td>
          </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>

   
  <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 -->






<script>
            var payment_id = $("#payment_method").val();
            $('#' + payment_id).removeClass("d-none");
            $("#payment_method").on("change", function () {
                var change_payment_id = $(this).val();
                $('.payment_content_class').addClass('d-none');
                $('#' + change_payment_id).removeClass("d-none");
            });
        </script>