{% include 'header.twig' %}
<div class="container">
       
  <div class="row">
    <div class="col-md-4 col-md-offset-2">
        <div class="well p-19 stats">
          <div class="row">
            <div class="col-sm-12">
              <div class="media">
                          <div class="media-left">
                              <img class="media-object" src="//i.imgur.com/1uoBHJ3.png" alt="deposit-icon">
                          </div>
                          <div class="media-body">
                            <h4 class="media-heading"><h4>My Balance</h4>
                            <h2>{% if settings['site_currency'] == "TRY" %}{{ "&#8378;" }}
                {% elseif settings['site_currency'] == "USD" %} {{ "&#36;" }}
				{% elseif settings['site_currency'] == "INR" %} {{ "₹" }}
                {% else %}{{ "&#8364;" }}
                {% endif %}{{ user['balance'] }}</h2>
                          </div>
                    </div>    
            </div>
          </div>
        </div>
      </div>
        <div class="col-md-4">
        <div class="well p-19 stats">
          <div class="row">
            <div class="col-sm-12">
              <div class="media">
                          <div class="media-left">
                              <img class="media-object" src="//i.imgur.com/7GYd7DV.png" alt="deposit-icon">
                          </div>
                          <div class="media-body">
                            <h4 class="media-heading"> <h4>My Spendings </h4>
                            <h4 class="media-heading"> <h2> {% if settings['site_currency'] == "TRY" %}{{ "&#8378;" }}
                {% elseif settings['site_currency'] == "USD" %} {{ "&#36;" }}
				{% elseif settings['site_currency'] == "INR" %} {{ "₹" }}
                {% else %}{{ "&#8364;" }}
                {% endif %}{{ user['spent'] }}</h2>
                            <h2></h2>
                          </div>
                        </div>
            </div>
          </div>
        </div>
      </div>
       

     
<div class="container">
       
  <div class="row">
    <div class="col-md-8 col-md-offset-2">
 

    {% if error %}
      <div class="alert alert-dismissible alert-danger">
        {{ errorText }}
      </div>
    {% endif %}

    {% if data["order"]["success"] == 1 %}
      <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.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>
      </div>
    {% endif %}
    {% if data["order"]["success"] == 2 %}
      <div class="alert alert-dismissible alert-success">
         <strong> {{ lang["neworder.success.id"] }}: </strong> {{ data['order']['id'] }} <br>
         <strong> {{ lang["neworder.success.service"] }}: </strong> {{ data['order']['service'] }} <br>
         <strong> {{ lang["neworder.success.username"] }}: </strong> {{ data['order']['link'] }} <br>
         <strong> {{ lang["neworder.success.quantity"] }}: </strong> {{ data['order']['min'] }} - {{ data['order']['max'] }} <br>
         <strong> {{ lang["neworder.success.posts"] }}: </strong> {{ data['order']['posts'] }} <br>
         <strong> {{ lang["neworder.success.delay"] }}: </strong>{{ data['order']['delay'] }} <br>
       </div>
    {% endif %}

      <div class="well">

        <form method="post" action="">

            <div class="form-group">
              <label for="orderform-category" class="control-label">{{ lang["neworder.category"] }}</label>
              <select class="form-control" id="neworder_category" name="categories">
                {% for category in categories %}
                    <option value="{{ category["category_id"] }}" {% if category["category_id"] == data['categories'] %} selected {% endif %} >{{ category["category_name"] }}</option>
                {% endfor %}
                </select>
            </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">

              </select>
            </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>


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

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

<div class="container">
  <div class="row">
    <div class="col-md-8 col-md-offset-2">
      <div class="well ">
        {{ contentText }}
      </div>
    </div>
  </div>
</div>

{% include 'footer.twig' %}
