{% include 'header.twig' %}
	
		<!-- Main variables *content* -->

          <div class="appContent">
        <section class="my-3">



            
    <div class="row">
        <div class="col-lg-12 col-md-12 col-12">
            <div class="card card-border my-3">
                    <div class="card-body">

            {% for order in orders %}
                                                                <div class="updatex">
                                <div class="row">
                                    <div class="col-md-6">
<div class="sctx-text"> {{ order['service_id'] }} - {{ order['service_name'] }}</div>
                                    </div><!-- ./col --> 
               
                                    <div class="col-md-2">
                                        <div class="sctc-text time_format">{{ order['date'] }}</div>
                                    </div><!-- ./col --> 
                                              <div class="col-md-4">
                                        <div class="op-stats neutral">
               {{ order['description'] }}                                        </div><!-- ./col -->
                                    </div>
                                </div>
                            </div>
                            <hr>
            {% endfor %}
                                            </div>
                </div>
            </div>
        </div>
    </div>
</section>
    
     {% if pagination["count"] > 1 %}
        <section class="my-3">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12">
                <div class="text-center">
                                                                    <ul class="pagination ">

          {% if pagination["current"] != 1 %}
            <li>
              <a class="btn btn-actions" href="updates/{{ status }}/{{ 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 class="btn btn-actions" 
 href="updates/{{ status }}/{{ page }}{% if search %}?search={{ search }}{% endif %}">{{ page }}</a></li>
            {%endif%}
          {% endfor %}

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

        </ul>
      {% endif %}


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




<br><br><br><br><br>
{% include 'footer.twig' %}