@if(order){
{{ 'order_number' | translate }}: #{{ order.order_number }}
@if(order && !order.sub_orders.length){
    @for(orderStatus of (orderStatus$ | async)?.data; track orderStatus){
  • image
    {{ orderStatus?.name?.replaceAll('_', ' ') | titlecase }}
  • } @if(order && order.order_status && order.order_status.slug === 'cancelled'){
  • @if(order.order_status){
    image
    {{ order.order_status.name.replaceAll('_', ' ')! | titlecase }}
    }
  • }
}
@if(order.products.length){
@for(product of order.products; track product){ }
{{ 'image' | translate }} {{ 'name' | translate }} {{ 'price' | translate }} {{ 'quantity' | translate }} {{ 'subtotal' | translate }}
product
{{ product?.pivot?.variation ? product?.pivot?.variation?.name : product?.name }}
{{ product?.pivot?.single_price | currencySymbol }}
{{ product?.pivot?.quantity }}
{{ product?.pivot?.subtotal | currencySymbol }}
}

{{ 'consumer_details' | translate }}

    @if(order.billing_address){
  • {{ order.billing_address.street }} {{ order.billing_address.city }} {{ getStateName(order.billing_address.state_id) }} {{ getCountryName(order.billing_address.country_id) }} {{ order.billing_address.pincode }}
    {{ 'phone' }} : +{{ order.billing_address.country_code }} {{ order.billing_address.phone }}

  • } @if(order.shipping_address && !order.is_digital_only){
  • {{ order.shipping_address.street }} {{ order.shipping_address.city }} {{ getStateName(order.shipping_address.state_id) }} {{ getCountryName(order.shipping_address.country_id) }} {{ order.shipping_address.pincode }}
    {{ 'phone' }} : +{{ order.shipping_address.country_code }} {{ order.shipping_address.phone }}

  • } @if(order.delivery_description && !order.is_digital_only){
  • {{ order.delivery_description }}

  • } @if(order.payment_method){
  • {{ order.payment_method | uppercase }}

  • } @if(order.payment_method){
  • {{ order.payment_status | uppercase }}

  • }

{{ 'summary' | translate }}

  • {{ 'subtotal' | translate }} {{ (order.amount ? order.amount : 0) | currencySymbol }}
  • @if(!order.is_digital_only){
  • {{ 'shipping'| translate }} {{ (order.shipping_total ? order.shipping_total : 0) | currencySymbol }}
  • }
  • {{ 'tax'| translate }} {{ (order.tax_total ? order.tax_total : 0) | currencySymbol }}
  • @if(order.points_amount !== 0){
  • {{ 'points'| translate }} {{ order.points_amount | currencySymbol }}
  • } @if(order.wallet_balance !== 0){
  • {{ 'wallet_balance'| translate }} {{ order.wallet_balance | currencySymbol }}
  • } @if(order.coupon_total_discount !== 0){
  • {{ 'coupon_discount'| translate }} {{ order.coupon_total_discount | currencySymbol }}
  • }
  • {{ 'total'| translate }} {{ (order.total ? order.total : 0) | currencySymbol }}
@if(order.sub_orders.length){
@for(subOrder of order.sub_orders; track subOrder){ }
{{ 'order_number' | translate }} {{ 'order_date' | translate }} {{ 'total_amount' | translate }} {{ 'status' | translate }} {{ 'action' | translate }}
{{ '#'+subOrder.order_number }}
{{ subOrder.created_at | date: 'dd MMM yyyy hh:mm:a' }}
{{ subOrder.amount | currencySymbol }}
{{ subOrder.order_status.name }}
}
} @if(!order){ }