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
/
Simplify
:
orders.twig
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
{% include 'header.twig' %} <!-- Main variables *content* --> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <div class="p_card mb-4"> <p class="mb-0"><strong style="font-weight: bold">Do You need Support :</strong> <a target="_blank" href="/tickets" class="btn btn-big-primary">Open a ticket</a></p> </div> <ul class="nav nav-pills tab mb-4"> <li class="nav-item" > <a {% if 'all' == status %} class="nav-link active" {% endif %} class="nav-link" href="orders">All</a> </li> <li class="nav-item"><a {% if 'pending' == status %} class="nav-link active" {% endif %} class="nav-link" href="orders/pending">{{ lang['orders.status.pending'] }}</a></li> <li class="nav-item"><a {% if 'inprogress' == status %} class="nav-link active" {% endif %} class="nav-link" href="orders/inprogress">{{ lang['orders.status.inprogress'] }}</a></li> <li class="nav-item"><a {% if 'completed' == status %} class="nav-link active" {% endif %} class="nav-link" href="orders/completed">{{ lang['orders.status.completed'] }}</a></li> <li class="nav-item"><a {% if 'partial' == status %} class="nav-link active" {% endif %} class="nav-link" href="orders/partial">{{ lang['orders.status.partial'] }}</a></li> <li class="nav-item"><a {% if 'processing' == status %} class="nav-link active" {% endif %} class="nav-link" href="orders/processing">{{ lang['orders.status.processing'] }}</a></li> <li class="nav-item"><a {% if 'canceled' == status %} class="nav-link active" {% endif %} class="nav-link" href="orders/canceled">{{ lang['orders.status.canceled'] }}</a></li> </ul> <div class="p_card mb-4"> <div class="row"> <div class="col"> <form action="/orders" method="get" id="history-search"> <div class="input-group"> <input type="text" name="search" class="form-control" value="" placeholder="Search"> <span class="input-group-append"> <button type="submit" class="btn btn-big-secondary"><i class="fa fa-search" aria-hidden="true"></i></button> </span> </div> </form> </div> </div> </div> <div class="row"> <div class="col"> <div class="orders-history__margin-table"> <div class="table-bg component_table "> <div class="table-wr table-responsive"> <table class="table "> <thead> <tr> <th>{{ lang['orders.id'] }}</th> <th>{{ lang['orders.date'] }}</th> <th width="20%">{{ lang['orders.link'] }}</th> <th>{{ lang['orders.charge'] }}</th> <th class="nowrap">{{ lang['orders.start.count'] }}</th> <th>{{ lang['orders.quantity'] }}</th> <th width="20%">{{ lang['orders.service'] }}</th> <th>Status</th> <th>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 class="nowrap">{{ order['start_count'] }}</td> <td>{{ order['quantity'] }}</td> <td width="20%">{{ 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-actions" 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-actions">cancel</a> {% endif %} </td> </tr> {% endfor %} </tbody> </table> </div> {% if pagination["count"] > 1 %} <ul class="pagination"> {% if pagination["current"] != 1 %} <li> <a class="btn btn-actions" 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 class="btn btn-actions" href="orders/{{ status }}/{{ page }}{% if search %}?search={{ search }}{% endif %}">{{ page }}</a></li> {%endif%} {% endfor %} {% if pagination['current'] < pagination['count'] %} <li> <a class="btn btn-actions" 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> </div></div></div></div></div> </div</div></div> </div></div></div> </div> {% if contentText2 %} {{ contentText2 }} {% endif %} {% include 'footer.twig' %}