@php
$delivery_status = $order->delivery_status;
$payment_status = $order->payment_status;
@endphp
@if ($order->product_storehouse_total > 0)
@if (!$order->freeze_expired_at)
@else
@endif
@if ($order->product_storehouse_status)
@else
@endif
@endif
@if (addon_is_activated('delivery_boy'))
@if ($delivery_status == 'pending' || $delivery_status == 'confirmed' || $delivery_status == 'picked_up')
@else
@endif
@endif
@if ($delivery_status != 'delivered' && $delivery_status != 'cancelled')
@else
@endif
@php
$removedXML = ''], '', QrCode::size(100)->generate($order->code)) !!}
@if(json_decode($order->shipping_address))
{{ json_decode($order->shipping_address)->name }}
{{ json_decode($order->shipping_address)->email }}
{{ json_decode($order->shipping_address)->phone }}
{{ json_decode($order->shipping_address)->address }}, {{ json_decode($order->shipping_address)->city }}, {{ json_decode($order->shipping_address)->postal_code }}
{{ json_decode($order->shipping_address)->country }}
@else
{{ $order->user->name }}
{{ $order->user->email }}
{{ $order->user->phone }}
@endif
@if ($order->manual_payment && is_array(json_decode($order->manual_payment_data, true)))
{{ translate('Payment Information') }}
{{ translate('Name') }}: {{ json_decode($order->manual_payment_data)->name }},
{{ translate('Amount') }}:
{{ single_price(json_decode($order->manual_payment_data)->amount) }},
{{ translate('TRX ID') }}: {{ json_decode($order->manual_payment_data)->trx_id }}
@endif
{{ translate('Order #') }} |
{{ $order->code }} |
{{ translate('Order Status') }} |
@if ($delivery_status == 'delivered')
{{ translate(ucfirst(str_replace('_', ' ', $delivery_status))) }}
@else
{{ translate(ucfirst(str_replace('_', ' ', $delivery_status))) }}
@endif
|
{{ translate('Order Date') }} |
{{ date('d-m-Y h:i A', $order->date) }} |
{{ translate('Total amount') }}
|
{{ single_price($order->grand_total) }}
|
{{ translate('Payment method') }} |
{{ translate(ucfirst(str_replace('_', ' ', $order->payment_type))) }} |
{{ translate('Additional Info') }} |
{{ $order->additional_info }} |
# |
{{ translate('Photo') }} |
{{ translate('Description') }} |
{{ translate('Delivery Type') }} |
{{ translate('Qty') }}
|
{{ translate('Price') }} |
{{ translate('Total') }} |
@foreach ($order->orderDetails as $key => $orderDetail)
{{ $key + 1 }} |
@if ($orderDetail->product != null && $orderDetail->product->auction_product == 0)
@elseif ($orderDetail->product != null && $orderDetail->product->auction_product == 1)
@else
{{ translate('N/A') }}
@endif
|
@if ($orderDetail->product != null && $orderDetail->product->auction_product == 0)
{{ $orderDetail->product->getTranslation('name') }}
{{ $orderDetail->variation }}
@elseif ($orderDetail->product != null && $orderDetail->product->auction_product == 1)
{{ $orderDetail->product->getTranslation('name') }}
@else
{{ translate('Product Unavailable') }}
@endif
|
@if ($order->shipping_type != null && $order->shipping_type == 'home_delivery')
{{ translate('Home Delivery') }}
@elseif ($order->shipping_type == 'pickup_point')
@if ($order->pickup_point != null)
{{ $order->pickup_point->getTranslation('name') }}
({{ translate('Pickup Point') }})
@else
{{ translate('Pickup Point') }}
@endif
@endif
|
{{ $orderDetail->quantity }} |
{{ single_price($orderDetail->price / $orderDetail->quantity) }} |
{{ single_price($orderDetail->price) }} |
@endforeach
@if ($order->product_storehouse_total > 0)
{{ translate('Storehouse Price') }} :
|
{{ single_price($order->product_storehouse_total) }}
|
{{ translate('Profit') }} :
|
{{ single_price($order->grand_total - $order->product_storehouse_total) }}
|
@endif
{{ translate('Sub Total') }} :
|
{{ single_price($order->orderDetails->sum('price')) }}
|
{{ translate('Tax') }} :
|
{{ single_price($order->orderDetails->sum('tax')) }}
|
{{ translate('Shipping') }} :
|
{{ single_price($order->orderDetails->sum('shipping_cost')) }}
|
{{ translate('Coupon') }} :
|
{{ single_price($order->coupon_discount) }}
|
{{ translate('TOTAL') }} :
|
{{ single_price($order->grand_total) }}
|
@php error_reporting(0); @endphp