{% include 'header.twig' %}
<style>.news-title{
    background: #334e6e15;
    padding:8px;
    margin-top:8px;
    border-radius:10px 10px 0px 0px;
}
.news-content{
    background: #334e6e15;
    margin-top:-8px;
    padding:5px 10px 10px;
    border-radius:0px 0px 10px 10px;
}
.news-date {
    margin-top:8px;
    font-size:12px;
    background: #334e6e35;
    padding:0px 8px 0px 8px;
    border-radius:6px;
    width:max-content;
}
.headsir{
    font-weight:900;
    font-size:20px;
    margin-top:-5px;
    margin-bottom:10px;
}

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


.ssw{max-height: 450px;overflow-y: auto;}.body .summary-card{border-radius: 22px;background: rgb(255 255 255 / 35%);border: 1.5px solid rgb(255 255 255 / 32%) !important;backdrop-filter: none;}</style>
<div class="wrapper-content">
<div class="wrapper-content__header">
  </div>
<div class="wrapper-content__body">
  <!-- Main variables *content* -->
<div 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">
<div class="col-lg-12 mt-3 mb- mb-lg-0">
<div class="component_form_group component_card component_radio_button">
<div class="">
<div class="component_button_forms">


</div>
</form>
</div>
</div></div>
</div>
</div></div>
</div>
   <div id="block_93">


<div class="totals mt-2">
<div class="container-fluid">
<div class="row align-items-stretch justify-content-center">
<div class="col-lg-3 col-md-6 col-sm-12 mb-2">
<div {% if settings ["summary_card_background_color"] == "fixed_colour" %} style="background: #58287F;" {% endif %} class="card h-100 summary-card">
<div class="totals-block__card">
<div class="totals-block__card-left">


<div class="totals-block__count">
<h2 class="totals-block__count-value style-text-primary">
{{ user["username"] }}
</h2>
</div>
<div class="totals-block__card-name">
<span>Welcome To {{site["site_name"]}}</span>
</div>
</div>
<div class="totals-block__card-right">
<div class="totals-block__icon-preview style-border-radius-default style-text-primary">
<i class="fad fa-user"></i>
</div>

</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 mb-2">
<div  {% if settings ["summary_card_background_color"] == "fixed_colour" %}  style="background: #1F8A70;" {% endif %}  class="card h-100 summary-card">
<div class="totals-block__card">
<div class="totals-block__card-left">


<div class="totals-block__count">
<h2 class="totals-block__count-value style-text-primary">
{{ user["spent"]}}
</h2>
</div>
<div class="totals-block__card-name">
<p>
Total Spent
</p>
</div>
</div>
<div class="totals-block__card-right">
<div class="totals-block__icon-preview  style-border-radius-default style-text-primary">
<i class="fad fa-dollar-sign"></i>
</div>

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




<div class="col-lg-3 col-md-6 col-sm-12 mb-2">
<div  {% if settings ["summary_card_background_color"] == "fixed_colour" %}  style="background: #FF7000;" {% endif %}  class="card h-100 summary-card">
<div class="totals-block__card">
<div class="totals-block__card-left">


<div class="totals-block__count">
<h2 class="totals-block__count-value style-text-primary">
{{ totalorders }}
</h2>
</div>
<div class="totals-block__card-name">
<p>
Total Orders
</p>
</div>
</div>
<div class="totals-block__card-right">
<div class="totals-block__icon-preview style-border-radius-default style-text-primary">
<i class="fas fa-bags-shopping"></i>
</div>

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



<div class="col-lg-3 col-md-6 col-sm-12 mb-2">
<div  {% if settings ["summary_card_background_color"] == "fixed_colour" %}  style="background: #850000;" {% endif %}  class="card h-100 summary-card">
<div class="totals-block__card">


<div class="totals-block__card-left">



<div class="totals-block__count">
<h2 class="totals-block__count-value style-text-primary">
{{ user["balance"]}} </h2>

</div>

<div class="totals-block__card-name">
<p>
Total Balance
</p>
</div>


</div>



<div class="totals-block__card-right">

<div class="totals-block__icon-preview  style-border-radius-default style-text-primary" style="
">
<i class="fas fa-box-usd"></i>
</div>







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










<svg style="transform:rotateX(180deg);margin-bottom:-8px;margin-top:4px;" width="100%" height="40px" viewBox="50 0 1180 140" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
              <g fill="#ffffff">
                <path d="M0 47.44L170 0l626.48 94.89L1110 87.11l170-39.67V140H0V47.44z" fill-opacity=".5"/>
                <path d="M0 90.72l140-28.28 315.52 24.14L796.48 65.8 1140 104.89l140-14.17V140H0V90.72z"/>
              </g>
            </svg>


<div id="block_44">
  <div class="new_order-block ">
<div class="bg"></div>
<div class="divider-top"></div>
<div class="divider-bottom"></div>
<div class="container-fluid">
  <div class="row">

  <div class="col-lg-7 mb-3">
<div class="component_form_group component_card component_radio_button">
<div class="card ">
    {% 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>

{{ currency['symbol'] }}{{ data['order']['price'] }}
 <br>
          <strong> {{ lang["neworder.success.balance"] }}: </strong>{{ data['order']['balance'] }} <br>
      </div>
      <a href="/"><span class="badge badge-primary">Close</span></a>
    {% 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 %}

    {% 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 %} 
<form method="post" action="">
<div class="component_button_forms">
<div class="form-group">
<label for="orderformorderform-service" 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">{{ lang["neworder.charge"] }}</label>
<input type="text" class="form-control" id="charge" readonly>
</div>
<input type="hidden" name="csrf_token" value="{{ csrfToken }}">
<button type="submit" class="btn btn-block btn-primary">{{ lang["neworder.button"] }}</button>
</form>

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

<div class="col-lg-5">
  <div class="component_content_card component_content_button component_content_headers">
{% if news %}
    <div class="card"style="max-height: 550px;">
      <div class="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="news-date"><i class="fad fa-calendar-alt mr-1" style="--fa-secondary-opacity: 0.65;"></i>{{ new['news_date'] }}</p>
          <h4 class="news-title">
            <span class="icon-container">
              <img width="30" class="news-icon-inline" src="{{ new['news_icon'] }}" alt="News Icon">
            </span>
            {{ new['news_title'] }}
          </h4>
          <div class="news-content">{{ new['news_content'] }}</div>
        </div>
      </div>
      {% endfor %}
      </div>
  </div>
  </div></div>{% endif%}
								</div>
							</div>
						</div>
					</div>	</div>
							
						

<div id="block_93"style="margin-top:0px">
    <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">
<div class="col-lg-7 mb-3 mb-lg-0">
<div class="component_form_group component_card component_radio_button">
<div class="">
<div class="component_button_forms">
</div>
</form>
</div>
</div>
</div>
<div class="col-lg-5 mb-3">
<div class="component_content_card component_content_button">

<div class="new-order__content-image">
</div>
<div class="new-order__content-title">
<div class="position-relative">
<div>
{% if contentText2 %}
<div class="card">
{{ contentText2 }}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>








</div>
<div class="wrapper-content__footer">
   </div>
  </div>


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

{% include 'footer.twig' %}