{% extends 'admin/layouts/base.html.twig' %} {% block title %}View Order Order{% endblock %} {% set active = 'app_admin_order' %} {% set breadcrumbs = [ { 'link': path('app_admin_dashboard'), 'title': 'Home' }, { 'link': path('app_admin_order'), 'title': 'Order', }, { 'title': 'View', } ]%} {% block content %}
| Id | {{ order.id }} |
|---|---|
| User Name | {% if order.userid is empty %} N/A {% else %} {{ order.userid.firstname }} {% endif %} |
| Product Name | {% if order.productid is empty %} N/A {% else %} {{ order.productid.name }} {% endif %} |
| Country Name | {% if order.customercountry is empty %} N/A {% else %} {{ order.customercountry.name }} {% endif %} |
| State Name | {% if order.customerstate is empty %} N/A {% else %} {{ order.customerstate.name }} {% endif %} |
| City Name | {% if order.customercity is empty %} N/A {% else %} {{ order.customercity }} {% endif %} |
| First Name | {% if order.customerfirstname is empty %} N/A {% else %} {{ order.customerfirstname }} {% endif %} |
| Last Name | {% if order.customerlastname is empty %} N/A {% else %} {{ order.customerlastname }} {% endif %} |
| Email Id | {% if order.customeremailid is empty %} N/A {% else %} {{ order.customeremailid }} {% endif %} |
| Phone Number | {% if order.customerphonenumber is empty %} N/A {% else %} {{ order.customerphonenumber }} {% endif %} |
| Billing Address | {% if order.customerbillingaddress is empty %} N/A {% else %} {{ order.customerbillingaddress }} {% endif %} |
| Status | {% if order.status is empty %} N/A {% else %} {% set badgeClass = '' %} {% set statusText = order.status is not null ? order.status : 'N/A' %} {% if statusText == 'completed' %} {% set badgeClass = 'badge bg-success' %} {% elseif statusText in ['refunded', 'cancelled', 'expired','failed'] %} {% set badgeClass = 'badge bg-danger' %} {% elseif statusText in ['processing', 'pending'] %} {% set badgeClass = 'badge bg-warning' %} {% elseif statusText in ['on hold', 'on-hold'] %} {% set badgeClass = 'badge bg-info' %} {% else %} {% set badgeClass = 'badge bg-secondary' %} {% endif %} {{ statusText|upper }} {% endif %} |
| Orders Date | {{ order.CreatedAt|date('Y-m-d H:i:s') }} |
| Postal Code | {% if order.postalcode is empty %} N/A {% else %} {{ order.postalcode }} {% endif %} |
| Duration | {% if subscription is not empty %} {{ subscription.duration == 1 ? subscription.duration ~ " Month" : subscription.duration ~ " Months" }} {% else %} No Subscription Found {% endif %} |
| Price | {% if payment is not null %} {{ payment.paymentamount|number_format(2, ',', '.') }} € {% else %} 0,00 € {% endif %} |
| Next Payment | {% if subscription is not empty %} {{ subscription.enddate|date('Y-m-d') }} {% else %} No Subscription Found {% endif %} |
| Wordpress Order | {% if order.wordpressorderId is empty %} No {% else %} Yes {% endif %} |
| Wordpress Order Id | {{order.wordpressorderId}} |
| Add/Change Affiliate | |
Note :You cannot change affiliate because they have already been paid commission for last month. |
|
| Payment Id | Order Id | Payment Date | Payment Method | Actual Price | Discount(%) | Discount Price | Tax Price (19%) | Total Payable Amount | Payment Status |
|---|---|---|---|---|---|---|---|---|---|
| #{{ payment.id }} | #{{ payment.orderid.id }} | {{ payment.createdat | date("d-m-Y H:i:s") }} | {{ payment.paymentmethod ? payment.paymentmethod|upper : "N/A" }} | {{ payment.getActualPrice | number_format(2, ',', '.') | default('0.00') }} | {{ payment.getDiscount }} | {{ payment.getPriceWithDiscount | number_format(2, ',', '.') | default('0.00') }} | {{ payment.getTaxPrice | number_format(2, ',', '.') | default('0.00') }} | {{ payment.paymentAmount | number_format(2, ',', '.') | default('0.00') }} | {% set badgeClass = '' %} {% set paymentStatusText = payment.paymentstatus is not null ? payment.paymentstatus : 'N/A' %} {% if paymentStatusText|lower == 'success' %} {% set badgeClass = 'badge bg-success' %} {% elseif paymentStatusText|lower == 'pending' or paymentStatusText|lower == 'processing' %} {% set badgeClass = 'badge bg-warning' %} {% else %} {% set badgeClass = 'badge bg-danger' %} {% endif %} {{ paymentStatusText|upper }} |
| ID | Payment ID | Order Id | Payment Date | Duration | Start Date | End Date | Status |
|---|---|---|---|---|---|---|---|
| #{{ subscription.id }} | #{{ subscription.paymentid.id }} | #{{ subscription.paymentid.orderid.id }} | {{ subscription.paymentid.paymentDate|date("d-m-Y H:i:s") }} | {{ subscription.duration }} Month | {{ subscription.startdate ? subscription.startdate|date("d-m-Y H:i:s") : 'N/A' }} | {% set start_date = subscription.startdate ? subscription.startdate|date("d-m-Y H:i:s") : 'N/A' %} {% set duration = subscription.duration %} {% if start_date != 'N/A' and duration %} {% set end_date = (start_date|date_modify('+' ~ duration ~ ' month'))|date("d-m-Y H:i:s") %} {{ end_date }} {% else %} N/A {% endif %} | {% if subscription.status %} {% set badgeClass = '' %} {% set statusText = subscription.status %} {% if statusText|lower == 'active' %} {% set badgeClass = 'badge bg-success' %} {% elseif statusText|lower == 'cancelled' %} {% set badgeClass = 'badge bg-danger' %} {% else %} {% set badgeClass = 'badge bg-warning' %} {% endif %} {{ statusText|upper }} {% else %} N/A {% endif %} |