@extends('layouts.front') @section('content')
@include('includes.user.sidebar')

@lang('Purchase Items')

@include('includes.user.order-process')

@lang("Order")# {{ $order->order_number }}[{{ $order->status }}]

@lang('Order Date') {{ date('d-M-Y', strtotime($order->created_at)) }}
@lang('Print Order')
@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 Address')
  • {{ $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')
  • @lang('Payment Status :') @if ($order->payment_status == 'Pending') {{ __('Unpaid') }} @else {{ __('Paid') }} @endif
  • @lang('Tax :') {{ \PriceHelper::showOrderCurrencyPrice($order->tax / $order->currency_value, $order->currency_sign) }}
  • @lang('Paid Amount :') {{ \PriceHelper::showOrderCurrencyPrice($order->pay_amount * $order->currency_value, $order->currency_sign) }}
  • @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 ($cart['items'] as $product) @endforeach
@lang('ID#') @lang('Product Name') @lang('Details') @lang('Unit Price') @lang('Total Price')
{{ $product['item']['id'] }}
@if ($product['item']['user_id'] != 0) @php $user = App\Models\User::find($product['item']['user_id']); @endphp @if (isset($user)) {{ mb_strlen($product['item']['name'], 'UTF-8') > 50 ? mb_substr($product['item']['name'], 0, 50, 'UTF-8') . '...' : $product['item']['name'] }} @else {{ mb_strlen($product['item']['name'], 'UTF-8') > 50 ? mb_substr($product['item']['name'], 0, 50, 'UTF-8') . '...' : $product['item']['name'] }} @endif @else {{ mb_strlen($product['item']['name'], 'UTF-8') > 50 ? mb_substr($product['item']['name'], 0, 50, 'UTF-8') . '...' : $product['item']['name'] }} @endif @if ($product['item']['type'] != 'Physical') @if ($order->payment_status == 'Completed') @if ($product['item']['file'] != null) {{ __('Download') }} @else {{ __('Download') }} @endif @if ($product['license'] != '') {{ __('View License') }} @endif @endif @endif
Licenes key: ...
  • @lang('Quantity:') {{ $product['qty'] }}
  • @if (!empty($product['size']))
  • @lang('Size:') {{ $product['item']['measure'] }}{{ str_replace('-', '', $product['size']) }}
  • @endif @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
{{ \PriceHelper::showCurrencyPrice($product['item_price'] * $order->currency_value) }} {{ \PriceHelper::showCurrencyPrice($product['price'] * $order->currency_value) }} {{ $product['discount'] == 0 ? '' : '(' . $product['discount'] . '% ' . __('Off') . ')' }}
@endsection