{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{% if search %}
{{ message }}
{% endfor %}
{% endif %}
{% endwith %}
š Real-Time Search
Search results for: "{{ search }}"
{% endif %}
Total Orders: {{ orders|length }}
Orders List
{% if orders %}
{% else %}
{% endif %}
| Order No | Date | Customer | Phone | Items | Status | Amount | Actions |
|---|---|---|---|---|---|---|---|
| #{{ order.order_no }} | {{ order.order_date }} | {{ order.customer_name }} | {% if order.customer_phone %} {{ order.customer_phone }} {% else %} N/A {% endif %} | {{ order.item_count }} items | {% if order.status == 'Pending' %} {{ order.status }} {% elif order.status == 'Processing' %} {{ order.status }} {% elif order.status == 'In Progress' %} {{ order.status }} {% elif order.status == 'Completed' %} {{ order.status }} {% elif order.status == 'Partial' %} {{ order.status }} {% else %} {{ order.status }} {% endif %} | Rs. {{ "{:,.0f}".format(order.total_amount) }} |
|
No orders found
{% if search %}Try adjusting your search terms
Show All Orders {% else %}Start by creating your first customer order
Create First Order {% endif %}