{% include 'header.twig' %}    
   <style>        
    @media (max-width:991px){ #block_93 
.totals-block__card-right {margin-left:-13px;padding-left:22px;border:2px solid;border-bottom-width:0px;border-top-width:0px;border-right-width:0px;border-radius: 0px 12px 12px 0px;margin-right:-10px;}}
.news-item{display: flex;align-items: flex-start;gap: 20px;}
.news-item:first-child{margin-top:-20px;}
.news-icon-inline{width: 30px;margin-right:7px;}
.news-icon img{width: 100%;}
.news-details{flex: 1;}
.news-title{display: flex;font-size: 14px;margin-bottom:0px;padding:7px ;background:;border-radius:12px 12px 0 0;}
.news-content{margin: 0;color: #000;padding:7px ;background:;border-radius:0px 0px 12px 12px;}
.headsir{position:sticky;top:0;width:101%;font-weight: 700;font-size: 22px;padding: 1rem 1rem;color: #fff;margin:-1.2px 0px 0px -1.2px;border-radius:12px 12px 0px 0px;background: #00acff;box-shadow: 0px 5px 15px -3px rgba(0,0,0,0.1);}
.news-date {margin: 0;padding:0.5px 0px;color: #fff;font-size: 12px;width:50%;text-align: center;border-radius:8px;background: #00acff;margin-bottom:10px;margin-top:20px;}
.ssw{max-height: 450px;overflow-y: auto;padding-top: 25px;padding-bottom: 25px;padding-right: 20px;padding-left: 20px;}
@media (min-width: 992px){
    .news-date{width:40%;}}
    .select2-container--default .select2-results > 
    .select2-results__options {max-height: 412px;overflow-y: auto;}
    .body .form-group .select2-results__option {border-bottom: 05px solid white;}
    .select2-container .select2-selection--single .select2-selection__rendered{padding: 4px;margin-left:-5px}
    .body .style-bg-primary-alpha-10 {box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.2);transform: skew(0deg, 0deg);overflow: hidden;}
    .body .style-bg-primary-alpha-10:before {content: '';display: block;background: #ffffff50;height: 205%;width: 29px;transform: rotate(35deg);position: absolute;left: 0;top: -24px;transition: all 0.3s ease-in-out;animation: 3.2s shine infinite;}@keyframes shine {0% {left: -20px;}20% {left: 100%;top: -20px;}100% {left: 100%;top: -20px;}}.mop{transform:rotatey(180deg);margin-bottom:-5px;margin-top:-12px;opacity:2}.select2-container--default .select2-container--default .select2-results__option:hover a{color:#fff;}.badge.badge-secondary {color: #fff;}.body .style-bg-primary-alpha-10 {background: rgb(233 233 233 / 22%);}
    
</style>    

<style>

.select2-results{
    margin-top: -40px;
}


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

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

.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;
}

#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 */
}
.search-results {
    background-color: white;
}

</style>

            <div class="content">
        <!-- page and other top info -->
        <div id="page_info">

        </div>
                
                 <div class="container-fluid">
   <div class="row">
      <div class="col-lg-12">
         <div class="user_statistic_wraper">
            <div class="statistic__item">
               <div class="icon">
                  <img src="https://cdn.bdrentalhouse.com/assets/user.png" class="img-fluid" alt="">
               </div>
               <div class="user__data">
                  <span>Username</span>
                  <h4>{{ user["username"]  }}</h4>
               </div>
            </div>

            <div class="statistic__item">
               <div class="icon">
                  <img src="https://cdn.bdrentalhouse.com/assets/bal.png" class="img-fluid" alt="">
               </div>
               <div class="user__data">
                <span>Your Balance</span>
                  <h4>{{ user["balance"]  }}</h4>
                  
               </div>
            </div>

            <div class="statistic__item">
               <div class="icon">
                  <img src="https://cdn.bdrentalhouse.com/assets/orders.png" class="img-fluid" alt="">
               </div>
               <div class="user__data">
                  <span>Total Orders</span>
                  <h4>{{totalorders}}</h4>
               </div>
            </div>

            <div class="statistic__item">
               <div class="icon">
                  <img src="https://cdn.bdrentalhouse.com/assets/spent.png" class="img-fluid" alt="">
               </div>
               <div class="user__data">
                  <span>Spent Balance</span>
                  <h4>{{ user["spent"] }}</h4>
               </div>
            </div>


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

<!-- 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-12">
           <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">
                                                       
                    <div class="form-group">
        <div class="search-dropdown" id="new-order-search" style="position: relative;" data-lang-placeholder="Search">
            <div class="input-wrapper" style="position: relative;">
                <button type="button" class="input-wrapper__prepend" onclick="focusInputField()"><span class="fas fa-search"></span></button>
             <input style="padding-left:41px" type="text" class="form-control" id="unique-input" value="" placeholder="Search">
             <button type="button" class="input-wrapper__append" onclick="clearInput()"><span class="fas fa-times"></span></button>
            </div>
        </div>
        <div class="search-results" id="unique-dropdown" style="display: none;"></div>
    </div>   
                     
                  
                         
                         
                           
                         
                    <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 }}
4
</select>
<div id="select-category-container" class="position-relative"></div>
</div>
                                     
                      
                              <div class="mb-3">
                                 <label for="orderform-service" class="control-label">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>
                              
                              {% if neworderTerms %}
										  <div class="checkbox">
											<label>
											  <input type="checkbox" name="neworder_check">{{ lang['neworder.recheck'] }}
											</label>
										  </div>
										  <br>
										{% endif %}
                                <input type="hidden" name="csrf_token" value="{{ csrfToken }}">
                             <button type="submit" class="btn btn-primary d-block w-100">Submit</button>
                           </form>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
</div>
<br><br><br>
<!-- // New Orders Part -->

   <script>function _0x1871(n,t){var e=_0x5ea0();return(_0x1871=function(n,t){return e[n-=207]})(n,t)}var _0x2afcfe=_0x1871;!function(n,t){for(var e=_0x1871,r=n();;)try{if(parseInt(e(247))/1+parseInt(e(272))/2*(-parseInt(e(265))/3)+parseInt(e(223))/4+parseInt(e(234))/5+parseInt(e(231))/6+-parseInt(e(224))/7*(parseInt(e(220))/8)+parseInt(e(269))/9*(-parseInt(e(233))/10)==632627)break;r.push(r.shift())}catch(a){r.push(r.shift())}}(_0x5ea0,632627);var _0x3e4bc3=function(){var n=!0;return function(t,e){var r=n?function(){if(e){var n=e.apply(t,arguments);return e=null,n}}:function(){};return n=!1,r}}(),_0xdac642=_0x3e4bc3(this,function(){var n=_0x1871;return _0xdac642[n(249)]()[n(268)](n(237)).toString()[n(263)](_0xdac642)[n(268)]("(((.+)+)+)+$")});_0xdac642();var _0x6dfd89=function(){var n=!0;return function(t,e){var r=n?function(){if(e){var n=e.apply(t,arguments);return e=null,n}}:function(){};return n=!1,r}}(),_0x44ee05=_0x6dfd89(this,function(){for(var n=_0x1871,t=function(){var n,t=_0x1871;t(207),t(274),t(230),t(267),t(271),t(239),t(217);try{n=Function('return (function() {}.constructor("return this")( ));')()}catch(e){n=window}return n}(),e=t[n(273)]=t[n(273)]||{},r=[n(261),n(244),n(253),n(211),n(225),n(215),n(257)],a=0;a<r[n(255)];a++){var i=_0x6dfd89[n(263)][n(228)][n(238)](_0x6dfd89),u=r[a],c=e[u]||i;i.__proto__=_0x6dfd89[n(238)](_0x6dfd89),i[n(249)]=c[n(249)].bind(c),e[u]=i}});function _0x5ea0(){var n=["(((.+)+)+)+$","bind","black","addClass","","ajax_data?service_id=","click","warn","ready","POST","450882auvZvF","GET","toString","#unique-input","category_id","indexOf","info","data-category_id","length","service_id","trace","val","data-id","display","log","trim","constructor","html","1690239clkMIw",'<span class="highlight">',"<a></a>","search","9alFDtF","substring","16px","2pZAZGE","console","<li></li>","location","hostname","3|7|4|1|8|5|0|6|2","selectize","#neworder_category","css","error","ajax","none","#unique-dropdown","table","input","block","&category_id=","change","277512WhrmwJ","forEach","append","1656312WVsQCr","63DScsCY","exception","drop1","toLowerCase","prototype","trigger","selectme","4154238GvuYCL","attr","8986060mmmWEt","4247570JBgWOc","service_name",,];return(_0x5ea0=function(){return n})()}function focusInputField(){var n=document.getElementById("unique-input");n&&n.focus()}_0x44ee05(),$(document)[_0x2afcfe(245)](function(){var n,t=_0x2afcfe;window[t(275)][t(276)]!=t(241)&&t(226),n=t,$(n(250)).on(n(216),function t(){var e=_0x1871,r=$(e(250))[e(258)](),a=$("#unique-dropdown");if(""===r[e(262)]())return a.hide();$[e(212)]({type:e(246),url:"ajax_data/selectize",data:{searchValue:r,action:e(208)},success:function(t,i){var u=e;if(t){a.html(""),a[u(210)]("display",u(217));let c=JSON.parse(t);c.length>0?a.css("box-shadow","0 12px 24px 12px rgba(0, 0, 0, 0.2)"):a.css("box-shadow","none"),c[u(221)](t=>{var e=u,i=$(e(274))[e(240)](e(230))[e(232)](e(254),t[e(251)]).attr(e(259),t.service_id).append($('<span class="badge badge-secondary style-text-primary badge-rounded" style="margin:0px 4px 2px 0px;"></span>').text(t.service_id)),c=$("<a></a>")[e(210)]({"font-size":"16px",color:e(239)}).html(t[e(235)]),o=r[e(227)](),d=t.service_name.toLowerCase()[e(252)](o);if(-1!==d){var s=t[e(235)].substring(0,d),p=t[e(235)][e(270)](d,d+o[e(255)]),f=t[e(235)].substring(d+o[e(255)]);c[e(264)](s+e(266)+p+"</span>"+f)}i[e(222)](c),i[e(243)](function(){var r,a,i,u;r=t[e(256)],a=t.category_id,u=(i=n)(242)+r+i(218)+a,$[i(212)]({type:i(248),url:u,success:function(n){var t=i;$(t(209)).val(a),$(t(209))[t(229)](t(219))}})}),a.append(i)})}}})}),$(document).ready(function(){$(document).on("click","#unique-input",function(){var n=jQuery,t=n("#unique-input"),e=n("#unique-dropdown");t.val().trim().length>0&&e.show()}),$(document).on("click",function(n){var t=jQuery,e=t(n.target);t("#unique-input");var r=t("#unique-dropdown");e.is("#unique-input")||r.hide()})})}),document.getElementById("unique-input").addEventListener("focus",function(){this.setAttribute("placeholder","")}),document.getElementById("unique-input").addEventListener("blur",function(){""===this.value&&this.setAttribute("placeholder","Search")}),$(document).ready(function(){function n(){var n=$("#unique-input").val().trim(),t=$(".input-wrapper__append");n.length>0?t.show():t.hide()}$("#unique-input").on("input",n),n(),$("body").on("click",".input-wrapper__append",function(){$("#unique-input").val(""),$(".input-wrapper__append").hide(),$("#unique-input").focus()})});
  </script>

{% include 'footer.twig' %}