{% include 'header.twig' %}
 <main><div class="main_container" id="main_container">
  <div class="content_area">
    <div class="content">
      <div class="row">
        <div class="col-md-12">
          <div class="card card_v2 mb-5">
            <div class="card-body"><p style="text-align: center; "><b>Join to get regular updates❤️</b><br>


</p><h3 style="text-align: center; "><a href="https://chat.whatsapp.com/" class="btn btn-primary active " courier=" " new",="" monospace;="" "=" " style="font-family: inherit; "><b>






<title>Font Awesome Icons</title>
<meta name="viewport " content="width=device-width, initial-scale=1 ">
<link rel="stylesheet " href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css ">

<i class="fa fa-whatsapp " aria-hidden="true "></i>
            <span times=" " new=" " roman";="" "=" ">𝐉𝐨𝐢𝐧 WhatsApp</span></b></a><span style="color: inherit; font-family: inherit; ">&nbsp;</span><a href="https://t.me/" class="btn btn-primary active " courier=" " new",="" monospace;="" "=" " style="font-family:
                                                        inherit; "><b>





<title>Font Awesome Icons</title>
<meta name="viewport " content="width=device-width, initial-scale=1 ">
<link rel="stylesheet " href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css ">


<i class="fa fa-telegram " aria-hidden="true "></i>
<span times=" " new=" " roman";="" "=" ">Join Telegram</span></b></a></h3><p></p></div>
          </div>
        </div>
      </div>

      <!-- page and other top info -->
      <div class="page_top_info" id="page_top_info"></div>

      <div class="def_wraper">
        <div class="container-fluid">
          <div class="row">
            <div class="col-md-6">
              <div class="card card_v2">
                <div class="card-body">
                  <div id="newOrderTabsWrap">
                    <ul
                      class="nav nav-pills tab_btn_wrap mb-3"
                      id="pills-tab"
                      role="tablist"
                    >
                      <li class="nav-item active" role="presentation">
                        <button
                          class="nav-link active"
                          id="pills-order-tab"
                          data-toggle="pill"
                          href="#pills-order"
                          type="button"
                          role="tab"
                          aria-controls="pills-order"
                          aria-selected="false"
                        >
                          <i class="far fa-credit-card"></i> Add Fund
                        </button>
                      </li>
                      <li class="nav-item active" role="presentation">
                        <button
                          class="nav-link"
                          id="pills-favorite-tab"
                          data-toggle="pill"
                          href="#pills-favorite"
                        >
                          <i class="fas fa-redo-alt"></i> Fund History
                        </button>
                      </li>
                    </ul>
                  </div>
                  <div class="tab-content tab_wrap" id="pills-tabContent">
                    <div
                      class="tab-pane fade active show in"
                      id="pills-order"
                      role="tabpanel"
                      aria-labelledby="pills-order-tab"
                    >
      
     
        {% 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>

 
<div class="card-body pt-3 pb-3">
                                               <form method="post" id="addfundsForm" action="/addfunds">			
                                      <div class="form-group">
												<label for="method" class="control-label">{{ lang['addfunds.method'] }}</label>
												<select class="form-control" id="payment_method" name="payment_type">
													{% for method in site["paymentMethods"] %}
														<option value="{{ method['id'] }}">{{ method['name'] }}</option>
													{% endfor %}
												</select>
											</div>
											<div id="addfunds_fields"></div>
											
										</form>
										<div id="formSubmitResponseMessage"></div>
										<div id="formSubmitResponseContent"></div>
                   
                                             </div>
   
        
 <div
                      class="tab-pane fade in"
                      id="pills-favorite"
                      role="tabpanel"
                      aria-labelledby="pills-favorite-tab"
                    >
                      <div class="table-responsive addfund_responsive">
                        <table class="table">
                          <thead>
                            <tr>
                              <th>ID</th>
                              <th>Amount</th>
                              <th>
                                Methods
                              </th>
                              <th>Date</th>
                            </tr>
                          </thead>
          <tbody>
<td colspan="9">
            {% for payment in payments %}
              <tr>
                <td><span class="">{{ payment['id'] }} </td>
                
                <td><span class=""> {{ payment['amount'] }}  </td>  
                <td class="width-40">{{ payment['name'] }}</td>
                <td>{{ payment['date'] }}</td>

                
              </tr>
            {% endfor %}
                          </tbody>
                        </table>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
<div class="col-md-6">
              <div class="card card_v2">
                <div class="card-body">
                  <div id="def_side_title">
                    <div class="icon">
                      <i class="far fa-landmark"></i>
                    </div>
                    <div class="name">Lorem ipsum dolor sit.</div>
                  </div>
                  <div id="def_side_content">
                    <div
                      class="accordion paymentpage site_accordion"
                      id="accordionExample"
                    >
                      <div class="accordion-item">
                        <h2 class="accordion-header" id="headingOne">
                          <button
                            class="accordion-button collapsed"
                            data-toggle="collapse"
                            data-target="#collapseOne"
                            aria-expanded="true"
                            aria-controls="collapseOne"
                          >
                            <i class="far fa-dove"></i> Payment 1
                          </button>
                        </h2>
                        <div
                          id="collapseOne"
                          class="collapse"
                          aria-labelledby="headingOne"
                          data-parent="#accordionExample"
                        >
                          <div class="accordion-body">
                            <strong>Lorem ipsum dolor sit amet..</strong>
                            Lorem ipsum dolor sit amet consectetur adipisicing
                            elit. Consequatur fuga illum nemo reprehenderit
                            officia sunt alias ea adipisci impedit explicabo
                            quibusdam unde, eligendi ducimus asperiores at
                            inventore beatae natus voluptates.
                            <code>.accordion-body</code>,
                          </div>
                        </div>
                      </div>
                      <div class="accordion-item">
                        <h2 class="accordion-header" id="headingTwo">
                          <button
                            class="accordion-button collapsed"
                            data-toggle="collapse"
                            data-target="#collapsetwo"
                            aria-expanded="true"
                            aria-controls="collapseOne"
                          >
                            <i class="fab fa-cc-paypal"></i> Payment 2
                          </button>
                        </h2>
                        <div
                          id="collapsetwo"
                          class="collapse"
                          aria-labelledby="headingOne"
                          data-parent="#accordionExample"
                        >
                          <div class="accordion-body">
                            <strong
                              >Lorem ipsum dolor sit amet consectetur.</strong
                            >
                            Lorem ipsum dolor sit amet consectetur adipisicing
                            elit. Ipsum, magni! Molestias voluptates adipisci,
                            laudantium accusantium provident excepturi officiis
                            iure praesentium iusto, impedit consequuntur
                            reprehenderit aut quas exercitationem. Magni,
                            officiis reiciendis? <code>.accordion-body</code>,
                            Lorem ipsum dolor sit.
                          </div>
                        </div>
                      </div>
                      <div class="accordion-item">
                        <h2 class="accordion-header" id="headingThree">
                          <button
                            class="accordion-button collapsed"
                            data-toggle="collapse"
                            data-target="#collapsethree"
                            aria-expanded="true"
                            aria-controls="collapseOne"
                          >
                            <i class="fas fa-credit-card-front"></i> Payment 3
                          </button>
                        </h2>
                        <div
                          id="collapsethree"
                          class="collapse"
                          aria-labelledby="headingOne"
                          data-parent="#accordionExample"
                        >
                          <div class="accordion-body">
                            <strong
                              >Lorem ipsum dolor sit amet consectetur.</strong
                            >
                            Lorem ipsum dolor, sit amet consectetur adipisicing
                            elit. Obcaecati, accusantium mollitia?
                            Necessitatibus quaerat error, odit minus quibusdam
                            laudantium aliquam? Ducimus ullam tempora,
                            consectetur corrupti cumque odio iure delectus
                            itaque culpa? <code>.accordion-body</code>, Lorem
                            ipsum dolor sit.
                          </div>
                        </div>
                      </div>
                      <div class="accordion-item">
                        <h2 class="accordion-header" id="headingfour">
                          <button
                            class="accordion-button collapsed"
                            data-toggle="collapse"
                            data-target="#collapsefour"
                            aria-expanded="true"
                            aria-controls="collapseOne"
                          >
                            <i class="fab fa-cc-visa"></i> Payment 4
                          </button>
                        </h2>
                        <div
                          id="collapsefour"
                          class="collapse"
                          aria-labelledby="headingOne"
                          data-parent="#accordionExample"
                        >
                          <div class="accordion-body">
                            <strong
                              >Lorem ipsum dolor sit amet consectetur.</strong
                            >
                            Lorem ipsum dolor sit amet consectetur adipisicing
                            elit. Facere, laboriosam ad placeat aspernatur, quas
                            at similique neque consequatur quam, cumque nulla
                            voluptatum nihil voluptatibus fugit architecto
                            delectus esse quisquam ab.
                            <code>.accordion-body</code>, Lorem ipsum dolor sit.
                          </div>
                        </div>
                      </div>
                      <div class="accordion-item">
                        <h2 class="accordion-header" id="headingfive">
                          <button
                            class="accordion-button collapsed"
                            data-toggle="collapse"
                            data-target="#collapsefive"
                            aria-expanded="true"
                            aria-controls="collapseOne"
                          >
                            <i class="far fa-credit-card"></i> Payment 5
                          </button>
                        </h2>
                        <div
                          id="collapsefive"
                          class="collapse"
                          aria-labelledby="headingOne"
                          data-parent="#accordionExample"
                        >
                          <div class="accordion-body">
                            <strong
                              >Lorem ipsum dolor sit amet consectetur.</strong
                            >
                            Lorem ipsum dolor sit amet, consectetur adipisicing
                            elit. Temporibus voluptate consectetur numquam nulla
                            doloribus harum ipsam earum, necessitatibus
                            laudantium mollitia. Ipsam totam eaque itaque
                            repellat culpa provident reprehenderit! Culpa, ab.
                            <code>.accordion-body</code>, Lorem ipsum dolor
                            sit..
                          </div>
                        </div>
                      </div>
                      <div class="accordion-item">
                        <h2 class="accordion-header" id="headingsix">
                          <button
                            class="accordion-button collapsed"
                            data-toggle="collapse"
                            data-target="#collapsesix"
                            aria-expanded="true"
                            aria-controls="collapseOne"
                          >
                            <i class="far fa-circle"></i> Payment 6
                          </button>
                        </h2>
                        <div
                          id="collapsesix"
                          class="collapse"
                          aria-labelledby="headingOne"
                          data-parent="#accordionExample"
                        >
                          <div class="accordion-body">
                            <strong
                              >Lorem ipsum dolor sit amet consectetur.</strong
                            >
                            Lorem ipsum dolor sit amet, consectetur adipisicing
                            elit. Fuga quis dolor sequi laboriosam, a harum
                            quidem aut recusandae culpa vero soluta repudiandae
                            minus. Iure eum assumenda suscipit laudantium itaque
                            nisi! <code>.accordion-body</code>, Lorem ipsum
                            dolor sit.w.
                          </div>
                        </div>
                      </div>
                      <div class="accordion-item">
                        <h2 class="accordion-header" id="headingseven">
                          <button
                            class="accordion-button collapsed"
                            data-toggle="collapse"
                            data-target="#collapseseven"
                            aria-expanded="true"
                            aria-controls="collapseOne"
                          >
                            <i class="fab fa-bitcoin"></i> Payment 7
                          </button>
                        </h2>
                        <div
                          id="collapseseven"
                          class="collapse"
                          aria-labelledby="headingOne"
                          data-parent="#accordionExample"
                        >
                          <div class="accordion-body">
                            <strong>
                              <strong>
                                Lorem ipsum dolor sit amet consectetur
                                adipisicing elit. At, temporibus.</strong
                              >
                              <strong> Lorem, ipsum.</strong>
                              Lorem ipsum dolor, sit amet consectetur
                              adipisicing elit. Dolorem, soluta?
                            </strong>
                          </div>
                        </div>
                      </div>
                      <strong>
                        <div class="accordion-item">
                          <h2 class="accordion-header" id="headingEight">
                            <button
                              class="accordion-button collapsed"
                              type="button"
                              data-toggle="collapse"
                              data-target="#collapseight"
                              aria-expanded="false"
                              aria-controls="collapseOne"
                            >
                              <i class="fas fa-money-bill"></i> Other
                            </button>
                          </h2>
                          <div
                            id="collapseight"
                            class="collapse"
                            aria-labelledby="headingOne"
                            data-parent="#accordionExample"
                          >
                            <div class="accordion-body">
                              <strong
                                >Lorem ipsum dolor sit amet consectetur.</strong
                              >
                              Lorem, ipsum dolor sit amet consectetur
                              adipisicing elit. Illum tempora aliquid sapiente
                              placeat voluptate facilis est, harum eum mollitia
                              consequuntur ea dicta praesentium obcaecati, quis
                              culpa magnam. Laboriosam, eaque
                              rerum.<code>.accordion-body</code>, Lorem ipsum
                              dolor sit.
                            </div>
                          </div>
                        </div>
                      </strong>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="row">
        <div class="col-md-12">
          <div class="card card_v2 mb-5">
            <div class="card-body"><div class="card bg-white" id="faq-page-deposite">
                        <div class="card-header">
                           <div class="card-title p-3">
                              <i class="fa fa-comments"></i> Frequently Asked Questions
                           </div>
                        </div>
                        <div class="card-body ">
                           <div class="accordion faq-panels">


                              <div class="card" style="border-radius: 30px !important">
                                 <div class="card-header" style="border-radius: 30px !important">
                                    <button class="btn" type="button" data-toggle="collapse" data-target="#collapseFaq6" aria-expanded="true">learn how to add funds to your balance<i class="arrow fa fa-angle-up"></i> <i class="arrow fa fa-angle-down"></i></button>
                                 </div>
                                 <div id="collapseFaq6" class="collapse in" aria-expanded="true" style="">
                                    <div class="card-body">
                                       <p class="card-text">
                                          <iframe width="100%" height="380" src="https://www.youtube.com/" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
                                    </p></div>
                                 </div>
                              </div>

                              
                               <div id="collapseFaq01" class="collapse in" aria-expanded="false" style="">
                                    
                                 </div>  
                              </div>
                              
                   
   </div></div></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
					

			{% include 'footer.twig' %}

			<script>
				var paymentMethods = {{ site["paymentMethodsJSON"] }};
			</script>
			<script>
				const addfundsRoute = "/addfunds";
function addfundsInit() {
var addfundsForm = $("#addfundsForm");
var fields = $("#addfunds_fields");
var selectedMethod = $("#payment_method").val();
var instructions = paymentMethods[selectedMethod][0].instructions;
$.ajax({
url: addfundsRoute,
data: "action=getForm&selectedMethod=" + selectedMethod,
type: "POST",
success: function (json) {
if (json.success == true) {
if (instructions.length > 0) {
var methodInstruction = '<div class="form-group"><label class="control-label">Instructions</label><div class="panel-body border-solid border-rounded">' + instructions + '</div></div>';
} else {
var methodInstruction = "";
} fields.html(methodInstruction + json.content);
extraFeeInit(selectedMethod);
}
}
});
}

function extraFeeInit(method) {
var fee = parseFloat(paymentMethods[method][0].fee).toFixed(2);
var fields = $("#fee_fields");
if (fee > 0) {
fields.html('<div class="form-group"><label class="control-label">Extra fee</label><input type="text" class="form-control" id="methodExtraFee" disabled value="0.00"/></div><div class="form-group"><label class="control-label">Total Amount</label><input type="text" id="totalAmount" class="form-control" disabled value="0.00" /></div>');
}
}
function preparePrice(t) {
n = 2;
var r = (t = $.trim(t.toString().replace(",", "."))).split(".");
return void 0 !== r[1] && (r[1] = r[1].replace(/0+$/g, ""), r[1].length > n && (n = 2 < r[1].length ? 2 : r[1].length)),
1e3 <= (t =( t = parseFloat(t)).toFixed(n)) && (t = t.toString().replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, "$1" + "")),
t = t.toString().replace(/\.(\d+)$/g, "." + "$1");
return t.toFixed(n)
}
$(document).ready(function () {
$(document).on("keyup", "#paymentAmount", function () {
var selectedMethod = $("#payment_method").val();
var amount = parseFloat($(this).val());
var feePercentage = parseFloat(paymentMethods[selectedMethod][0].fee);
var feeInput = $("#methodExtraFee");
var totalAmountInput = $("#totalAmount");
var fee = amount * (feePercentage / 100);
feeInput.val(preparePrice(fee));
totalAmountInput.val(preparePrice(amount + fee));
});
addfundsInit();
});
$("#payment_method").change(function () {
addfundsInit();
});

$("#addfundsForm").submit(function (e) {
e.preventDefault();
var data = $(this).serialize();

$.ajax({
url: addfundsRoute,
data: data,
type: "POST",
success: function (json) {
if (json.success == true) {
var msgDiv = $("#formSubmitResponseMessage");
msgDiv.html('<div class="alert alert-success alert-dismissible fade show mt-2" role="alert">' + json.message + '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button></div>');
var contentDiv = $("#formSubmitResponseContent");
contentDiv.html(json.content);
} else {
var msgDiv = $("#formSubmitResponseMessage");
msgDiv.html('<div class="alert alert-danger alert-dismissible fade show mt-2" role="alert">' + json.message + '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button></div>');
}
}

});
});
			</script>
