{% include 'header.twig' %}
          
          <main class="main_content">
              
              <section class="sd-head">
  <div class="container">
                <div class="container-fluid">
    <div class="row">
      <div class="col-lg-8 col-md-8 col-12">
        <div class="card card_type_2 mb-4">
          <div class="card-header">
            <ul class="nav nav-pills" id="pills-tab" role="tablist">
              <li class="nav-item" role="presentation">
        <a href="/tickets" class="btn btn-secondary btn-rounded">
          <i class="ri-arrow-left-line me-3"></i>
          <span class="text">Back to Tickets</span>
        </a>
              </li>
            </ul>
          </div>
          
          {% if messageList %}
                {% for message in messageList %}
                  {% if message["support"] == 1 %}
                  
          <div class="card-body">
                                                <div class="row  mb-3">
              <div class="col-md-3"></div>
              <div class="col-md-9 col-12">
                <div class="ticket_message_user_wraper">
                  
                  <div class="ticket-message message__user__side">
                    <div class="message">{{ message["message"] }}</div>
                                        <div class="info text-end">
                      <strong>{{ user["username"] }}</strong>
                      <small>{{ message["time"] }}</small>
                      
                    </div>
                  </div>
                </div>
              </div>
            </div>
            
            
             
                                                <div class="row mb-3">
                                                     {% elseif message["subject"] %}
                  {% else %}
              <div class="col-md-9  col-12">
                <div class="ticket_message_admin_wraper">
                 
                  <div class="ticket-message message__admin__side">
                    <div class="message">{{ message["message"] }}</div>

                                        <div class="info">
                      <strong>support</strong>
                      <small>{{ message["time"] }}</small> 
                    </div>
                  </div>
  
                </div>
              </div>
              
              {% endif %}

                {% endfor %}
              {% endif %}
              
              <div class="col-md-3"></div>
            </div>
                                      
            <hr>
  
                        <div class="row">
              <div class="col-md-12">
                <form  method="post" action="">
                                    <div class="form-group panel-border-top">
                    <label for="message" class="control-label">Message</label>
                    <textarea id="message" rows="5" class="form-control" name="message"></textarea>
                  </div>
                  <div class="form-group">
                    <div class="tickets-uploader" data-rtl="false"
                      data-lang-button-attach="Attach files"
                      data-lang-file-format-incorrect="Invalid file format"
                      data-lang-file-size-incorrect="File is too large (limit 5 MB)">
                    </div>
                  </div>
                  <button type="submit" class="btn btn-primary w-100">Submit</button>
                </form>
              </div>
            </div>
                      </div>
        </div>
      </div>
     <!-- <div class="col-lg-4 col-md-4 col-12">
        <div class="card card_type_3">
          <div class="card-header">
            <h3>Tickets Details</h3>
          </div>
          <div class="card-body">
            <div class="new_order_content">
              <ul>
                <li><span>ID TICKETS</span><small> #12805</small></li>
                <li><span>SUBJECT</span><small> order</small></li>
                <li><span>PRIORITY</span><small> NORMAL</small></li>
                <li><span>DEPARTMENT</span><small>order SUPPORT</small></li>
                <li><span>RESPONSE TIME</span><small>0 - 1H</small></li>
              </ul>
              <p class="fs-16">
                NOTE: Sometimes it can take up to 6 hours for us to respond, depending on the tickets
                overload.
  
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div> -->
            </main>
        </div>
    </div>


 {% include 'footer.twig' %}