Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
unsatisfiableness
/
core
/
temp
/
client
/
sfg
:
orders.twig
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
{% include 'header.twig' %} <div class="content-wrap"> <form action="" method="get" id="history-search"> <div class="grey-search"> <button type="submit"><i class="fa fa-search"></i></button> <input type="text" name="search" class="form-control" value="{{ search }}" placeholder="Search orders"> </div> </form> <div class="row mb-3"> <div class="col-md-3 mb-3"> <a href="/orders" class="orange-border-btn he-40"> All Orders </a> </div> <div class="col-md-3 mb-3"> <a href="/orders/pending" class="orange-border-btn he-40"> Pending </a> </div> <div class="col-md-3 mb-3"> <a href="/orders/inprogress" class="orange-border-btn he-40"> InProgress </a> </div> <div class="col-md-3 mb-3"> <a href="/orders/completed" class="orange-border-btn he-40"> Completed </a> </div> <div class="col-md-3 mb-3"> <a href="/orders/partial" class="orange-border-btn he-40"> Partial</a> </div> <div class="col-md-3 mb-3"> <a href="/orders/processing" class="orange-border-btn he-40"> Processing </a> </div> <div class="col-md-3 mb-3"> <a href="/orders/canceled" class="orange-border-btn he-40"> Cancelled </a> </div> </div> <div class="p-table"> <div class="table-responsive"> <table> <thead> <tr> <th>{{ lang['orders.id'] }}</th> <th>{{ lang['orders.date'] }}</th> <th class="width-20">{{ lang['orders.link'] }}</th> <th>{{ lang['orders.charge'] }}</th> <th>{{ lang['orders.start.count'] }}</th> <th>{{ lang['orders.quantity'] }}</th> <th>{{ lang['orders.service'] }}</th> <th>{{ lang['orders.status'] }}</th> <th>{{ lang['orders.remains'] }}</th> <th></th> </tr> </thead> <tbody> {% for order in orders %} <tr> <td><span id="order-{{ order['id'] }}">{{ order['id'] }}</span> <a> <span data-clip="true" title="Order Id copied" data-clipboard-action="copy" data-clipboard-target="#order-{{ order['id'] }}" class="fas fa-clone"></span> </a> {% if order['order_where'] == "api" %}<a class="btn btn-actions">Api</a>{% endif %}</td> <td>{{ order['date'] }}</td> <td width="20%"><a target="_blank" href="{{ order['link'] }}">{{ order['link'] }}</a></td> <td>{{ currency['symbol'] }}{{ (order['charge']*currency['value']) }}</td> <td>{{ order['start_count'] }}</td> <td>{{ order['quantity'] }}</td> <td>{{ order['service'] }}</td> <td>{{ order['status'] }}</td> <td>{{ order['remains'] }}</td> <td> {% if order['refillbutton'] == "true" %} {% if order['status'] == "Completed" %} {% if order['refill'] == 1 %} {% if order['show_refill'] == "true" %} <form action="" method="post" id="history-search"> <input type="hidden" name="order_id" value="{{ order['id'] }}" /> <input id="refill-button" class=" btn btn-xs btn-primary" type="submit" value="Refill" name="refill"> </div> </form> {% endif %} {% endif %} {% endif %} {% endif %} {% if order['cancel_button'] == "true" %} <a href="orders/cancel/{{order['id']}}" class="btn btn-xs btn-primary">cancel</a> {% endif %} </td> </tr> {% endfor %} </tbody> </table> </div> {% if pagination["count"] > 1 %} <ul class="pagination"> {% if pagination["current"] != 1 %} <li> <a href="orders/{{ 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 href="orders/{{ status }}/{{ page }}{% if search %}?search={{ search }}{% endif %}">{{ page }}</a></li> {%endif%} {% endfor %} {% if pagination['current'] < pagination['count'] %} <li> <a href="orders/{{ status }}/{{ pagination['next'] }}{% if search %}?search={{ search }}{% endif %}" aria-label="Next"> <span aria-hidden="true">»</span> </a> </li> {% endif %} </ul> {% endif %} </div> </div> </div> {% include 'footer.twig' %}