{% extends 'base.html' %} {% block title %}HRMS - Order #{{ order.id }}{% endblock %} {% block styles %} {% endblock %} {% block page_title %} {% endblock %} {% block content %}
Order Details

Created on {{ order.created_at.strftime('%B %d, %Y at %I:%M %p') }}

{% if is_admin %} {% endif %} {{ order.order_status|title }}
{{ restaurant.name }}
{{ restaurant.address }}, {{ restaurant.city }}
{{ restaurant.phone }}

Customer Name

{{ user.full_name }}

Contact Number

{{ user.phone_number if user.phone_number else 'N/A' }}

Email

{{ user.email }}

Payment Method

{{ payment.payment_method|title if payment else 'Pending' }}

Order Items
{% for item in items %} {% endfor %}
Item Quantity Price Subtotal
{{ item.name }} {{ item.quantity }} ${{ "%.2f"|format(item.price) }} ${{ "%.2f"|format(item.subtotal) }}
Total Items: {{ total_items }} Total: ${{ "%.2f"|format(order.total_amount) }}
Order Summary
Subtotal ${{ "%.2f"|format(order.total_amount) }}
Items {{ total_items }}
{% if order.discount_amount %}
Discount -${{ "%.2f"|format(order.discount_amount) }}
{% endif %}
Total ${{ "%.2f"|format(order.total_amount) }}
{% if order.order_status == 'pending' %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}