{% include 'header.twig' %}

    
<style>
#block_236 .totals-card{}#block_236 .totals-block__card{display:flex;}#block_236 .totals-block__card-left{width:15px;flex-basis:152px;padding-right:12px;}#block_236 .totals-block__card-right{width:100%;}#block_236 .totals-rtl .totals-block__card-right{padding-left:0px;padding-right:12px;text-align:right;}#block_236 .totals-block__count{position:relative;margin-bottom:16px;}#block_236 .totals-block__count-value{font-weight:bold;position:relative;margin-bottom:0px;}#block_236 .totals-block__icon{display:flex;justify-content:center;align-items:center;box-sizing:content-box;margin-left:auto;margin-right:auto;}#block_236 .totals-block__icon-preview{display:flex;justify-content:center;align-items:center;height:100%;}#block_236 .totals-block__card-name h1{margin-bottom:0px;}#block_236 .totals-block__card-name h2{margin-bottom:0px;}#block_236 .totals-block__card-name h3{margin-bottom:0px;}#block_236 .totals-block__card-name h4{margin-bottom:0px;}#block_236 .totals-block__card-name h5{margin-bottom:0px;}#block_236 .totals-block__card-name h6{margin-bottom:0px;}

</style>
<style>
	.select2-container--default .select2-results > 
    .select2-results__options {max-height: 512px;overflow-y: auto;}
    .body .form-group .select2-results__option {border-bottom: 0px 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: 20px;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-results__option[aria-selected=true] a{color:#fff;}.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%);}

    
    
 {% if settings["site_theme_alt"] == "Red" %}
.totals-block__card-right{ background-color: #fbf1f2; }



	#service_description,
		#service_average_time {padding: 13px;border-radius: 10px;color: #393e46;box-shadow:none;background-color: #fbf1f2;}
	{% elseif settings["site_theme_alt"] == "Blue" %}
	.totals-block__card-right{ background-color: #F1F7FC; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #393e46;
			box-shadow:none;
			background-color: #F1F7FC;}
	{% elseif settings["site_theme_alt"] == "Lime" %}
	.totals-block__card-right{ background-color: #eff7f0; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #393e46;
			box-shadow:none;
			background-color: #eff7f0;}
	{% elseif settings["site_theme_alt"] == "Grapes" %}
	.totals-block__card-right{ background-color: #f3edff; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #393e46;
			box-shadow:none;
			background-color: #f3edff;}
	{% elseif settings["site_theme_alt"] == "Dark" %}
	.totals-block__card-right{ background-color: #252427; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #fff;
			box-shadow:none;
			background-color: #252427;}
	{% elseif settings["site_theme_alt"] == "Cyan" %}
	.totals-block__card-right{ background-color: #e5f9fa; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #393e46;
			box-shadow:none;
			background-color: #e5f9fa;}
	{% elseif settings["site_theme_alt"] == "Coral" %}
	.totals-block__card-right{ background-color: #fff5f4; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #393e46;
			box-shadow:none;
			background-color: #fff5f4;}
	{% elseif settings["site_theme_alt"] == "Green" %}
	.totals-block__card-right{ background-color: #e4f1ef; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #393e46;
			box-shadow:none;
			background-color: #e4f1ef;}
		{% elseif settings["site_theme_alt"] == "Grey" %}
		.totals-block__card-right{ background-color: #e2e8ee; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #393e46;
			box-shadow:none;
			background-color: #e2e8ee;}
{% elseif settings["site_theme_alt"] == "Lilac" %}
.totals-block__card-right{ background-color: #f5f2f8; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #393e46;
			box-shadow:none;
			background-color: #f5f2f8;}
{% elseif settings["site_theme_alt"] == "Orange" %}
.totals-block__card-right{ background-color: #fff4ed; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #393e46;
			box-shadow:none;
			background-color: #fff4ed;}
	{% else %}
	.totals-block__card-right{ background-color: #252427; }
		#service_description,
		#service_average_time {
			padding: 13px;
			border-radius: 12px;
			color: #fff;
			box-shadow:none;
			background-color: #252427;}
	{% endif %}
	{% if settings["site_theme_alt"] == "Red" %}svg {fill: #d83346;}{% elseif settings["site_theme_alt"] == "Blue" %}svg {fill: #1979c8;}{% elseif settings["site_theme_alt"] == "Lime" %}svg {fill: #46b649;}{% elseif settings["site_theme_alt"] == "Grapes" %}.mop{margin-top:15px;}svg {fill: #6216fb;}{% elseif settings["site_theme_alt"] == "Dark" %}svg {fill: #ff8355;}{% elseif settings["site_theme_alt"] == "Cyan" %}svg {fill: #32c7ce;}{% elseif settings["site_theme_alt"] == "Coral" %}svg {fill:#ff6b63;}{% elseif settings["site_theme_alt"] == "Green" %}svg {fill: #307c6f;}{% elseif settings["site_theme_alt"] == "Grey" %}svg {fill: #415566;}{% elseif settings["site_theme_alt"] == "Lilac" %}svg {fill: #7c96cf;}{% elseif settings["site_theme_alt"] == "Orange" %}svg {fill: #f36b15;}{% else %}svg {fill: #000;}{% endif %}
 
 
 /* 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);
    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 */
  }

  /* Service badge style */
  .badge.service_id_badge {
    margin-right: 8px; /* Gap between the badge and name */
    font-size: 12px; /* Badge text size */
  }

  /* 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;
  }
 

 
 
 
</style>

   <div class="wrapper-content">
    <div class="wrapper-content__header">
  </div>
    <div class="wrapper-content__body">

<div id="block_236">
  <div class="totals ">
    <div class="bg"></div>
    <div class="divider-top"></div>
    <div class="divider-bottom"></div>
    <div class="container">
      <div class="row align-items-stretch justify-content-start">
                              <div class="col-lg-4 col-md-6 col-sm-12 mb-2 mt-2">
              <div class="card h-100"
                   style="
                                                                                    padding-top: 24px;                                  padding-bottom: 24px;                                                                                                                                                                                                                                  border-left-width: 0px;                                  border-right-width: 0px;                                  border-bottom-width: 0px;                                  border-top-width: 0px;                                                                  border-style: solid; ">
                <div class="totals-block__card">
                                      <div class="totals-block__card-left">
                      <div
                          class="totals-block__icon-preview style-bg-primary-alpha-10 style-border-radius-default style-text-primary"
                          style="
                                                                                                                                                                                                                        ">
                        <span class="totals-block__icon style-text-primary far fa-user" style="
                            font-size: 38px;
                            transform: rotate(0deg);
                            color: ;
                            text-shadow: none;
                            border-radius: 0px;
                            "></span>
                      </div>
                    </div>
                                    <div class="totals-block__card-right">
                    <div class="totals-block__count">
                      <h2 class="totals-block__count-value style-text-primary"
                           style="">                          {{ user["username"]  }}  </h2>
                    </div>
                    <div class="totals-block__card-name">
                                              <p><span style="color: #000000"><strong style="font-weight: bold">Welcome to {{site["site_name"]}}</strong></span></p>
                                          </div>
                  </div>
                </div>
              </div>
            </div>
          
                              <div class="col-lg-4 col-md-6 col-sm-12 mb-2 mt-2">
              <div class="card h-100"
                   style="
                                                                                    padding-top: 24px;                                  padding-bottom: 24px;                                                                                                                                                                                                                                  border-left-width: 0px;                                  border-right-width: 0px;                                  border-bottom-width: 0px;                                  border-top-width: 0px;                                                                  border-style: solid; ">
                <div class="totals-block__card">
                                      <div class="totals-block__card-left">
                      <div
                          class="totals-block__icon-preview style-bg-primary-alpha-10 style-border-radius-default style-text-primary"
                          style="
                                                                                                                                                                                                                        ">
                        <span class="totals-block__icon style-text-primary fas fa-cart-arrow-down" style="
                            font-size: 38px;
                            transform: rotate(0deg);
                            color: ;
                            text-shadow: none;
                            border-radius: 0px;
                            "></span>
                      </div>
                    </div>
                                    <div class="totals-block__card-right">
                    <div class="totals-block__count">
                      <h2 class="totals-block__count-value style-text-primary"
                           style="">{{ totalorders }}</h2>
                    </div>
                    <div class="totals-block__card-name">
                                              <p><span style="color: #000000"><strong style="font-weight: bold">Orders Completed</strong></span></p>
                                          </div>
                  </div>
                </div>
              </div>
            </div>
                                                          <div class="col-lg-4 col-md-6 col-sm-12 mb-2 mt-2">
              <div class="card h-100"
                   style="
                                                                                    padding-top: 24px;                                  padding-bottom: 24px;                                                                                                                                                                                                                                  border-left-width: 0px;                                  border-right-width: 0px;                                  border-bottom-width: 0px;                                  border-top-width: 0px;                                                                  border-style: solid; ">
                <div class="totals-block__card">
                                      <div class="totals-block__card-left">
                      <div
                          class="totals-block__icon-preview style-bg-primary-alpha-10 style-border-radius-default style-text-primary"
                          style="
                                                                                                                                                                                                                        ">
                        <span class="totals-block__icon style-text-primary fad fa-search-dollar" style="
                            font-size: 38px;
                            transform: rotate(0deg);
                            color: ;
                            text-shadow: none;
                            border-radius: 0px;
                            "></span>
                      </div>
                    </div>
                                    <div class="totals-block__card-right">
                    <div class="totals-block__count">
                      <h2 class="totals-block__count-value style-text-primary"
                           style="">{{ (user["spent"]) }}  </h2>
                    </div>
                    <div class="totals-block__card-name">
                                              <p><span style="color: #000000"><strong style="font-weight: bold">Spent balance</strong></span></p>
                                          </div>
                  </div>
                </div>
              </div>
            </div>
                                                                            <div class="col-lg-4 col-md-6 col-sm-12 mb-2 mt-2">
              <div class="card h-100"
                   style="
                                                                                    padding-top: 24px;                                  padding-bottom: 24px;                                                                                                                                                                                                                                  border-left-width: 0px;                                  border-right-width: 0px;                                  border-bottom-width: 0px;                                  border-top-width: 0px;                                                                  border-style: solid; ">
                <div class="totals-block__card">
                                      <div class="totals-block__card-left">
                      <div
                          class="totals-block__icon-preview style-bg-primary-alpha-10 style-border-radius-default style-text-primary"
                          style="
                                                                                                                                                                                                                        ">
                        <span class="totals-block__icon style-text-primary fas fa-dollar-sign" style="
                            font-size: 38px;
                            transform: rotate(0deg);
                            color: ;
                            text-shadow: none;
                            border-radius: 0px;
                            "></span>
                      </div>
                    </div>
                                    <div class="totals-block__card-right">
                    <div class="totals-block__count">
                      <h2 class="totals-block__count-value style-text-primary"
                           style=""> {{ (user["balance"]) }} </h2>
                    </div>
                    <div class="totals-block__card-name">
                                              <p><span style="color: #000000"><strong style="font-weight: bold">Account balance</strong></span></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div style="padding-bottom: 2px;padding-top: 2px;" id="block_93">
    <div class="new_order-block ">
<div class="bg"></div>
<div class="divider-top"></div>
<div class="divider-bottom"></div>
<div class="container">
    <div class="row new-order-form">
<div class="col-lg-7">
   <div class="component_form_group component_card component_radio_button">
<div class="card mt-3 ">
{% if error %}
      <div class="alert alert-dismissible alert-danger">
          <button type="button" class="close" data-dismiss="alert">✕</button>
{{ errorText }}
      </div>
    {% endif %}
<br>

     {% 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-success">Close</span></a>

      </div>
      <br>
    {% 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 %}
 

     <div class="well">

	
<form method="post" action="">
    
<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>

{% if neworderTerms %}
                        <div class="checkbox">
                           <label>
                           <input type="checkbox" name="neworder_check"> {{ lang['neworder.recheck'] }}
                           </label>
                        </div>
                        {% endif %}

  <input type="hidden" name="csrf_token" value="{{ csrfToken }}">
  <button type="submit" class="btn btn-block btn-big-primary">{{ lang["neworder.button"] }}</button>
</form>
</div>
   </div>
</div>
    </div>

<div class="col-lg-5 mt-3">
  <div class="component_content_card component_content_button component_content_headers">
{% if news %}
    <div style="padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 0px;" class="card mb-3">
      <div class="style-bg-primary headsir"><i class="fal fa-newspaper mr-2"></i>Latest News</div>
      <div class="ssw">
      {% for new in news %}
      <div class="news-item">
        <div class="news-details">
          <p class="style-bg-primary news-date"><i class="fad fa-calendar-alt mr-1" style="--fa-secondary-opacity: 0.65;"></i>{{ new['news_date'] }}</p>
          <h4 id="service_description" class=" news-title"style="border-bottom-left-radius:0px;border-bottom-right-radius:0px;">
            <span class="icon-container">
              <img width="30" class="news-icon-inline" src="{{ new['news_icon'] }}" alt="News Icon">
            </span>
            {{ new['news_title'] }}
          </h4>
          <p id="service_description" class= "news-content" style="border-top-left-radius:0px;border-top-right-radius:0px;">{{ new['news_content'] }}</p>
        </div>
      </div>
      {% endfor %}
      </div>
  </div>
  </div>
{% endif%}

<div class="container">
</div>	
{% if contentText2 %}
<div class="card mt-3 mb-4">
{{ contentText2 }}
</div>
{% endif %}
														
</div></div>
</div></div>
</div>
</div></div></div>
</div></div>
</div>
</div>


<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
{% include 'footer.twig' %}