{% extends 'base.html' %} {% block title %}HRMS - My Orders{% endblock %} {% block styles %} {% endblock %} {% block content %}
{% if search_query %} Clear {% endif %} {% if status != 'all' %} {% endif %}
New Order
{% for order in orders %} {% else %} {% endfor %}
Order ID Customer Restaurant Date & Time Items Total Status Actions
#{{ order.order.id }} {{ order.user.full_name }}
{{ order.restaurant.name }}
{{ order.restaurant.city }}
{{ order.order.created_at.strftime('%b %d, %Y %H:%M') }} {% for item in order.menu_items[:2] %} {{ item.name }} (×{{ item.quantity }}){% if not loop.last %}, {% endif %} {% endfor %} {% if order.menu_items|length > 2 %} and {{ order.menu_items|length - 2 }} more... {% endif %} ${{ "%.2f"|format(order.order.grand_total) }} {{ order.order.order_status|title }} {% if order.order.order_status == 'pending' %} {% elif order.order.order_status == 'preparing' %} {% elif order.order.order_status == 'ready' %} {% endif %}
No orders found
{% if pagination.pages > 1 %}
Showing {{ pagination.items|length }} of {{ pagination.total }} orders
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}