templates/content/orders.html.twig line 1

Open in your IDE?
  1. {% extends 'layout.html.twig' %}
  2. {% block content %}
  3.     <div class="order-info">
  4.         <table  class="table table-striped table-bordered">
  5.             <thead>
  6.             <tr>
  7.                 <th>S.No</th>
  8.                 <th>Customer Name</th>
  9.                 <th>Billing Company</th>
  10.                 <th>Payment Method</th>
  11.                 <th>Customers Email-Address</th>
  12.                 <th>Action</th>
  13.             </tr>
  14.             </thead>
  15.             <tbody>
  16.             {% for orders in ordersList %}
  17.                 {#               {% if product.product_id is empty %}#}
  18.                 {#                    {% continue %}#}
  19.                 {#                {% endif %}#}
  20.                 <tr>
  21.                     <td>{{ orders.orders_id|e }}</td>
  22.                     <td>{{ orders.customers_name|e }}</td>
  23.                     <td>{{ orders.billing_company|e }}</td>
  24.                     <td>{{ orders.payment_method|e }}</td>
  25.                     <td>{{ orders.customers_email_address|e }}</td>
  26.                     <td><a href="{{ path('orders', {'id': orders.orders_id}) }}"class="btn btn-success btn-sm">
  27.                            View Details</a></td>
  28.                 </tr>
  29.             {% endfor %}
  30.             </tbody>
  31.         </table>
  32.         {% for orders in paginator %}
  33.         {% endfor %}
  34.         <br />
  35.         {% include 'content/pagination.html.twig' %}
  36.     </div>
  37. {% endblock %}