{% include 'header.twig' %}
      </div>
    </div>
    <div class="inner-wrap">
      <div class="container-fluid">
  <div class="row">
    <div class="col-sm-12">
      
                </div>
  </div>
</div>
  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-10 col-sm-offset-1">
        <div class="well ">
          <h1><b>FOR CONTACTING US ON INSTAGRAM <a href="https://instagram.com/socialmatrixofficial" target="_blank">CLICK HERE</a></b></h1>
        </div>
      </div>
    </div>
  </div>

<ul class="nav navbar-nav navbar-right navbar-right-block">
                    	<li class="nav-search">
            <form action="/tickets" method="get" id="history-search">
                <div class="input-group">
                  <input type="text" class="form-control" value="" name="search" placeholder="Search tickets">
                  <span class="input-group-btn">
                   <button type="submit" class="btn btn-default"><i class="fa fa-search" aria-hidden="true"></i></button>
                </span>
                </div>
              </form>
          </li>
          	<li>
            <button type="button" class="ticket-btn btn btn-primary" data-toggle="modal" data-target="#exampleModal">
            New Ticket
            </button>
          </li>
<!-- Modal -->

  
      
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <h2 class="modal-title dash-title" id="exampleModalLabel">New Ticket</h2>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>

      {% if settings['ticket_system'] == 2 %}
        <div class="well">
          <form method="post" action="tickets">
            <div class="form-group">
              <label for="subject" class="control-label">{{ lang['tickets.subject'] }}</label>
              <input type="text" class="form-control" id="subject" name="subject" value="{{ data['subject'] }}">
            </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-primary">{{ lang['tickets.button'] }}</button>
          </form>
        </div></div></div></div></div>
      {% endif %}
 <div class="wrapper-content__header">
          </div>
    <div class="wrapper-content__body">
      <!-- Main variables *content* -->
      <div id="block_16">
    <div class="ticket-form">
        <div class="bg"></div>
        <div class="divider-top"></div>
        <div class="divider-bottom"></div>
        <div class="container-fluid">
            <div class="row ticket-form__alignment">
                <div class="col-lg-12">
                   <div class="component_card">
                      <div class="card">
      <div class="well">
          <table class="table ">
            <thead>
            <tr>
              <th>{{ lang['tickets.id'] }}</th>
              <th>{{ lang['tickets.subject'] }}</th>
              <th>{{ lang['tickets.status'] }}</th>
              <th class="nowrap">{{ lang['tickets.updated'] }}</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>{{ ticket['status'] }}</td>
                  <td><span class="nowrap">{{ ticket['lastupdate_time'] }}</span></td>
                </tr>
              {% endfor %}
            </tbody>
          </table>
        </div>
      </div>
  </div>
</div> </div></div>
</div></div></div>
</div></div>
</div></div></div></div>
<br>
{% if error %}
        <div class="alert alert-dismissible alert-danger {% if site['rtl'] %} rtl-alert {% endif %}">
          <button type="button" class="close" data-dismiss="alert">&times;</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">&times;</button>
          {{ successText }}
        </div>
      {% endif %} 
{% include 'footer.twig' %}
