{% extends 'store/layout/layout.html' %} {% load static %} {% block title %}Orders{% endblock %} {% block style %}{% endblock %} {% block body %}
{% if orders %}
All Orders

{% for order in orders|slice:":1" %}

{% include 'store/includes/orders.html' with order=order %} View Details
{% endfor %} {% for order in orders|slice:"1:" %}

{% include 'store/includes/orders.html' with order=order %} View Details
{% endfor %}
{% include 'store/includes/pagination.html' with page_obj=orders %} {% else %} Orders 0 {% endif %}
{% endblock %} {% block script %} {% endblock %}