{% include 'header.twig' %}
  
  <style>
:root{
                --primary-color: #8b75e3;
                --primary-color40: #8b75e366;
                --secondary-color: #140d64;
                --secondary-color40: #140d6466;
                --secondary-color70: #140d64b3;
                --white-shade: #b7a1a1;
                
            }

#charge {
color: green;

}
#charge:hover {
outline-offset: 0px;
outline: 1px solid #fff;

border: 1px solid #000;
color: #1A5F85;
border-radius: 3px;
font-weight: bold;
transition: border-color 0.2s ease;
}
#neworder_comment {

}
#neworder_comment:hover {
outline: 1px solid #fff;

border: 1px solid #000;
color: #1A5F85;
border-radius: 3px;
font-weight: bold;
transition: border-color 0.2s ease;
outline-offset: 0px;
}
#service_avg_time, #service_description {

}
 #service_avg_time:hover {
 outline-offset: 0px;
outline: 1px solid #fff;

border: 1px solid #000;
color: #1A5F85;
border-radius: 3px;
font-weight: bold;
transition: border-color 0.2s ease;
}
#service_description:hover {
outline: 1px solid #fff;
outline-offset: 0px;
border: 1px solid #000;
color: #1A5F85;
border-radius: 3px;
font-weight: bold;
transition: border-color 0.2s ease;
}
small.help-block.min-max:hover {
outline: 1px solid #fff;

border: 1px solid #000;
outline-offset: 0px;

color: #1A5F85;
border-radius: 3px;
font-weight: bold;
transition: border-color 0.2s ease;
}
small.help-block.min-max {
float: right;
border-radius: 8px;
}
#field-orderform-fields-link:hover {
outline: 1px solid #fff;

border: 1px solid #000;
outline-offset: 0px;

color: #1A5F85;
border-radius: 3px;
font-weight: normal;
transition: border-color 0.2s ease;
}
#field-orderform-fields-link {


}
#neworder_quantity {

}
#neworder_quantity:hover {
outline: 1px solid #fff;

border: 1px solid #000;

outline-offset: 0px;

color: #1A5F85;
border-radius: 3px;
font-weight: normal;
transition: border-color 0.2s ease;
}
#neworder_fields {
border: 1.5px solid white;
}



</style> 
     <link rel="stylesheet" type="text/css" href="/public/Eternity/sk.css">   
     <div class="wrapper-content"> 
   <div class="wrapper-content__header"> 
   </div> 
   <div class="wrapper-content__body"> 
    <!-- Main variables *content* --> 
    <div id="block_93"> 
     <div class="totals" id="curruncy"> 
      <div class="container-fluid"> 
       <div class="row align-items-stretch justify-content-center"> 
        <div class="col-lg-3 col-md-6 col-sm-12 mb-2"> 
         <div class="card h-100 summary-card"> 
          <div class="totals-block__card"> 
           <div class="totals-block__card-left"> 
            <div class="totals-block__count"> 
            <h3 class="totals-block__count-value style-text-primary" style="width: 190px;">{{ user["username"]  }}<img src="https://i.imgur.com/YLalTAd.png" width="20" height="20"> </h3> 
            
            
            </div> 
            <div class="totals-block__card-name"> 
             <marquee>
              <span>Welcome To{{ site["site_name"]  }}</span>
             </marquee> 
            </div> 
           </div> 
           <div class="totals-block__card-right"> 
            <div class="totals-block__icon-preview style-border-radius-default style-text-primary"> 
             <i class="fad fa-user"></i> 
            </div> 
           </div> 
          </div> 
         </div> 
        </div> 
        <div class="col-lg-3 col-md-6 col-sm-12 mb-2"> 
         <div class="card h-100 summary-card"> 
          <div class="totals-block__card"> 
           <div class="totals-block__card-left"> 
            <div class="totals-block__count"> 
             <h3 class="totals-block__count-value style-text-primary" style="width: 190px;"><marquee direction="up">{{ user["spent"] }}</marquee></h3> 
            </div> 
            <div class="totals-block__card-name"> 
             <p> Total Spent </p> 
            </div> 
           </div> 
           <div class="totals-block__card-right"> 
            <div class="totals-block__icon-preview  style-border-radius-default style-text-primary"> 
             <i class="fad fa-dollar-sign"></i> 
            </div> 
           </div> 
          </div> 
         </div> 
        </div> 
        <div class="col-lg-3 col-md-6 col-sm-12 mb-2"> 
         <div class="card h-100 summary-card"> 
          <div class="totals-block__card"> 
           <div class="totals-block__card-left"> 
            <div class="totals-block__count"> 
             <h3 class="totals-block__count-value style-text-primary" style="width: 190px;">{{totalorders}}</h3> 
            </div> 
            <div class="totals-block__card-name"> 
             <p> Total Orders </p> 
            </div> 
           </div> 
           <div class="totals-block__card-right"> 
            <div class="totals-block__icon-preview style-border-radius-default style-text-primary"> 
             <i class="fas fa-layer-plus"></i> 
            </div> 
           </div> 
          </div> 
         </div> 
        </div> 
        <div class="col-lg-3 col-md-6 col-sm-12 mb-2"> 
         <div class="card h-100 summary-card"> 
          <div class="totals-block__card"> 
           <div class="totals-block__card-left"> 
            <div class="totals-block__count"> 
             <h3 class="totals-block__count-value style-text-primary" style="width: 190px;">{{ user["balance"] }} </h3> 
            </div> 
            <div class="totals-block__card-name"> 
             <p> <marquee direction="left"> Your current Balance 
             To Add more Fund <a target="_self" href="/addfunds"><span style="text-transform: uppercase"><strong style="font-weight: bold"> click here.&nbsp;</strong></span></a></marquee></p> 
             <p></p> 
            </div> 
           </div> 
           <div class="totals-block__card-right"> 
            <div class="totals-block__icon-preview  style-border-radius-default style-text-primary" style="
"> 
             <i class="fad fa-wallet"></i> 
            </div> 
           </div> 
          </div> 
         </div> 
        </div> 
       </div> 
      </div> 
     </div> 
    </div> 
{% if contentText2 %}
{{ contentText2 }}
{% endif %}
 <div id="block_44">
  <div class="new_order-block ">
<div class="bg"></div>
<div class="divider-top"></div>
<div class="divider-bottom"></div>
<div class="container-fluid">
  <div class="row">

  <div class="col-lg-7 mb-2">
<div class="component_form_group component_card component_radio_button">
<div class="card ">

                    {% if error %}
                     <div class="alert alert-dismissible alert-danger">
                        {{ errorText }}
                     </div>
                     {% endif %}
{% if data["order"]["success"] == 1 %}
<div class="order-success-card" id="order-success-card">
<center>
<img src="https://i.ibb.co/3MJZdBd/icons8-checkmark-384-3x.png" alt="checkmark"></center>
<div class="user-details">
<div id="sample" class="order-details">
<center><p><span class="paid-amount"><b>Your Order Has Been Placed :</b><span  style="color:#7743DB">{{data['order']['id']}}</span></span></p></center>
 

<br>
<p><span class="service-name">
<b>Service :</b><br/>{{data['order']['service']}}</span></p>
<p><span class="link"><b>Link :</b><br /><a href="{{data['order']['link']}}">{{data['order']['link']}}</a></span></p>
<p><span class="quantity"><b> Quantity :</b><span style="color:#E0144C">{{data['order']['quantity']}}</span></span></p>
<div class="order-details">
    
</div></div>
<div class="user-details">
<center><p><span class="paid-amount"><b>You paid :</b><span style="color:#7743DB">{{ data['order']['price'] }}</span></span></p>
<p><b></b>Remaining balance :</b><span class="quantity" style="color:#E0144C">{{ data['order']['balance'] }}</span></p>

</div></div>
<button type="button" onclick="closeOrderReceiptCard()">OK</button>

<button type="button" onclick="CopyToClipboard('sample');return false;">Copy Order Details</button>
</div>
  
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
  
    
<script>
function CopyToClipboard(id){
    var r = document.createRange();
r.selectNode(document.getElementById(id));
window.getSelection().removeAllRanges();
window.getSelection().addRange(r);
document.execCommand('copy');
window.getSelection().removeAllRanges();

var el = document.getElementById("order-success-card");

el.classList.remove("order-success-card-active");
    var copy = $('.copy_text').val();
    $('.copy_text').select();
    document.execCommand('copy');
    
    Swal.fire({
        icon: 'success',
        title: 'Successfully Copied',
        text: copy,
        showConfirmButton: false,
        timer: 3000
    });
    
}

 

</script>    

<script>

setTimeout(function(){
var el = $("#order-success-card");
el.addClass("order-success-card-active");
},1000);
function closeOrderReceiptCard(){

var el = document.getElementById("order-success-card");

el.classList.remove("order-success-card-active");
}
</script>
    {% endif %}
    {% if data["order"]["success"] == 2 %}
      <div class="alert alert-dismissible alert-success">
         <strong> {{ lang["neworder.success.id"] }}: </strong> {{ data['order']['id'] }} <br>
         <strong> {{ lang["neworder.success.service"] }}: </strong> {{ data['order']['service'] }} <br>
         <strong> {{ lang["neworder.success.username"] }}: </strong> {{ data['order']['link'] }} <br>
         <strong> {{ lang["neworder.success.quantity"] }}: </strong> {{ data['order']['min'] }} - {{ data['order']['max'] }} <br>
         <strong> {{ lang["neworder.success.posts"] }}: </strong> {{ data['order']['posts'] }} <br>
         <strong> {{ lang["neworder.success.delay"] }}: </strong>{{ data['order']['delay'] }} <br>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">Ã—</span></button>

       </div>
    {% endif %}

     
      <div class="well">


<form method="post" action="">
<div class="component_button_forms">
<div class="form-group">
<label for="orderformorderform-service" class="control-label">Category</label>
<select class="form-control" id="neworder_category" name="categories" data-select="true" data-select-search="true" data-select-search-placeholder="Search" data-select-container="#select-category-container" tabindex="-1" aria-hidden="true">
{{ category_html_simplify }}
</select>
<div id="select-category-container" class="position-relative"></div>
</div>
</div>


<div class="form-group">
<label for="orderform-service" class="control-label">Services</label>
<select class="form-control" id="neworder_services" name="services" data-select="true" data-select-search="true" data-select-search-placeholder="Search" data-select-container="#select-service-container" tabindex="-1" aria-hidden="true">
<option value="1">No services found in this category</option>
</select>
<div id="select-service-container" class="position-relative"></div>
</div>
<div id="neworder_fields"></div>
 
             <div class="form-group" id="charge_div"> 
              <label for="charge" class="control-label" style="margin-left: 30px; color: green;">You will Pay</label> 
              <input type="text" class="form-control" style="width: 130px; margin-right: 165px; padding: 10px; padding-left: 35px; font-size: 20px; font-weight: 500; height: 60px; margin-buttom: -10px; background-color: ;  font-position: ;" id="charge" readonly> 
             </div> 
             <right> 
             
             
             <button type="submit" id="tipu" class="btn btn-block btn-primary" onclick="clickme()"><font color="#FFFFFF"><b>🕊️{{ lang["neworder.button"] }}🕊️</b></button></right>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
		  <script type="text/javascript">
		  function clickme()
		  {
		  swal({
  title: "Hlo My dear Friend",
  text: "Your order fetching to our server pls wait.....!",
  icon: "info",
  buttons: false,
});
}
</script>
             
             
             
            </form></strong>
          </div>
          <strong> </strong>
         </div>
         <strong> </strong>
        </div>
        
    
 <p>&nbsp;&nbsp;&nbsp;</p>                         	
		
										</div>

									</div>
								</div>
							</div>
						</div>
					</div>
 


{% include 'footer.twig' %}