@extends('frontend.layouts.app') @section('content') @php $status = $order->orderDetails->first()->delivery_status; @endphp
{{ translate('A copy or your order summary has been sent to') }} {{ json_decode($order->shipping_address)->email }}
| {{ translate('Order id')}}: | {{ $order->code }} |
| {{ translate('Name')}}: | {{ json_decode($order->shipping_address)->name }} |
| {{ translate('Email')}}: | {{ json_decode($order->shipping_address)->email }} |
| {{ translate('Shipping address')}}: | {{ json_decode($order->shipping_address)->address }}, {{ json_decode($order->shipping_address)->city }}, {{ json_decode($order->shipping_address)->country }} |
| {{ translate('Billing address')}}: | {{ json_decode($order->billing_address)->address }}, {{ json_decode($order->billing_address)->city }}, {{ json_decode($order->billing_address)->country }} |
| {{ translate('Order date')}}: | {{ date('d-m-Y H:i A', $order->date) }} |
| {{ translate('Order status')}}: | {{ ucfirst(str_replace('_', ' ', $status)) }} |
| {{ translate('Total order amount')}}: | {{ single_price($order->grand_total) }} |
| {{ translate('Payment method')}}: | {{ ucfirst($payoption) }} |
| # | {{ translate('Product')}} | {{ translate('Variation')}} | {{ translate('Quantity')}} | {{ translate('Price')}} |
|---|---|---|---|---|
| {{ $key+1 }} | @if ($orderDetail->product != null) {{ $orderDetail->product->name }} @else {{ translate('Product Unavailable') }} @endif | {{ $orderDetail->variation }} | {{ $orderDetail->quantity }} | {{ single_price($orderDetail->price) }} |
| {{ translate('Subtotal')}} | {{ single_price(@$order->orderDetails->sum('price')) }} |
|---|---|
| {{ translate('Shipping & Handling Charge')}} | @if(@$order->grand_total + @$order->coupon_discount < minShippingAmount()) {{ single_price(shippingCharge()) }} @else {{ single_price(0) }} @endif |
| {{ translate('Coupon Discount')}} | {{ single_price($order->coupon_discount) }} |
| {{ translate('Total')}} | {{single_price($order->grand_total)}} |