{% include 'header.twig' %}


{% if settings['ticket_system'] == 1 %}

<div class="wrapper-content">
    <div class="wrapper-content__header">
          </div>
    <div class="wrapper-content__body">
      <!-- Main variables *content* -->
       <p><br></p> 
      
      <div id="block_85">
                               <div class="col-lg-8 offset-lg-2">
                                <div class="faq-block__card">
                                    <div class="card" style="
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ">
                                        <div class="faq-block__header collapsed" data-toggle="collapse" data-target="#faq-block-85-2" aria-expanded="false" aria-controls="#faq-block-85-2">
                                            <div class="faq-block__header-title">
                                                                                                    <h4><strong style="font-weight: bold">READ BEFORE CREATE TICKET!</strong></h4>
                                                                                            </div>
                                            <div class="faq-block__header-icon">
                                                <div class="style-text-dark faq-block__icon" style=""></div>
                                            </div>
                                        </div>
                                        <div class="faq-block__body collapse" id="faq-block-85-2">
                                            <div class="faq-block__body-description" style="padding-top: 8px">
                                                                                                    <p><strong style="font-weight: bold">FOR ORDERS SUPPORT</strong></p>
<p>Subject : Order</p>
<p>Message : Order ID and your request - &nbsp;refill, speed up, cancel</p>
<p><br></p>
<p><strong style="font-weight: bold">Example:</strong></p>
<p>Subject : Order</p>
<p>Message : 1234567 - please speed up</p>
<p><br></p>
<p><strong style="font-weight: bold">For multiple orders, please separate order ID's using comma</strong></p>
<p><strong style="font-weight: bold">Example :</strong></p>
<p>Subject : Order</p>
<p>Message : 234567,234568,234569,234560 - Speed up</p>
<p><em style="font-style: italic">FOR FAST SUPPORT PLEASE ALWAYS SEND YOUR ORDER ID ON MESSAGE</em></p>
<p><br></p>
<p><strong style="font-weight: bold">FOR PAYEMNTS SUPPORT</strong></p>
<p>Subject : Payment</p>
<p>Message : Your Message</p>
<p><br></p>
<p><strong style="font-weight: bold">For Other Requests</strong></p>
<p>Subject : Other</p>
<p>Message : Your Message</p>
<p><br></p>
<p class="text-center"><span style="font-size: 28px"><span style="text-align: CENTER"><strong style="font-weight: bold">POPULAR QUESTIONS</strong></span></span></p>
<p><br></p>
<ul>
  <li class="text-left"><span style="text-align: LEFT"><strong style="font-weight: bold">How Can I check service actual speed?</strong></span></li>
  <li class="text-left"><span style="text-align: LEFT">For info about actual speed you need check average time, it's a last 10 completed orders time for 1000 quantity</span></li>
</ul>
<p><br></p>
<ul>
  <li><strong style="font-weight: bold">What is Status Partial?</strong></li>
  <li>Partial status means your order canceled partially and money refunded partially to your account, order get partial status when your link no longer available, or server overloaded or have critical problem and can't deliver your service fully</li>
</ul>
<p><br></p>
<ul>
  <li><strong style="font-weight: bold">Order canceled my money refunded?</strong></li>
  <li>Yes, when order canceling or partial your money automatically refund to your account</li>
</ul>
                                                                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            
                            
                            <div id="block_86">
    <div class="text-block ">
        <div class="bg"></div>
        <div class="divider-top"></div>
        <div class="divider-bottom"></div>
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="text-block__description">
                                            </div>
                </div>
            </div>
        </div>
    </div>
</div>
                            
                            <p><br></p>
                            
      <div id="block_69">

  <div class="totals ">
    <div class="bg"></div>
    <div class="divider-top"></div>
    <div class="divider-bottom"></div>
    <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="component_card_1">
                        <div class="card">
                            <div class="text-block__description">

      {% if error %}
        <div class="alert alert-dismissible alert-danger {% if site['rtl'] %} rtl-alert {% endif %}">
          <button type="button" class="close" data-dismiss="alert">×</button>
          {{ errorText }}
        </div>
      {% elseif success %}
        <div class="alert alert-dismissible alert-success {% if site['rtl'] %} rtl-alert {% endif %}">
          <button type="button" class="close" data-dismiss="alert">×</button>
          {{ successText }}
        </div>
      {% endif %}


        <div class="well">
          <form method="post" action="tickets">
            <div class="form-group">
              <label for="subject" class="control-label">{{ lang['tickets.subject'] }}</label>
              
<select  type="text" class="form-control" id="subject" name="subject">
                                  {% for subjects in orders %}
                   <option value"{{ subjects['subject'] }}">{{ subjects['subject'] }}</option>
                  {% endfor %}
                              </select>
           </div>
            <div class="form-group">
              <label for="message" class="control-label">{{ lang['tickets.message'] }}</label>
              <textarea class="form-control" rows="7" id="message" name="message">{{ data['message'] }}</textarea>
            </div>
            
            <button type="submit" class="btn btn-block btn-big-primary">{{ lang['tickets.button'] }}</button>
                                </div>
                            </div>
                         </form>
                      </div>
                   </div>
                </div>
            </div>
        </div>
    </div>
</div>
      {% endif %}
</br>
                    <div class="text-block-with-button__description">
                                                    <p class="text-center"><span style="text-align: CENTER"><strong style="font-weight: bold">UPLOAD IMAGE. COPY AND SEND LINK ON MESSAGE BELOW</span></p>
                                            </div>
                
            
           
      <div class="row">
                <div class="col-12">
                    <div class="text-block-with-button__button component_button_link">
                       <div class="">
                           <a class="btn btn-big-primary" target="_blank" href="https://prnt.sc/">
                                                                  <p>Upload Image</p>
                                                          </a>
                       </div>
                    </div>
                </div>
            </div>
        
<style>
.text-block-with-button__button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
</style>
      <div id="block_69">

  <div class="totals ">
    <div class="bg"></div>
    <div class="divider-top"></div>
    <div class="divider-bottom"></div>
    <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="component_card_1">
                        <div class="card">
                            <div class="text-block__description">
                                
                                        <div class="">
                                            <form action="/tickets" method="get" id="history-search">
                                                <div class="input-group">
                                                    <input type="text" name="search" class="form-control" value="" placeholder="Search tickets">
                                                    <div class="input-group-append component_button_search">
                                                        <button class="btn btn-big-primary" type="submit">
                                                            <span class="fas fa-search"></span>
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                   </div>
                                </div>
                            </div>
                        </div>
                    </div>
                     <p><br></p> 
                    <div class="row">
                        <div class="col">
                            <div class="tickets-list__margin-table">
                                <div class="table-bg component_table ">
                                    <div class="table-wr table-responsive">
                                        <table class="table">
                                            <thead>
                                            <tr>
                                                <th>ID</th>
                                                <th>Subject</th>
                                                <th>Status</th>
                                                <th class="nowrap">Last update</th>
                                            </tr>
                                            </thead>
                                            <tbody>

              {% for ticket in ticketList %}
                <tr>
                  <td>{{ ticket['ticket_id'] }}</td>
                  {% if ticket["support_new"] == 2 %}
                    <td><a href="tickets/{{ ticket['ticket_id'] }}"><strong>{{ ticket['subject'] }}</strong></a></td>
                  {% else %}
                    <td><a href="tickets/{{ ticket['ticket_id'] }}">{{ ticket['subject'] }}</a></td>
                  {% endif %}
                  <td><span class="badge badge-success">{{ ticket['status'] }}</td>
                  <td><span class="nowrap">{{ ticket['lastupdate_time'] }}</span></td>
                </tr>
              {% endfor %}
</td>
            </tbody>
          </table>
        </div>
      </div>
  </div>
</div> </div></div>
</div></div></div>
</div></div>
</div></div>
{% if pagination["count"] > 1 %}
        <ul class="pagination">

          {% if pagination["current"] != 1 %}
            <li>
              <a href="tickets/{{ id }}/{{ pagination["previous"] }}{% if search %}?search={{ search }}{% endif %}" aria-label="Previous">
                <span aria-hidden="true">«</span>
              </a>
            </li>
          {% endif %}

          {% set r, l = 3, 3 %}

          {% if pagination['current'] == 1 %}
            {% set r = 7 %}
          {% endif %}

          {% if pagination['current'] == 2 %}
            {% set r = 5 %}
          {% endif %}

          {% if pagination['current'] >= pagination['count'] %}
            {% set l = 5 %}
          {% endif %}

          {% for page in 1..pagination["count"] %}
            {% if page >= (pagination['current']-l) and page <= (pagination['current']+r) %}
              <li{% if page == pagination['current'] %} class="active" {%endif%}><a href="tickets/{{ id }}/{{ page }}{% if search %}?search={{ search }}{% endif %}">{{ page }}</a></li>
            {%endif%}
          {% endfor %}

          {% if pagination['current'] < pagination['count'] %}
            <li>
              <a href="ticket/{{ id }}/{{ pagination['next'] }}{% if search %}?search={{ search }}{% endif %}" aria-label="Next">
                <span aria-hidden="true">»</span>
              </a>
            </li>
          {% endif %}

        </ul>
      {% endif %}

    
  
 
{% if contentText2 %}
{{ contentText2 }}
{% endif %}
{% include 'footer.twig' %}