{% include 'header.twig' %}


 <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.0/sweetalert.min.js"></script>
 <link rel="stylesheet" type="text/css" href="https://cdn.mypanel.link/global/yqj4us9o9zmulbxw.css">
      <link rel="stylesheet" type="text/css" href="https://cdn.mypanel.link/hu99jz/xs0ob2g5hczrt3tb.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css" />
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.1.9/css/unicons.css"
    />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">

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

  <div id="block_180">
  <div class="totals ">
    <div class="bg"></div>
    <div class="divider-top"></div>
    <div class="divider-bottom"></div>
    <div class="container-fluid">
      <div class="row align-items-start justify-content-start">
                              <div class="col-lg-3 col-md-6 col-sm-12 mb-2 mt-2">
              <div class="card h-100" style="
                    background: rgba(5, 14, 51, 1);                                  border-color: rgba(80, 81, 142, 0.23);                                  padding-top: 11px;                                  padding-bottom: 11px;                                                                                                  border-top-left-radius: 34px;                                  border-bottom-left-radius: 34px;                                  border-top-right-radius: 34px;                                  border-bottom-right-radius: 34px;                                  border-left-width: 2px;                                  border-right-width: 2px;                                  border-bottom-width: 2px;                                  border-top-width: 2px;                                  box-shadow: 0px 8px 32px 0 #000000;                                  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="
                           background: rgba(15, 15, 53, 1);                                                                                                                                                                                               ">
                        <span class="totals-block__icon style-text-primary fas fa-user-alt" style="
                            font-size: 38px;
                            transform: rotate(0deg);
                            color: ;
                            text-shadow: none;
                            border-radius: 0px;
                            "></span>
                      </div>
                    </div>
                                    <div class="totals-block__card-right">
                                          <style>
                        #block_180 .totals-block__count a {
                          color: #ffffff !important;
                        }
                      </style>
                                        <div class="totals-block__count">
                      <h2 class="totals-block__count-value style-text-primary" style=" color: #ffffff; ">
                                                                               {{ user["username"]  }}
                                                                                                </h2>
                    </div>
                    <div class="totals-block__card-name">
                                              <p>Welcome to panel!</p>
                                          </div>
                  </div>
                </div>
              </div>
            </div>
                                        <div class="col-lg-3 col-md-6 col-sm-12 mb-2 mt-2">
              <div class="card h-100" style="
                    background: rgba(5, 14, 51, 1);                                  border-color: rgba(80, 81, 142, 0.23);                                  padding-top: 11px;                                  padding-bottom: 11px;                                                                                                  border-top-left-radius: 34px;                                  border-bottom-left-radius: 34px;                                  border-top-right-radius: 34px;                                  border-bottom-right-radius: 34px;                                  border-left-width: 2px;                                  border-right-width: 2px;                                  border-bottom-width: 2px;                                  border-top-width: 2px;                                  box-shadow: 0px 8px 32px 0 #000000;                                  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="
                           background: rgba(15, 15, 53, 1);                                                                                                                                                                                               ">
                        <span class="totals-block__icon style-text-primary far fa-clipboard-list-check" style="
                            font-size: 38px;
                            transform: rotate(0deg);
                            color: ;
                            text-shadow: none;
                            border-radius: 0px;
                            "></span>
                      </div>
                    </div>
                                    <div class="totals-block__card-right">
                                          <style>
                        #block_180 .totals-block__count a {
                          color: #ffffff !important;
                        }
                      </style>
                                        <div class="totals-block__count">
                      <h2 class="totals-block__count-value style-text-primary" style=" color: #ffffff; ">
                                                                              {{ user["balance"] }}
                                                                                                </h2>
                    </div>
                    <div class="totals-block__card-name">
                                              <p>Account balance</p>
                                          </div>
                  </div>
                </div>
              </div>
            </div>
                                        <div class="col-lg-3 col-md-6 col-sm-12 mb-2 mt-2">
              <div class="card h-100" style="
                    background: rgba(5, 14, 51, 1);                                  border-color: rgba(80, 81, 142, 0.23);                                  padding-top: 11px;                                  padding-bottom: 11px;                                                                                                  border-top-left-radius: 34px;                                  border-bottom-left-radius: 34px;                                  border-top-right-radius: 34px;                                  border-bottom-right-radius: 34px;                                  border-left-width: 2px;                                  border-right-width: 2px;                                  border-bottom-width: 2px;                                  border-top-width: 2px;                                  box-shadow: 0px 8px 32px 0 #000000;                                  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="
                           background: rgba(15, 15, 53, 1);                                                                                                                                                                                               ">
                        <span class="totals-block__icon style-text-primary far fa-clipboard-list" style="
                            font-size: 38px;
                            transform: rotate(0deg);
                            color: ;
                            text-shadow: none;
                            border-radius: 0px;
                            "></span>
                      </div>
                    </div>
                                    <div class="totals-block__card-right">
                                          <style>
                        #block_180 .totals-block__count a {
                          color: #ffffff !important;
                        }
                      </style>
                                        <div class="totals-block__count">
                      <h2 class="totals-block__count-value style-text-primary" style=" color: #ffffff; ">
                                                                             {{ user["spent"] }}
                                                                                                </h2>
                    </div>
                    <div class="totals-block__card-name">
                                              <p>Spent balance</p>
                                          </div>
                  </div>
                </div>
              </div>
            </div>
                                                          <div class="col-lg-3 col-md-6 col-sm-12 mb-2 mt-2">
              <div class="card h-100" style="
                    background: rgba(5, 14, 51, 1);                                  border-color: rgba(80, 81, 142, 0.23);                                  padding-top: 11px;                                  padding-bottom: 11px;                                                                                                  border-top-left-radius: 34px;                                  border-bottom-left-radius: 34px;                                  border-top-right-radius: 34px;                                  border-bottom-right-radius: 34px;                                  border-left-width: 2px;                                  border-right-width: 2px;                                  border-bottom-width: 2px;                                  border-top-width: 2px;                                  box-shadow: 0px 8px 32px 0 #000000;                                  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="
                           background: rgba(15, 15, 53, 1);                                                                                                                                                                                               ">
                        <span class="totals-block__icon style-text-primary fal fa-envelope" style="
                            font-size: 38px;
                            transform: rotate(0deg);
                            color: ;
                            text-shadow: none;
                            border-radius: 0px;
                            "></span>
                      </div>
                    </div>
                                    <div class="totals-block__card-right">
                                          <style>
                        #block_180 .totals-block__count a {
                          color: #ffffff !important;
                        }
                      </style>
                                        <div class="totals-block__count">
                      <h2 class="totals-block__count-value style-text-primary" style=" color: #ffffff; ">
                                                                         {{totalorders}}
                                              </h2>
                    </div>
                    <div class="totals-block__card-name">
                                              <p>Total Orders</p>
                                          </div>
                  </div>
                </div>
              </div>
            </div>
                                          </div>
    </div>
  </div>
</div>
 
 

<div id="block_8">
  <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="card ">
{% if error %}
      <div class="alert alert-dismissible alert-danger">
{{ errorText }}
      </div>
    {% endif %}

    {% if data["order"]["success"] == 1 %}
<div class="order-success-card" id="order-success-card">
<center>
<img src="https://www.linkpicture.com/q/404-tick.png" alt="checkmark"></center>
<h2>Your order has been placed.</h2>
<div class="order-details">
<p><span class="service-name">
<b>Service :</b><br/>{{data['order']['service']}}</span></p>
<p><span class="link"><b>Link :</b><br /><a href="{{data['order']['link']}}">{{data['order']['link']}}</a></span></p>
<p><span class="paid-amount"><b>You paid :</b>&nbsp;&nbsp;<span style="color:#7743DB">{{ data['order']['price'] }}</span></span><span class="quantity"><b>Quantity :</b>&nbsp;&nbsp;<span style="color:#E0144C">{{data['order']['quantity']}}</span></span></p>
</div>
<div class="user-details">
<p>Order ID :&nbsp;&nbsp;{{data['order']['id']}}</p>
<p>Remaining balance :&nbsp;&nbsp;{{ data['order']['balance'] }}</p>
</div>
<button type="button" onclick="closeOrderReceiptCard()">OK</button>
</div>


</div>
<script>

setTimeout(function(){
var el = $("#order-success-card");
el.addClass("order-success-card-active");
},1000);
function closeOrderReceiptCard(){

var el = document.getElementById("order-success-card");

el.classList.remove("order-success-card-active");
}
</script>

    {% 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">
    <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>
  





  
  <button type="submit" class="btn btn-block btn-primary">{{ lang["neworder.button"] }}</button>
</form>
</div>
   </div>
</div>
    </div>


 
       
       
       
       
<div class="col-lg-5">
			 <div class="component_content_card component_content_button component_content_headers">
		  	<br>
       
      										<table class="table">
												<thead>
													<tr>
 
														<th>Title</th>
														<th class="width-service-name">Content</th>

														<th class="nowrap">Date</th>
													 


													</tr>
												</thead>
												<tbody>
{% for new in news %}
<tr>
<td> <img width="30" class="mr-1" src="/img/icons/{{ new['news_icon'] }}.png">{{ new['news_title'] }}</td>
<td>

{{ new['news_content'] }}
</td>
<td>{{ new['news_date'] }}</td>

</tr>
{% endfor %}


</tbody>
											</table>
										</div>

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


{% if contentText2 %}
{{ contentText2 }}
{% endif %}

{% include 'footer.twig' %}