{% include 'header.twig' %}
	
 <main><div class="main_container" id="main_container">
  <style>
     .table-responsive{
      min-height: 250px !important;
    }
     .update.badge {
      padding: 10px 20px;
      border-radius: 10px ;
    }
     .update.decreased {
      background: orange !important;
      color:#fff;
    }
     .update.increased {
    background: blue !important;
      color: #fff;
    }
     .update.enabled {
      background: green !important;
      color: #fff;
    }
     .update.disabled {
      background: black !important;
      color: #fff;
    }
     .update.min {
      background: #f3b82d !important;
      color: #100223;
    }
     .update.name {
      background: #ff5287 !important;
      color: #fff;
    }
     .update.max {
      background: #ff5568 !important;
      color: #fff;
    }
    
     .col-md-12{
      width: 100% !important;
      margin: 0 0 0 0 !important; 
    }
      
     .table > tbody > tr > td::after{
      display:none;
    }
    
     
    </style>
    
  <div class="content_area">
   <div class="content">
     <!-- page and other top info -->
  <div class="page_top_info" id="page_top_info">
   
  </div>

	
      <section id="table">
               <div class="container-fluid">
                 <div class="row">
                   <div class="col-md-12">
                     <div class="card card_v2">
                       <div class="card-body">
                         <div class="responsive-table def_table">
                          <div class="table-responsive">
                            <table id="table-updates" class="table update-table service-tablwa service-well custom-table ">
                               <thead>
                              <tr>
                                <th class="col-md-1">Service ID</th>
                                <th class="col-md-6">SERVICE</th>
                                <th class="col-md-2">DATE</th>
                                <th class="col-md-3">UPDATE</th>
                              </tr>
                              </thead> 
          <tbody>

<td colspan="9">
            {% for order in orders %}
              <tr>

<td>{{ order['service_id'] }}</td> 
                <td>{{ order['service_name'] }}</td>
                <td>{{ order['date'] }}</td>
                 <td>{{ order['description'] }}</td> 
      
       
               

              </tr>
            {% endfor %}
</td>
          </tbody>
        </table>
      </div>
    <br>
      {% if pagination["count"] > 1 %}
        <ul class="pagination">

          {% if pagination["current"] == 1 %}
            <li>
              <a 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) %}
              <div style="border:1px solid rgb(128,128,128); padding:4px; margin-left:8px; min-width:21px; text-align:center;"><li{% if page == pagination['current'] %} class="active" {%endif%}><a href="updates/{{ status }}/{{ page }}{% if search %}?search={{ search }}{% endif %}">{{ page }}</a></li></div>
            {%endif%}
          {% endfor %}

          {% if pagination['current'] < pagination['count'] %}
            <li>
              <a style="margin-left:8px;" 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' %}