{% extends 'adminapp/master.html' %} {% load static %} {% block content %}

Order Details

Update Order Status
{% csrf_token %}
{% if order.status not in "cancelled,completed" %} {% else %}

Status cannot be changed for a completed or cancelled order.

{% endif %}
Order & Client Details
Order Details :-

Order ID: {{ order.id }}

Order Date: {{ order.created_at|date:"M d, Y - H:i A" }}

Completion Date: {{ order.ad_completion_date|default:"N/A" }}

Order Status: {% if order.status == "pending" %} Pending {% elif order.status == "processing" %} Processing {% elif order.status == "completed" %} Completed {% elif order.status == "cancelled" %} Cancelled {% else %} Unknown {% endif %}

Payment Status: {% if payment_status == "paid" or payment_status == "Paid" %} Paid {% elif payment_status == "refunded" or payment_status == "Refunded" %} Refunded {% else %} Unknown {% endif %}

{% if order.location_link %}

Location: View Location

{% endif %} {% if order.social_media_platform %}

Social Media Platform: {{ order.social_media_platform }}

{% endif %}
Client Details :-

Name: {{ order.full_name }}

Email: {{ order.email }}

Phone: {{ order.phone }}

Template Details

Template ID: {{ order.template_id }}

Template Name: {{ order.template_name }}

Ad Type: {{ order.template_ad_type }}

{% if order.template_image %}

Selected Template:

Template Image {% endif %}
Customization Details

Customization Title : {{ order.ad.title|default:"N/A" }}

Customization Description : {{ order.ad.description|default:"N/A" }}

Customization Color : {{ order.ad.color }}

Customization Style : {{ order.ad.style|default:"N/A" }}

Customization Image:

Template Image
Pricing Breakdown

Base Price:Rs. {{ order.base_price }}

Making Charges:Rs. {{ order.making_charges }}

GST Amount:Rs. {{ order.gst_amount }}

Additional Charge:Rs. {{ order.additional_charge }}


Total Price:Rs. {{ order.total_price }}

Payment Method: {{ order.payment_method }}

{% endblock %}