{% include 'header.twig' %}
<style>
		#service_description,
		#service_avg_time {
			padding: 13px;
			border-radius: 12px;
			border: 1px solid #00ffa3;
			font-size: 15px;
			box-shadow:none;
			color: #ffffff;}
</style>



<style>
.badge {
background-color: #28cb69;
    color: white;
    height: 19px;
    font-size: 13px;
    line-height: 21px;
    padding: 0 4px;
}

</style>


<style>
    .panel-body {
        background: var(--dark-bg-input);
    border: 1px solid var(--form-border-color);
    border-radius: 15px;
    padding: 10px;
    color: white;
    font-size: 13px;
    }
    
</style>


<style>
.swal2-popup {
    display: none;
    position: relative;
    box-sizing: border-box;
    grid-template-columns: minmax(0,100%);
    width: 32em;
    max-width: 100%;
    padding: 0 0 1.25em;
    border: none;
    border-radius: 5px;
    background: #57d27a;
    color: #545454;
    font-family: inherit;
    font-size: 1rem;
}
</style>




 <style>
#unique-dropdown {
    display: none;
    max-height: 200px; /* Set a max height for the results container to make it scrollable */
    overflow-y: auto; /* Enable vertical scrolling if needed */
    border: 1px solid #ccc;
    border-radius: 5px;
    position: absolute;
    z-index: 1000;
    background: white;
}

.selectme {
    padding: 10px;
    cursor: pointer;
    list-style-type: none; /* Remove the list-style type (bullets) */
}

.selectme:hover {
    background-color: #f2f2f2; /* Highlight on hover */
}

.highlight {
    font-weight: bold; /* Make the matching text bold */
}
/* Dropdown container style */
#dropdown_for_search {
  display: none; /* Hidden by default */
  max-height: 600px; /* Maximum height */
  overflow-y: auto; /* Vertical scrolling if the dropdown is long */
  overflow-x: hidden; /* Hide horizontal scrolling */
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px;
  margin-top: 5px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  background-color: #212529; /* Dark background for dropdown */
  white-space: normal; /* Text will wrap to the next line if it's long */
  word-wrap: break-word; /* Words will break if they're too long */
}

/* Dropdown item style */
.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Will wrap to the next line if items don't fit */
  white-space: normal; /* Text inside dropdown will wrap */
  word-break: break-word; /* Long words will break and wrap */
  color: #fff; /* Text color set to white */
}

/* Hover effect for dropdown items */
.dropdown-item:hover {
  background-color: #444; /* Darker background on hover */
  color: #fff; /* Keep text white on hover */
}

/* Service badge style */
.badge.service_id_badge {
  margin-right: 8px; /* Gap between the badge and name */
  font-size: 12px; /* Badge text size */
  background-color: #555; /* Dark background for badges */
  color: #fff; /* Text color for badges */
}

/* Centered "Please Wait" or loading message */
#dropdown_for_search .text-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px; /* Correct positioning for the message */
  font-weight: bold;
  color: #fff; /* Text color set to white */
}
</style>


  <!-- // page and other top info -->
<style>
   #service_description,
   #orderform-category,
   #orderform-service {
      display: none;
   }
</style>

 


		
<!-- category Filters -->
<div id="category_filter" class="mb-3">
  <div class="container-fluid">
     <div class="row">
        <div class="col-md-12">
           <div class="category_filter_wrap">
              <div class="card card_v2">
                 <div class="card-body">
                    <div class="filter_btn_wrap" id="new-order-cats">
                      
      
          
                       <button class="nwo-cat-btn btn_filter" data-change-cat="instagram" onclick="filterStarted('instagram')">
                           <i class="fab fa-instagram"></i>
                           <span class="filter_txt">
                              Instagram
                           </span>  
                       </button>
                       <button class="nwo-cat-btn btn_filter"  data-change-cat="facebook" onclick="filterStarted('Facebook')">
                           <i class="fab fa-facebook"></i>
                           <span class="filter_txt">
                              Facebook
                           </span> 
                       </button>

                       <button class="nwo-cat-btn btn_filter" data-change-cat="youtube" onclick="filterStarted('youtube')">
                           <i class="fab fa-youtube"></i>
                           <span class="filter_txt">
                             Youtube
                           </span> 
                       </button>

                       <button class="nwo-cat-btn btn_filter" data-change-cat="twitter" onclick="filterStarted('Twitter')">
                           <i class="fab fa-twitter"></i>
                           <span class="filter_txt">
                              Twitter
                            </span> 
                       </button>

                       <button class="nwo-cat-btn btn_filter" data-change-cat="spotify" onclick="filterStarted('Spotify')">
                           <i class="fab fa-spotify"></i>
                           <span class="filter_txt">
                              Spotify
                            </span> 
                       </button>

                       <button class="nwo-cat-btn btn_filter" data-change-cat="tiktok" onclick="filterStarted('Tiktok')"> 
                           <i class="fab fa-tiktok"></i>
                           <span class="filter_txt">
                                 Tiktok
                           </span> 
                       </button>

                       <button class="nwo-cat-btn btn_filter" data-change-cat="telegram" onclick="filterStarted('Telegram')">
                           <i class="fab fa-telegram"></i>
                           <span class="filter_txt">
                              Telegram
                           </span> 
                       </button>

                       <button class="nwo-cat-btn btn_filter" data-change-cat="linkedin" onclick="filterStarted('Linkedin')">
                           <i class="fab fa-linkedin"></i>
                           <span class="filter_txt">
                              Linkedin
                           </span> 
                       </button>

                       <button class="nwo-cat-btn btn_filter" data-change-cat="discord" onclick="filterStarted('Discord')">
                           <i class="fab fa-discord"></i>
                           <span class="filter_txt">
                              Discord
                           </span> 
                       </button>

                       <button class="nwo-cat-btn btn_filter" data-change-cat="traffic" onclick="filterStarted('Traffic')">
                           <i class="fas fa-globe"></i>
                           <span class="filter_txt">
                              Website Traffic  
                           </span> 
                       </button>

                       <button class="nwo-cat-btn btn_filter" data-change-cat="other" onclick="filterOthers()">
                           <i class="fas fa-star-christmas"></i>
                           <span class="filter_txt">
                              Others
                           </span> 
                       </button>
                       <button class="nwo-cat-btn btn_filter" data-change-cat="" onclick="filterStarted('everything')">
                        <i class="far fa-ball-pile"></i>
                        <span class="filter_txt">
                           Everythings
                        </span>      
                     </button>

                      
                    </div>
                 </div>
              </div>
           </div>
        </div>
     </div>
  </div>
</div>
<!-- //category Filters -->

<!-- New Orders Part -->
<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" id="newOrderTabsWrap">
                 <ul class="nav nav-pills tab_btn_wrap mb-3" id="pills-tab" role="tablist">
                    <li class="nav-item" role="presentation">
                       <button class="nav-link active" id="pills-order-tab" data-bs-toggle="pill" data-bs-target="#pills-order" type="button" role="tab" aria-controls="pills-order" aria-selected="true"> <i class="fas fa-shopping-cart"></i> New Order</button>
                    </li>
                    
                     <li class="nav-item" role="presentation">
                        <a href="/addfunds" class="nav-link">
                              <i class="far fa-credit-card"></i>&nbsp;AddFunds
                            </a>
   
                           
                    </li>
                   <!-- <li class="nav-item" role="presentation">
                       <button class="nav-link" id="pills-favorite-tab" data-bs-toggle="pill" data-bs-target="#pills-favorite" type="button" role="tab" aria-controls="pills-favorite" aria-selected="false"> <i class="fas fa-star"></i> My Favorites</button>
                    </li>
                    <li class="nav-item" role="presentation">
                     <button class="nav-link" id="pills-search-tab" data-bs-toggle="pill" data-bs-target="#pills-search" type="button" role="tab" aria-controls="pills-search" aria-selected="true"> <i class="fas fa-search"></i> Search By Id</button>
                  </li>
                  <li class="nav-item" role="presentation">
                     <button class="nav-link" id="pills-auto-tab" data-bs-toggle="pill" data-bs-target="#pills-auto" type="button" role="tab" aria-controls="pills-auto" aria-selected="false"> <i class="far fa-mp3-player"></i> <span class="hide_phone">Auto</span> Subscriptions</button> -->
                  </li>
                 </ul>
                                  <div class="tab-content tab_wrap" id="pills-tabContent">
                    <div class="tab-pane fade show active" id="pills-order" role="tabpanel" aria-labelledby="pills-order-tab">
                        <div class="newordersr">
                      
                                                       
                                                       
                                              							      {% 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">
  
  {% 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="mb-3">
        
                                                                                                                                                      <div class="mb-3">
                                 <label for="orderform-category" 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="mb-3">
<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="mb-3">
                                 <label for="charge" class="control-label">Charge</label>
                                 <input type="text" class="form-control" id="charge" value="" readonly>
                              </div>
                                <input type="hidden" name="csrf_token" value="{{ csrfToken }}">
                                 <button type="submit" class="btn btn-primary d-block w-100">Submit</button>
                              </form>
                        </div>
                    </div>

                 
   <!-- Favorites Start -->
                    <div class="tab-pane fade" id="pills-favorite" role="tabpanel" aria-labelledby="pills-favorite-tab">
                     <div class="favoriler">
                        <div class="alert alert-success"> Here will show your Favorites Services</div>
                     </div>
                    </div>
                   <!-- Favorites Start -->
                     <!-- Search By Id Start -->
                    <div class="tab-pane fade" id="pills-search" role="tabpanel" aria-labelledby="pills-search-tab">
                     <div class="input-group form-group">
                        <input type="number" id="input_service" class="form-control" placeholder="Enter Service ID">
                        <span class="input-group-btn search_byId">
                          <button type="button" class="btn btn-primary search" onclick="searchID();"><i class="fas fa-search"></i></button>
                          </span>
                     </div>
                     <small class="text-danger">You can search by services id from here, please check <a href="/services">Services</a> Page and then you can enter the services id here.</small>
                     <div id="error_search">
                     </div>
                    </div>
                     <!-- // Search By Id Start -->

                       <!-- Search By Id Start -->
                    <div class="tab-pane fade" id="pills-auto" role="tabpanel" aria-labelledby="pills-auto-tab">
                     <div class="alert alert-success"> Auto Subscriptions will coming soon...</div>
                     </div>
                  <!-- // Search By Id Start -->

                 </div>
              </div>
           </div>
        </div>
        
        
        
        
       <div class="col-md-6">
         <div class="card card_v2">
          <div class="card-header v2_header">
             <div class="new_order_tabs">
                <ul class="nav nav-pills" id="pills-tab" role="tablist">
                   <li class="nav-item" role="presentation">
                      <button class="nav-link active" id="pills-details-tab" data-bs-toggle="pill" data-bs-target="#pills-details" type="button" role="tab" aria-controls="pills-details" aria-selected="true"> 
                         <span class="icon"> <i class="far fa-info-circle"></i></span>
                         <span class="text_name"> Description </span>
                      </button>
                   </li>

                   <li class="nav-item" role="presentation">
                      <button class="nav-link" id="pills-contact-tab" data-bs-toggle="pill" data-bs-target="#pills-contact" type="button" role="tab" aria-controls="pills-contact" aria-selected="false"> 
                         <span class="icon"><i class="fas fa-comment-dots"></i></span>
                         <span class="text_name"> 
                          Notes
                         </span>
                      </button>
                   </li>

                <!--   <li class="nav-item" role="presentation">
                      <button class="nav-link" id="pills-readme-tab" data-bs-toggle="pill" data-bs-target="#pills-readme" type="button" role="tab" aria-controls="pills-readme" aria-selected="false"> 
                         <span class="icon">
                            <i class="far fa-clipboard"></i>
                         </span>
                         <span class="text_name"> 
                            <div class="hide_phone">Please read this before submit order !</div>
                            <div class="show_phone">Read Me</div>
                         </span>
                      </button>
                   </li> -->
                   
                </ul>
               </div>
          </div>
            <div class="card-body" >
               <div class="tab-content tab_wrap" id="pills-tabContent">
                  <!-- Details Start -->
                  <div class="tab-pane fade show active" id="pills-details" role="tabpanel" aria-labelledby="pills-details-tab">
                    
                    
                    
                     <div class="descriptions_box">
                     <div data-id="serviceDesc"> 
    <p class="card-text" id="description_new"></p>
                     </div>
                     </div>
                  </div>
                  <!-- //Details Start -->

                  <!-- Read me before order tab content -->
                  <div class="tab-pane fade" id="pills-readme" role="tabpanel" aria-label="pills-readme-tab">
                     <p>
                        1. This is an automatic server so we are unable to cancel an order after you submit it, make sure to think before order.
                        <br><br>
                        2. No refill if order start count goes down ever or change username.
                        <br><br>
                        3. Order can be refill if drop rate is 5% or more.
                        <br><br>
                        4. Order will be considered as completed if start count goes down after place / start an order.
                        <br><br>
                        5. Order will be considered as completed if post / page / video deleted or removed after place order.
                     </p>
                  </div>

                  <!-- Contact Section -->
                  <div class="tab-pane fade" id="pills-contact" role="tablpanel" aria-label="pills-contact-tab">
                        <p>
                                            </p>
                        
                        
                     
                  </div>
               </div>
            </div>
         </div>
        </div>

     </div>
  </div>
</div>
<!-- // New Orders Part -->
   
   
   
   
   
   
   
   
   
        
{% include 'footer.twig' %}












