{% 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* -->
      <div id="block_240"><div class="block-bg"></div><div class="container"><div class="header-with-text ">
    <div class="row">
        <div class="col-12">
            <div class="text-block__title">
                                    <h1 class="text-center"><span style="text-align: CENTER">TICKET FORMAT</span></h1>
                            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-12">
            <div class="text-block__description">
                                    <h5 class="text-center"><span style="text-align: CENTER">To ensure that we can address your ticket accurately, please follow the ticket format. If you don't adhere to the ticket format,</span></h5>
<h5 class="text-center"><span style="text-align: CENTER">we will automatically mark your ticket as closed without prior notice.</span></h5>
                            </div>
        </div>
    </div>
</div></div></div><div id="block_239"><div class="block-bg"></div><div class="container"><div class="text-block-2-columns-card ">
    <div class="row">
        <div class="col-lg-6 text-block-2-columns-col">
            <div class="component_card_1">
                <div class="card">
                    <div class="text-block__description">
                                                    <h4>ORDER</h4>
<ul>
  <li>Subject: Orders</li>
  <li>Message: Order ID + Your concern with your order.</li>
  <li>Attachment (optional)</li>
</ul>
<h4>PAYMENT</h4>
<ul>
  <li>Subject: Payment + Method</li>
  <li>Message: Transaction ID + Amount you send.</li>
  <li>Attachment (optional)</li>
</ul>
                                            </div>
                </div>
            </div>
        </div>
        <div class="col-lg-6 text-block-2-columns-col">
            <div class="component_card_2">
                <div class="card">
                    <div class="text-block__description">
                                                    <h4>REQUEST</h4>
<ul>
  <li>Subject: Request</li>
  <li>Message: Your request.</li>
  <li>Attachment (optional)</li>
</ul>
<h4>CHILD PANEL</h4>
<ul>
  <li>Subject: Child Panel</li>
  <li>Message: Your concern with your child panel.</li>
  <li>Attachment (optional)</li>
</ul>
                                            </div>
                </div>
            </div>
        </div>
    </div>                      
</div></div></div><div id="block_113"><div class="block-bg"></div><div class="container"><div class="ticket-form">
    <div class="row ticket-form__alignment">
        <div class="col-lg-12">
            <div class="component_card">
                <div class="card">
                            

      {% 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 %}
<form class="component_form_group" method="post" action="" id="ticketsend">

        <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">Submit ticket                                 </button>
                            </div>
                        </div>
                    </form>
                </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></div></div><div id="block_119"><div class="block-bg"></div><div class="container"><div class="tickets-list">
    <div class="row tickets-list__alignment">
        <div class="col-lg-12">
            <div class="row">
                <div class="col-12">
                    <div class="tickets-list__margin-search component_card">
                        <div class="card">
                            <div class="component_form_group">
                                <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">
                                            <div class="input-group-append component_button_search">
                                                <button class="btn btn-big-secondary" 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' %}