{% damoe 'header.twig' %}




<!-- Main variables *content* -->
		        <div class="container" style="display: none">
            <div id="new-order-cats">
               <div class="swiper-wrapper">
                    <div><button class=" btn_cat_filter nwo-cat-btn" data-change-cat="" data-id="everything"></button></div>
                    <div><button class=" btn_cat_filter nwo-cat-btn" data-change-cat="Instagram" data-id="instagram"></button></div>
                    
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="TikTok" data-id="tiktok"></button></div>
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="Twitter" data-id="twitter"></button></div>
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="YouTube" data-id="youtube"></button></div>
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="Telegram" data-id="telegram"></button></div>
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="Facebook" data-id="facebook"></button></div>
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="Spotify" data-id="spotify"></button></div>
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="Twitch" data-id="twitch"></button></div>
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="Reddit" data-id="reddit"></button></div>
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="Snapchat" data-id="snapchat"></button></div>
                    <div><button class="btn_cat_filter nwo-cat-btn" data-change-cat="LinkedIn" data-id="linkedIn"></button></div>
                </div>
            </div>
        </div>
	<main>
        
        
          <div class="container-fluid mt-4">
			       <!--
           <div class="alert alert-warning" role="alert" style="font-size: 16px;color: #FFF;
background: #11998e;  /* fallback for old browsers */
background: -webkit-linear-gradient(to left, #38ef7d, #11998e);  /* Chrome 10-25, Safari 5.1-6 */
background: url(https://cdn.mypanel.link/j71eqe/cqhhut2dfairs2wk.jpg) fixed; /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ linear-gradient(to left, #38ef7d, #11998e)*/">
                                                                                    
<div class="dch-icon" style="font-weight: bold;">
<i style=";font-size: xx-large;margin: 8px;"> Happy Eid </i>
</div>

Hello and Happy Eid!!
<br>
On the occasion of Eid Al-Fitr, we decided to offer several services at a very reasonable price, which you can find in the offers section
<br>
Also, the bonus was made to 10% instead of 5% for each client who deposited $100 or more
  <br>
Best wishes for a happy Eid
  <br>
This offer ends on 30-04-2023
<br>


<a href="/" target="_blank"></a>
</div>  
         -->
          
			
			<div class="row">
				<div class="col-lg-7">
					<div class="card card-bg userCard h-100">
						<div class="row">
							<div class="ud-card">
								<h5>                                      Welcome
                                                                      <span class="primary-color">{{ user['username'] }}</span> 
                                  <img src="https://cdn.mypanel.link/j71eqe/zhijqu7uatcp8oo9.png">								  </h5>
								<p>
                                                                        We are here to provide you with the best services that you deserve.
                                                                    </p>
								<div class="ud-row">
									<div class="userDetails">
										<div class="ud-icon">
											<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-trending-up"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline></svg>
										</div>
										<div class="ud-text">
											<h6>{{ordersCount}}</h6>
											<span>
                                                                                                Total orders
                                                                                            </span>
										</div>
									</div>                                  
									<div class="userDetails">
										<div class="ud-icon">
											<svg height="24" viewBox="0 0 512 512" width="24" xmlns="http://www.w3.org/2000/svg"><title/><rect height="288" rx="48" ry="48" style="fill:none;stroke:#28cb69;stroke-linejoin:round;stroke-width:32px" width="416" x="48" y="144"/><path d="M411.36,144V114A50,50,0,0,0,352,64.9L88.64,109.85A50,50,0,0,0,48,159v49" style="fill:none;stroke:#28cb69;stroke-linejoin:round;stroke-width:32px"/><path d="M368,320a32,32,0,1,1,32-32A32,32,0,0,1,368,320Z" style="fill:none;stroke:#28cb69;stroke-linejoin:round;stroke-width:32px" /></svg>
										</div>
										<div class="ud-text">
											<h6> {{ currency["symbol"]  }} {{ (user["balance"]*currency["value"]) |round(2, 'floor') }}</h6>
											<span>
                                                                                               Currently Balance
                                                                                            </span>
										</div>
									</div>
									<div class="userDetails">
										<div class="ud-icon">
											<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-dollar-sign"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>
										</div>
										<div class="ud-text">
											<h6>{{ currency["symbol"]  }} {{ (user["spent"]*currency["value"]) |round(2, 'floor') }}</h6>
											<span>
                                                                                            Your Spending
                                                                                          </span>
										</div>
									</div>
								</div>
							</div>
							<img src="https://cdn.mypanel.link/j71eqe/fntxp506mj13fdo1.png" class="ud-img">
						</div>
					</div>
				</div>
				
				<div class="col-lg-5">
					<div class="card card-bg rankCard h-100">
						<div class="row">
							<div class="rc-card">
							    <p style="display: none;" id="spent">0</p>
								<span>Current rank<strong class="primary-color ps-2"><i class="ri-vip-crown-fill"></i> <span id="currentStatus"></span> </strong></span>
								<div class="progress" style="margin: 15px 0;">
									<div id="statusProgress" class="progress-bar" role="progressbar" style="width:0%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
									<span id="placePercent"></span>
								</div>
                              <div class="d-flex align-items-center">
                                <div style="margin: 10px 10px 0 0">
                              	<span class="nextRank">                                              You should spend
                                               $<span id="remain"></span>
                                                                                more for
                                               <span class="primary-color" id="nextStatus"></span>.</span>
                                </div>
								<button type="button"                                       onclick="modalOpen(`modalBronze`)"
                                       class="btn btn-primary btn-sm mt-2">See Benefits
</button>				
							</div>
                           </div>
							<img src="https://cdn.mypanel.link/j71eqe/86g9a6ydwykiy9q9.png" class="rc-img">
						</div>
					</div>
				</div>
			</div>
			
			 <div class="row">
				<div class="col-lg-7">
					 <div class="page overflow-hidden">
						<div class="page-body pb-4 pb-xl-6 mt-4">
						   <div class="card mb-2">
							  <div class="card-head d-flex neworder-card align-items-center justify-content-between">
									<div class="card-head-title">
										<div class="row align-items-center">
											<div class="col-auto">
											  <div class="card-head-icon">
												<i class="ri-wallet-3-line"></i>
											  </div>
											</div>
											<div class="col">
											  <h4>New order</h4>
											</div>
										</div>
									</div>
								<!--	<div class="search-input input-group">
										<input id="input_service" class="form-control" type="number" placeholder="Search by Service ID" autocomplete="off">
										<div class="input-group-text justify-content-end">
											<button class="d-flex align-items-center justify-content-center btn-command search" onclick="searchID();"><span class="symbol ri-search-eye-line"></span></button>
										</div>
									</div> -->
							  </div>
							  <div class="card-body pt-3 pb-3">
								<div id="error_search"></div>
										<ul class="nav cstmnav gap-2 mt-2">
                                            <li><a href="/" class="active"><i class="ri-shopping-bag-2-line"></i> New order</a></li>
                                           <!-- <li><a href="javascript:void(0)" class="btn-fav"><i class="ri-heart-fill"></i> Favorites</a></li> -->
                                            <li><a href="javascript:void(0)" class="mass-order"><i class="ri-shopping-basket-2-line"></i> Mass order</a></li>
                                        </ul>  
								
								<div class="alert alert-success alert-fav hidden" style="border-radius: 15px">You have not added any services to favorites. You can add the desired service to your favourites, using the <a href="/services">Services List.</a></div>
                                
							<div class="newOrderSide">	
								
								<form  action="/" method="post" id="order-form">
                                                                                  {% if error %}
                            <div class="alert alert-dismissible alert-danger">
                                {{ errorText }}
                            </div>
                            {% endif %}

                            {% if data["order"]["success"] == 1 %}
                            <div class="alert alert-success alert-dismissible" role="alert">
                                <h4>{{lang['neworder.message.success']}}</h4>
                                {{lang['neworder.success.id']}}: {{ data['order']['id'] }}<br>
                                {{lang['neworder.success.service']}}: {{ data['order']['service'] }}
                                <br>
                                {{lang['neworder.success.link']}}: {{ data['order']['link'] }}<br>
                                {{lang['neworder.success.quantity']}}: {{ data['order']['quantity'] }}<br>
                                
                                
                                
                                
                                Spent : {{ currency["symbol"]  }} {{ (data['order']['price']*currency["value"]) |round(2, 'floor') }}<br>
                                 {{ lang["neworder.success.balance"] }}: {{ currency["symbol"]  }} {{ (user["balance"]*currency["value"]) |round(2, 'floor') }} <br>
                            </div>
                            {%endif%}

                            {% if data["order"]["success"] == 2 %}
                            <div class="alert alert-success alert-dismissible" role="alert">
                                <h4>{{lang['neworder.message.success']}}</h4>
                                {{lang['neworder.success.id']}}: {{ data['order']['id'] }}<br>
                                {{lang['neworder.success.service']}}: {{ data['order']['service'] }}
                                <br>
                                {{lang['neworder.success.username']}}: {{ data['order']['link'] }}<br>
                                {{lang['neworder.success.quantity']}}:
                                {% if data['order']['min'] == data['order']['max'] %}
                                {{ data['order']['max'] }}
                                {% else %}
                                {{ data['order']['min'] }} - {{ data['order']['max'] }}
                                {% endif %}
                                <br>
                                {{lang['neworder.success.posts']}}:
                                {% if 0 == data['order']['posts'] %}
                                âˆž
                                {% else %}
                                {{ data['order']['posts'] }}
                                {% endif %}
                                <br>
                                {{lang['neworder.success.delay']}}:
                                {{ data['order']['delay'] }}
                                <br>
                            </div>
                            {% endif %}			  
									                                  
                                  
          <div class="form-group nPlatform">
            	<label for="orderform-platform" class="control-label">Platform</label>
                   <select
                           class="form-control"
                           id="orderform-platform"
                           name="OrderForm[platform]"
                           data-select="true"
                           data-select-search="true"
                  data-select-search-placeholder="Search"
                  			              >
               <option value="" data-icon="<i class='ri-list-unordered'></i>">All Platforms</option>
               <option value="Instagram" data-icon="<i class='fab fa-instagram'></i>">Instagram</option>
               <option value="TikTok" data-icon="<i class='fab fa-tiktok'></i>">TikTok</option>
               <option value="Twitter" data-icon="<i class='fab fa-twitter'></i>">Twitter</option>
               <option value="Youtube" data-icon="<i class='fab fa-youtube'></i>">Youtube</option>
               <option value="Telegram" data-icon="<i class='fab fa-telegram'></i>">Telegram</option>
                <option value="Facebook" data-icon="<i class='fab fa-facebook-f'></i>">Facebook</option>
                <option value="Spotify" data-icon="<i class='fab fa-spotify'></i>">Spotify</option>
                <option value="Twitch" data-icon="<i class='fab fa-twitch'></i>">Twitch</option>
                <option value="Reddit" data-icon="<i class='fab fa-reddit'></i>">Reddit</option>
                <option value="Snapchat" data-icon="<i class='fab fa-snapchat'></i>">Snapchat</option>
                <option value="LinkedIn" data-icon="<i class='fab fa-linkedin'></i>">LinkedIn</option>
           </select>
          </div>  					                                                                                <div class="form-group mb-4 nCategory">
											<label for="orderform-category" class="control-label">
											Category
											</label>
                                   
                                   
              <select class="form-control" id="neworder_category" name="categories" style="display: none">
                  {% for category in categories %}
                  <option {% if category['category_id'] == data["categories"] %} selected {% endif %} value="{{ category['category_id'] }}" ><i class="{{ category["icon"] }}"></i>{{ category["category_name"] }}</option>
                  {% endfor %}
                </select>
                
                 <div class="dropdown">
                  <button class="form-control text-left" type="button" id="dropdownMenu3" data-toggle="dropdown" aria-haspopup="false" aria-expanded="false">
                    <span id="categoryTitle"></span>
                    <i class="fas fa-chevron-down float-right" aria-hidden="true"></i>
                  </button>
                  <div class="dropdown-menu" aria-labelledby="dropdownMenu2" id="category-drop">
                  </div>
                </div>
            </div>
                       
                    <!-- form-group end -->
                                <div class="form-group mb-4 nServices">
											<label for="orderform-services" class="control-label">
											Service ID
											</label>
               <select class="form-control" id="neworder_services" name="services" style="display: none;"> </select>
               	<div class="dropdown">
												<button class="form-control text-left" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="false" aria-expanded="false">
													<span id="serviceTitle"></span>
													<i class="fa fa-caret-down float-right" aria-hidden="true"></i>
												</button>
												<div class="dropdown-menu" aria-labelledby="dropdownMenu2" id="orders-drop">

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

          <div id="neworder_fields">...</div> 
                
            <div class="form-group mb-4">
                                          <label>
                                          Charge
                                          </label>
                                          <div class="input-group">
                                             <input class="form-control" type="text" id="charge" value="" readonly>
                                          </div>
                                    </div>	



                     {% if neworderTerms %}
										  <div class="checkbox">
											<label>
											  <input type="checkbox" name="neworder_check">{{ lang['neworder.recheck'] }}
											</label>
										  </div>
										  <br>
										{% endif %}
         
         
                                          <div class="row">
                                    <div class="col-lg-12 col-12"> 
										<button class="btn btn-primary btn-100 mb-2">Order Submit</button>
                                     </div> 

                                   <!-- <div class="col-lg-4 col-12">
                                    	<button type="button" class="btn btn-secondary btn-100 mb-2 sepetbtn" onclick="orderSepet()"><i class="ri-shopping-cart-2-line pr-2"></i>Add cart</button>
                                    </div>   -->
                                  </div>
								</form>
							</div>
							
								 <div class="massOrderSide hidden">
										<form  method="post" action="/massorder">
											<div class="form-group">
												<label for="links" class="control-label">One order per line in format</label>
												<textarea class="form-control" name="MassOrderForm[orders]" rows="15" id="links" placeholder="service_id | link | quantity"></textarea>
											</div>
										
											<button type="submit" class="btn btn-primary btn-100">Submit</button>
										</form>
								 </div>
							   
							  </div>
						   </div>
						</div>
					 </div>
				</div>
				<div class="col-lg-5">
					 <div class="page overflow-hidden">
						<div class="page-body pb-4 pb-xl-6 mt-4">
						   <div class="card mb-2">
							  <div class="card-head d-flex align-items-center p-4">
									<span class="btn btn-primary btn-sm" id="s_id"></span>
									<h4 class="px-3"><div id="s_name"></div></h4>
							  </div>
							  <div class="card-body">
								<div class="row row-cols-md-2">

								<!--	<div class="col-6 mb-4">
									  <label>Average time</label>
									  <div class="desc-list">
										<div class="icon">
										  <i class="ri-timer-flash-line"></i>
										</div>
										<div class="text"><span id="s_time"></span></div>
									  </div>
									</div> 
									<div class="col-6 mb-4">
									  <div class="form-label">Quality</div>
									  <div class="desc-list">
										<div class="icon">
										  <i class="ri-star-line"></i>
										</div>
										<div class="text"><span data-id="serviceQuality"></span></div>
									  </div>
									</div>
									<div class="col-6 mb-4">
									  <div class="form-label">Speed</div>
									  <div class="desc-list">
										<div class="icon">
										  <i class="ri-shield-flash-line"></i>
										</div>
										<div class="text"><span data-id="serviceSpeed"></span></div>
									  </div>
									</div>
									<div class="col-6 mb-4">
									  <div class="form-label">Guarantee</div>
									  <div class="desc-list">
										<div class="icon">
										  <i class="ri-check-line"></i>
										</div>
										<div class="text"><span data-id="serviceRefill"></span></div>
									  </div>
									</div>
									<div class="col-6 mb-4">
									  <div class="form-label">Link</div>
									  <div class="desc-list">
										<div class="icon">
										  <i class="ri-links-fill"></i>
										</div>
										<div class="text"><span data-id="serviceLink"></span></div>
									  </div>
									</div>	
									<div class="col-6 mb-4">
									  <div>Min/Max</div>
									  <div class="desc-list">
										<div class="icon">
										  <i class="ri-pushpin-line"></i>
										</div>
										<div class="text"><span data-id="serviceMinMax"></span></div>
									  </div>
									</div> -->
								  </div>
								<div>
									<label>Description</label>
									<div class="desc-list description" style="height: auto; padding: 10px; font-size: 13px">
									  <div class="text" style="line-height: 24px">
											<span id="description_new">
											
											</span>
									  </div>
									</div>
								  </div>
							  </div>
						   </div>
						</div>
					 </div>
				</div>
			 </div>
         </div>
      </main>
      
   <!--   <div class="modal-wrapper modal-rank" id="modalBronze">
	<div class="mbo-wrapper">
		<div class="modal-box">
			<div class="m-header">
				<div class="service-modal-id" style="background: #ad8a56">
					<span id="serviceModalID">Bronze</span>
				</div>						
				<button class="m-close"><i class="ri-close-line"></i></button>
			</div>
			<div class="m-body">
				<div id="serviceModalText">
					<ul class="rank-features">
						<li class="rf-item alert alert-success">24/7 Support System</li>
						<li class="rf-item alert alert-danger">One month free chaild panel</li>
						<li class="rf-item alert alert-danger">5% discount</li>
						<li class="rf-item alert alert-danger">VIP call support</li>
						<li class="rf-item alert alert-danger">Priority processing of orders
</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>

 <div class="modal-wrapper modal-rank" id="modalSilver">
	<div class="mbo-wrapper">
		<div class="modal-box">
			<div class="m-header">
				<div class="service-modal-id" style="background: #ad8a56">
					<span id="serviceModalID">Silver</span>
				</div>						
				<button class="m-close"><i class="ri-close-line"></i></button>
			</div>
			<div class="m-body">
				<div id="serviceModalText">
					<ul class="rank-features">
						<li class="rf-item alert alert-success">24/7 Support System</li>
						<li class="rf-item alert alert-danger">Request a New Service</li>
						<li class="rf-item alert alert-danger">Discount on Services</li>
						<li class="rf-item alert alert-danger">VIP call support</li>
						<li class="rf-item alert alert-danger">API Discounts</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="modal-wrapper modal-rank" id="modalGold">
	<div class="mbo-wrapper">
		<div class="modal-box">
			<div class="m-header">
				<div class="service-modal-id" style="background: #c9b037">
					<span id="serviceModalID">Gold</span>
				</div>						
				<button class="m-close"><i class="ri-close-line"></i></button>
			</div>
			<div class="m-body">
				<div id="serviceModalText">
					<ul class="rank-features">
						<li class="rf-item alert alert-success">24/7 Support System</li>
						<li class="rf-item alert alert-danger">Request a New Service</li>
						<li class="rf-item alert alert-danger">Discount on Services</li>
						<li class="rf-item alert alert-danger">VIP call support</li>
						<li class="rf-item alert alert-danger">API Discounts</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="modal-wrapper modal-rank" id="modalDia">
	<div class="mbo-wrapper">
		<div class="modal-box">
			<div class="m-header">
				<div class="service-modal-id" style="background: #b9f2ff">
					<span id="serviceModalID">Diamond</span>
				</div>						
				<button class="m-close"><i class="ri-close-line"></i></button>
			</div>
			<div class="m-body">
				<div id="serviceModalText">
					<ul class="rank-features">
						<li class="rf-item alert alert-success">24/7 Support System</li>
						<li class="rf-item alert alert-danger">Request a New Service</li>
						<li class="rf-item alert alert-danger">Discount on Services</li>
						<li class="rf-item alert alert-danger">VIP call support</li>
						<li class="rf-item alert alert-danger">API Discounts</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="modal-wrapper modal-rank" id="modalPlat">
	<div class="mbo-wrapper">
		<div class="modal-box">
			<div class="m-header">
				<div class="service-modal-id" style="background: #b4b4b4">
					<span id="serviceModalID">Platinium</span>
				</div>						
				<button class="m-close"><i class="ri-close-line"></i></button>
			</div>
			<div class="m-body">
				<div id="serviceModalText">
					<ul class="rank-features">
						<li class="rf-item alert alert-success">24/7 Support System</li>
						<li class="rf-item alert alert-danger">Request a New Service</li>
						<li class="rf-item alert alert-danger">Discount on Services</li>
						<li class="rf-item alert alert-danger">VIP call support</li>
						<li class="rf-item alert alert-danger">API Discounts</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div> -->


		


      
      <div class="mobile-navbar">
        <div class="mobile-navbar-content">
            <a href="/" class="mnc-item">
                <div class="mnc-item-icon">
                    <i class="far fa-box-heart"></i>
                </div>
                <div class="mnc-item-text">New order</div>
            </a>
            <a href="/addfunds" class="mnc-item">
                <div class="mnc-item-icon">
                    <i class="ri-exchange-dollar-line"></i>
                </div>
                <div class="mnc-item-text">Add funds</div>
            </a>
            <a href="/tickets" class="mnc-item">
                <div class="mnc-item-icon">
                    <i class="ri-customer-service-2-line"></i>
                </div>
                <div class="mnc-item-text">Tickets</div>
            </a>
            <a href="/services" class="mnc-item">
                <div class="mnc-item-icon">
                    <i class="ri-list-check-2"></i>
                </div>
                <div class="mnc-item-text">Services</div>
            </a>
        </div>
    </div>
  
       <div class="bs-toast">
         <div class="bs-toast-content">
            <div class="toast-text">Copy to clipboard</div>
         </div>
      </div>

      <div class="overlay"></div>

      
      
      
      
      
      
{% damoe 'footer.twig' %}

<script>
    /*
    $(document).on('change','#neworder_category',function(){

           $('#neworder_fields').hide();

           while (1){
               if($('#description')){
                   $('#description').attr('style','display:none');
                   $('#neworder_fields').show();
                   $('#description_new').html($('#service_description').html());
                   console.log('x');
                   break;
               }else{
                   console.log('y');
                   continue;
               }
           }

            document.getElementById('description').addEventListener()

        })
        */

    $(document).on('DOMSubtreeModified','#neworder_fields',function(){
        $('#description').hide();
        $('#description_new').html($('#service_description').html());
    })
  /*  $(document).on('DOMSubtreeModified','#order_link',function(){
        console.log('x');
       // $('#order_link').hide();
        //$('#order_link').html('<div class="fg"><div class="fg-icon"><i class="far fa-link"></i></div><input class="fg-control" name="OrderForm[link]" value="" type="text" id="field-orderform-fields-link"></div></div></div>');
    }) */
    

    $(document).on('DOMSubtreeModified','#neworder_services',function(){
        $('#s_name').html($('#neworder_services').find(":selected").html());
    })

 

/*

function ikon(opt) {
var ikon = "";
if (opt.indexOf("Instagram") >= 0) {
ikon = '<img src="https://cdn.mypanel.link/si46tw/akj2dlg0893li2ic.png" alt="" class="img-responsive btn-group-vertical" style="max-width: calc(1em + 10px); max-height: calc(1em + 10px); margin-right: 10px;">';
  
} else if (opt.indexOf("Facebook") >= 0) {
ikon = '<img src="https://cdn.mypanel.link/si46tw/ni21xuu3n4a6r0if.png" alt="" class="img-responsive btn-group-vertical" style="max-width: calc(1em + 10px); max-height: calc(1em + 10px); margin-right: 10px;">';
  
} else if (opt.indexOf("YouTube") >= 0) {
ikon = '<img src="https://cdn.mypanel.link/si46tw/3hxfpcmr6odceun7.png" alt="" [ Refill Guarantee ]" class="img-responsive btn-group-vertical" style="max-width: calc(1em + 10px); max-height: calc(1em + 10px); margin-right: 10px;">';
  
} else if (opt.indexOf("Twitter") >= 0) {
ikon = '<img src="https://cdn.mypanel.link/si46tw/u658e5mcklnydog5.png" alt="" class="img-responsive btn-group-vertical" style="max-width: calc(1em + 10px); max-height: calc(1em + 10px); margin-right: 10px;">';
    
} else if (opt.indexOf("Telegram") >= 0) {
ikon = '<img src="https://cdn.mypanel.link/si46tw/rhacs5djntmcr17b.png" alt="" class="img-responsive btn-group-vertical" style="max-width: calc(1em + 10px); max-height: calc(1em + 10px); margin-right: 10px;">';
  
} else if (opt.indexOf("Tik") >= 0) {
ikon = '<img src="https://cdn.mypanel.link/si46tw/04u3rorjptffqax9.png" alt="" class="img-responsive btn-group-vertical" style="max-width: calc(1em + 10px); max-height: calc(1em + 10px); margin-right: 10px;">';
  
} else {
ikon = '<img src="/assets/smmspot/assets/images/icons8-circled-z-24.png" alt="" class="img-responsive btn-group-vertical" style="max-width: calc(1em + 10px); max-height: calc(1em + 10px); margin-right: 10px;">';
}
return ikon;
}
 */
  
  
  var categories = {{categories|json_encode()}};
  
  
  
  
setTimeout(function () {
                $('#neworder_services').trigger('change');
                $('.btn_cat_filter').on('click', function() {
                  
                    category = $(this).data('id');
                    
                     var category_2 = null;
                    if(category == 'instagram'){
                            category_2 = "انستغرام";
                    }
                    if(category == 'facebook'){
                            category_2 = "فايسبوك";
                    }
                    if(category == 'youtube'){
                            category_2 = "يوتيوب";
                    }
                    if(category == 'twitter'){
                            category_2 = "تويتر";
                    }
                    if(category == 'tiktok'){
                            category_2 = "تيك توك";
                    }
                    if(category == 'telegram'){
                            category_2 = "تلغرام";
                    }
                    
                    
                    $('#neworder_category').html("");
                    categories.forEach(element => {
                        if (category == "everything") {
                            $('#neworder_category').append("<option value='" + element.category_id + "'>" + element.category_name + "</option>");
                        } else if (category == "other") {
                            if (!element.category_name.toLowerCase().damoes("instagram") &&
                                !element.category_name.toLowerCase().damoes("facebook") &&
                                !element.category_name.toLowerCase().damoes("youtube") &&
                                !element.category_name.toLowerCase().damoes("twitter") &&
                                !element.category_name.toLowerCase().damoes("tiktok") &&
                                !element.category_name.toLowerCase().damoes("telegram")) {
                                $('#neworder_category').append("<option value='" + element.category_id + "'>" + element.category_name + "</option>");
                            }
                        } else if (element.category_name.toLowerCase().damoes(category) || element.category_name.toLowerCase().damoes(category_2)) {
                            $('#neworder_category').append("<option value='" + element.category_id + "'>" + element.category_name + "</option>");
                        }
                    });
                    $('#neworder_category').trigger('change');
                    setTimeout(function(){
                        $(".smmspot-sb-dd-item").each(function() {
                            var ico = ikon($(this).text());
                            $(this).html(ico + $(this).text() );
                            console.log($(this).text());
                        });
                    }, 500);
                    setTimeout(function(){
                        $(".smmspot-sb-selected").each(function() {
                            var ico = ikon($(this).text());
                            $(this).html(ico + $(this).text() );
                            console.log($(this).text());
                        });
                    }, 500);
                });
            
        }, 400);
        
</script>

<!-- <script>
    function updateDetail(e) {
        var r = $("#neworder_services").find(":selected").attr("data-array"),
            n = serviceArray.services[r].type,
            a = serviceArray.services[r].max,
            i = serviceArray.services[r].min,
            t = serviceArray.services[r].link_type,
            l = serviceArray.services[r].dripfeed;
        t = 1 == t ? "link_url" : "link_username";
        updateDescription(e);
        updateDescription2(e),
            1 == n
                ? ($("#order_link > label").text(generalList.label_list[t]),
                    $("#order_link").removeClass("hidden"),
                    $("#order_quantity").removeClass("hidden"),
                    $(".min-max")
                        .removeClass("hidden")
                        .text("Min: " + i + " Max:" + a),
                    $("#neworder_quantity").attr("disabled", !1))
                : 2 == n
                ? ($("#order_link > label").text(generalList.label_list[t]), $("#order_link").removeClass("hidden"))
                : 3 == n
                    ? ($("#order_link > label").text(generalList.label_list[t]),
                        $("#order_link").removeClass("hidden"),
                        $("#order_quantity").removeClass("hidden"),
                        $("#order_comment").removeClass("hidden"),
                        $("#neworder_quantity").attr("disabled", !0))
                    : 4 == n
                        ? ($("#order_link > label").text(generalList.label_list[t]), $("#order_link").removeClass("hidden"), $("#order_comment").removeClass("hidden"))
                        : 5 == n
                            ? ($("#order_link > label").text(generalList.label_list[t]),
                                $("#order_link").removeClass("hidden"),
                                $("#order_username").removeClass("hidden"),
                                $("#order_quantity").removeClass("hidden"),
                                $("#neworder_quantity").attr("disabled", !1))
                            : 11 == n || 12 == n
                                ? ($("#order_username").removeClass("hidden"),
                                    $("#order_auto").removeClass("hidden"),
                                    $("#order_min > .min-max")
                                        .removeClass("hidden")
                                        .text("Min: " + i + " Max:" + a))
                                : (14 != n && 15 != n) || $("#order_username").removeClass("hidden"),
        l && $("#dripfeed").removeClass("hidden"),
            $(".datetime")
                .datepicker({ format: "dd/mm/yyyy", language: "tr", startDate: new Date() })
                .on("change", function (e) {
                    $(".datetime").datepicker("hide");
                }),
            $("#clearExpiry").click(function () {
                $("#expiryDate").val("");
            }),
        getSession("link") && $("#field-orderform-fields-link").val(getSession("link")),
        getSession("quantity") && $("#neworder_quantity").val(getSession("quantity")),
        getSession("username") && $('[name="username"]').val(getSession("username")),
        getSession("posts") && $("#field-orderform-fields-posts").val(getSession("posts")),
        getSession("expiry") && $("#expiryDate").val(getSession("expiry")),
        getSession("min") && $('[name="min"]').val(getSession("min")),
        getSession("max") && $('[name="max"]').val(getSession("max")),
        getSession("delay") && $('[name="delay"]').val(getSession("delay")),
        getSession("comments") && $("#neworder_comment").val(getSession("comments").replace(new RegExp("<br>", "g"), "\r\n")),
            updateRate(e);
    }
</script> -->