@extends('layouts.front') @section('content')

@lang('THANK YOU FOR YOUR PURCHASE')

@lang("We'll email you an order confirmation with details and tracking info")
@lang('Get Back to Our Homepage')

@lang('Order#') {{ $order->order_number }}

@lang('Order Date') {{ date('d-M-Y', strtotime($order->created_at)) }}

@if ($order->dp == 1)
@lang('Shipping Address')

{{ $order->customer_name }}

{{ $order->customer_address }} {{ $order->customer_city }}-{{ $order->customer_zip }}

{{ $order->customer_phone }}

{{ $order->customer_email }}

@else @if ($order->shipping == 'shipto')
@if ($order->dp == 0) @lang('Shipping Address') @else @lang('User Information') @endif

{{ $order->shipping_name == null ? $order->customer_name : $order->shipping_name }}

{{ $order->shipping_address == null ? $order->customer_address : $order->shipping_address }}
{{ $order->shipping_city == null ? $order->customer_city : $order->shipping_city }}-{{ $order->shipping_zip == null ? $order->customer_zip : $order->shipping_zip }}

{{ $order->shipping_phone == null ? $order->customer_phone : $order->shipping_phone }}

{{ $order->shipping_email == null ? $order->customer_email : $order->shipping_email }}

@else
@lang('PickUp Location')

{{ $order->pickup_location }}

@endif @endif @if ($order->dp == 0)
@lang('Billing Address')

{{ $order->customer_name }}

{{ $order->customer_address }} {{ $order->customer_city }}-{{ $order->customer_zip }}

{{ $order->customer_phone }}

{{ $order->customer_email }}

@endif
@lang('Payment Information')
@if ($gs->multiple_shipping == 0) @if ($order->shipping_cost != 0)

{{ $order->shipping_title }}: {{ \PriceHelper::showOrderCurrencyPrice($order->shipping_cost, $order->currency_sign) }}

@endif @if ($order->packing_cost != 0)

{{ $order->packing_title }}: {{ \PriceHelper::showOrderCurrencyPrice($order->packing_cost, $order->currency_sign) }}

@endif @else @if ($order->shipping_cost != 0)

{{ __('Shipping Cost') }}: {{ \PriceHelper::showOrderCurrencyPrice($order->shipping_cost * $order->currency_value, $order->currency_sign) }}

@endif @if ($order->packing_cost != 0)

{{ __('Packing Cost') }}: {{ \PriceHelper::showOrderCurrencyPrice($order->packing_cost * $order->currency_value, $order->currency_sign) }}

@endif @endif

@lang('Tax :') {{ \PriceHelper::showOrderCurrencyPrice($order->tax / $order->currency_value, $order->currency_sign) }}

@lang('Paid Amount:') @if ($order->method != 'Wallet') {{ \PriceHelper::showOrderCurrencyPrice( ($order->pay_amount + $order->wallet_price) * $order->currency_value, $order->currency_sign, ) }} @else {{ \PriceHelper::showOrderCurrencyPrice($order->wallet_price * $order->currency_value, $order->currency_sign) }} @endif

@lang('Payment Method:') {{ $order->method }} @if ($order->method != 'Cash On Delivery' && $order->method != 'Wallet')
{{ __('Transaction ID:') }} {{ $order->txnid }} @endif

@if ($order->dp == 0)
@lang('Shipping Method')
@if ($order->shipping == 'shipto')

{{ __('Ship To Address') }}

@else

{{ __('Pick Up') }}

@endif
@endif

@lang('Ordered Products:')

@foreach ($tempcart->items as $product) @endforeach
@lang('Product Image') @lang('Product Details') @lang('Unit Price') @lang('Total')
{{ $product['item']['name'] }}

@lang('Quantity:') {{ $product['qty'] }}

Size: @if (!empty($product['size'])) {{ __('Size') }}: {{ $product['item']['measure'] }}{{ str_replace('-', ' ', $product['size']) }}
@endif

@lang('Color:') @if (!empty($product['color']))

{{ __('Color') }}:
@endif

@if (!empty($product['keys'])) @foreach (array_combine(explode(',', $product['keys']), explode(',', $product['values'])) as $key => $value)

{{ ucwords(str_replace('_', ' ', $key)) }}: {{ $value }}

@endforeach @endif

@lang('Unit Price:') {{ \PriceHelper::showCurrencyPrice($product['item_price'] * $order->currency_value) }}

@lang('Total Price:'){{ \PriceHelper::showCurrencyPrice($product['price'] * $order->currency_value) }} {{ $product['discount'] == 0 ? '' : '(' . $product['discount'] . '% ' . __('Off') . ')' }}

{{ \PriceHelper::showCurrencyPrice($product['item_price'] * $order->currency_value) }} {{ \PriceHelper::showCurrencyPrice($product['price'] * $order->currency_value) }} {{ $product['discount'] == 0 ? '' : '(' . $product['discount'] . '% ' . __('Off') . ')' }}
@endsection