{% include 'header.twig' %}

<div class="paddingbody"></div>
<div class="container-fluid container-fluid-spacious">
	<div class="row">
		<div class="col-md-8 col-md-offset-2">

			<style>
			.select2-container--default .select2-results > 
    .select2-results__options {max-height: 452px;}
    
				.cards {
					min-height: 20px;
					padding: 10px;
					margin-bottom: 0;
					margin-right: 10;
					margin-left: 10;
					background-color: #e95420;
					
					
					color: #fff;
					border: 1px solid rgba(0, 0, 0, .1);
					border-radius: 4px;
					box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%);
					margin-top: 5px;
					margin-bottom: 5px;
				}


				.main_playes #app-cover {
					
					height: 100%;
					margin: 1px auto;
				   }
				   
				   .main_playes  #bg-artwork {
					
				   }
				   
				   .main_playes  #bg-layer {
				
				   }
				   
				   .main_playes   #player {
					position: relative;
					height: 100%;
					z-index: 3;
					display: flex;
					justify-content: center;
					align-items: center;
				   }
				   
				   .main_playes  #player-track {
				   display: none;
				   }
				   
				   .main_playes  #player-track.active {
					top: -92px;
				   }
				   
				   .main_playes   #album-name {
					color: #54576f;
					font-size: 17px;
					font-weight: bold;
				   }
				   
				   .main_playes   #track-name {
					color: #acaebd;
					font-size: 13px;
					margin: 2px 0 13px 0;
				   }
				   
				   .main_playes  #track-time {
					height: 12px;
					margin-bottom: 3px;
					overflow: hidden;
				   }
				   
				   .main_playes   #current-time {
					float: left;
				   }
				   
				   .main_playes  #track-length {
					float: right;
				   }
				   
				   #current-time,
				   #track-length {
					color: transparent;
					font-size: 11px;
					background-color: #ffe8ee;
					border-radius: 10px;
					transition: 0.3s ease all;
				   }
				   
				   #track-time.active #current-time,
				   #track-time.active #track-length {
					color: #f86d92;
					background-color: transparent;
				   }
				   
				   #s-area,
				   #seek-bar {
					position: relative;
					height: 4px;
					border-radius: 4px;
				   }
				   
				   .main_playes   #s-area {
					background-color: #ffe8ee;
					cursor: pointer;
				   }
				   
				   .main_playes   #ins-time {
					position: absolute;
					top: -29px;
					color: #fff;
					font-size: 12px;
					white-space: pre;
					padding: 5px 6px;
					border-radius: 4px;
					display: none;
				   }
				   
				   .main_playes   #s-hover {
					position: absolute;
					top: 0;
					bottom: 0;
					left: 0;
					opacity: 0.2;
					z-index: 2;
				   }
				   
				   .main_playes   #ins-time,
				   .main_playes   #s-hover {
					background-color: #3b3d50;
				   }
				   
				   .main_playes   #seek-bar {
					content: "";
					position: absolute;
					top: 0;
					bottom: 0;
					left: 0;
					width: 0;
					background-color: #fd6d94;
					transition: 0.2s ease width;
					z-index: 1;
				   }
				   
				   .main_playes   #player-content {
					position: relative;
					height: 100%;
					
				
					border-radius: 15px;
					z-index: 2;
					display: flex;
					justify-content: center;
					width: fit-content;
				   }
				   
				   .main_playes   #album-art {
				   display: none;
				   }
				   
				   .main_playes   #album-art.active {
					top: -60px;
					box-shadow: 0 0 0 4px #fff7f7, 0 30px 50px -15px #afb7c1;
				   }
				   
				   .main_playes  #album-art:before {
					content: "";
					position: absolute;
					top: 50%;
					right: 0;
					left: 0;
					width: 20px;
					height: 20px;
					margin: -10px auto 0 auto;
					background-color: #d6dee7;
					border-radius: 50%;
					box-shadow: inset 0 0 0 2px #fff;
					z-index: 2;
				   }
				   
				   .main_playes   #album-art img {
					display: block;
					position: absolute;
					top: 0;
					left: 0;
					width: 100%;
					height: 100%;
					opacity: 0;
					z-index: -1;
				   }
				   
				   .main_playes   #album-art img.active {
					opacity: 1;
					z-index: 1;
				   }
				   
				   .main_playes   #album-art.active img.active {
					z-index: 1;
					animation: rotateAlbumArt 3s linear 0s infinite forwards;
				   }
				   
				   @keyframes rotateAlbumArt {
					0% {
					  transform: rotateZ(0);
					}
					100% {
					  transform: rotateZ(360deg);
					}
				   }
				   
				   .main_playes  #buffer-box {
					position: absolute;
					top: 50%;
					right: 0;
					left: 0;
					height: 13px;
					color: #1f1f1f;
					font-size: 13px;
					font-family: Helvetica;
					text-align: center;
					font-weight: bold;
					line-height: 1;
					padding: 6px;

				
			</style>

			<p></p>
			<div class="row card-divs">
    <div class="col-md-4">
        <div class="cards">
            <div class="card-body">
                <h3 class="card-title"><i class="fas fa-money-bill"></i> Total Spent</h3>
                <h3 class="card-text text-right">{{ user["spent"] }}</h3>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="cards">
            <div class="card-body">
                <h3 class="card-title"><i class="fas fa-shopping-cart"></i> Total Orders</h3>
                <h3 class="card-text text-right">{{totalorders}}</h3>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="cards">
            <div class="card-body">
                <h3 class="card-title"><i class="fas fa-money-check-alt"></i> Total Balance</h3>
                <h3 class="card-text text-right">{{ user["balance"] }}</h3>
            </div>
        </div>
    </div>
</div>

			<p></p>


			          
            
                {% if error %}
      <div class="alert alert-dismissible alert-danger">
        {{ errorText }}
      </div>
    {% endif %}

     {% if data["order"]["success"] == 1 %}
      <div class="alert alert-dismissible alert-success"><h4>Your Order  received.</h4>
          <strong> {{ lang["neworder.success.id"] }}: </strong> {{ data['order']['id'] }} <br>
          <strong> {{ lang["neworder.success.service"] }}: </strong> {{ data['order']['service'] }} <br>
          <strong> {{ lang["neworder.success.link"] }}: </strong> {{ data['order']['link'] }} <br>
          <strong> {{ lang["neworder.success.quantity"] }}: </strong> {{ data['order']['quantity'] }} <br>
          <strong> {{ lang["neworder.success.charge"] }}: </strong> {{ data['order']['price'] }} <br>
          <strong> {{ lang["neworder.success.balance"] }}: </strong>{{ data['order']['balance'] }} <br>
<a href="/"><span class="badge badge-primary">Close</span></a>

      </div>
    {% 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>
       </div>
    {% endif %}
            
            
          <form action="/" method="post" id="order-form">
            <div class="component_button_forms">
    {% if settings.search_enabled == 1 %}
  
    <div class="form-group">
      <div class="search_services_content">
        <!-- Input group with icon in placeholder -->
        <div class="input-group">
          <!-- Search input -->
          <input 
            type="search" 
            id="search_services_field" 
            class="form-control"
            placeholder=" Search by Service ID or Name"
            data-gtm-form-interact-field-id="0"
          >
        </div>
      </div>

      <!-- Search result dropdown -->
      <div 
        id="dropdown_for_search"
        class="dropdown"
        style="
          display: none; /* Dropdown is hidden by default */
          max-height: 600px;
          overflow-y: auto;
          border: 1px solid #ddd;
          border-radius: 5px;
          padding: 5px;
          margin-top: 5px;
          box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2); 
        ">
        <div class="text-center" style="display: none;">
          Please Wait...
        </div>
      </div>
    </div>
  
{% endif %}
                                
     
                                <div class="form-group">
        
<label for="orderform-category" class="control-label">{{ lang["neworder.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">{{ lang["neworder.service"] }}</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">Charge</label>
      <input type="text" class="form-control" id="charge" readonly>
    </div>
                                          
                                          
                                          
                                          
                                          
                                          
                 <div class="new-order-button-submit component_button_submit ">
                     <input type="hidden" name="csrf_token" value="{{ csrfToken }}">
               <button type="submit" class="btn btn-primary">Submit</button>
            </div>
          </form>
        </div>
      </div>
    </div>                                     
                               
{% include 'footer.twig' %}             