@extends('user.layout') @php $user = Auth::guard('web')->user(); $permissions = []; if (!empty($user)) { $permissions = \App\Http\Helpers\UserPermissionHelper::packagePermission($user->id); $permissions = json_decode($permissions, true); } @endphp @section('content')
{{ __('Order') }} #{{ $order->order_number }}
{{ __('Payment Status') }} :
@if ($order->payment_status == 'Pending' || $order->payment_status == 'pending') {{ convertUtf8($order->payment_status) }} @elseif ($order->payment_status == 'Completed') {{ convertUtf8($order->payment_status) }} @elseif ($order->payment_status == 'Rejected') {{ convertUtf8($order->payment_status) }} @endif
{{ __('Order Status') }} :
@if ($order->order_status == 'pending') {{ ucfirst($order->order_status) }} @elseif ($order->order_status == 'processing') {{ ucfirst($order->order_status) }} @elseif ($order->order_status == 'completed') {{ ucfirst($order->order_status) }} @elseif ($order->order_status == 'rejected') {{ ucfirst($order->order_status) }} @endif
{{ __('Shipping Method') }} :
{{ $order->shipping_method }}
{{ __('Cart Total') }} :
{{ textPrice($order->currency_text_position, $order->currency_code, $order->cart_total) }}
{{ __('Discount') }} :
- @if (!empty($order->discount)) {{ textPrice($order->currency_text_position, $order->currency_code, $order->discount) }} @else {{ textPrice($order->currency_text_position, $order->currency_code, 0) }} @endif
{{ __('Subtotal') }} :
{{ textPrice($order->currency_text_position, $order->currency_code, round($order->cart_total - $order->discount, 2)) }}
{{ __('Shipping Charge') }} :
+ @if (!empty($order->shipping_charge)) {{ textPrice($order->currency_text_position, $order->currency_code, $order->shipping_charge) }} @else {{ textPrice($order->currency_text_position, $order->currency_code, 0) }} @endif
@if ($order->tax > 0)
{{ __('GST Tax') }} ({{ is_null($order->tax_percentage) ? 0 : $order->tax_percentage }}%) :
+ @if (!empty($order->tax)) {{ textPrice($order->currency_text_position, $order->currency_code, $order->tax) }} @else {{ textPrice($order->currency_text_position, $order->currency_code, 0) }} @endif
@endif
{{ __('Total') }} :
@if (!empty($order->total)) {{ textPrice($order->currency_text_position, $order->currency_code, $order->total) }} @else {{ textPrice($order->currency_text_position, $order->currency_code, 0) }} @endif
{{ __('Payment Method') }} :
{{ convertUtf8($order->method) }}
{{ __('Order Date') }} :
{{ convertUtf8($order->created_at->format('d M Y, h:i A')) }}
@if ($order->gateway_type == 'offline' && !empty($order->receipt))
{{ __('Payment Receipt Proof') }} :
Receipt Proof

{{ __('Click image to view/download full resolution') }}

@endif
{{ __('Shipping Details') }}
{{ __('Name') }} :
{{ convertUtf8($order->shipping_fname . ' ' . $order->shipping_lname) }}
{{ __('Email') }} :
{{ convertUtf8($order->shipping_email) }}
{{ __('Phone') }} :
{{ $order->shipping_number }}
{{ __('City') }} :
{{ convertUtf8($order->shipping_city) }}
{{ __('State') }} :
{{ !is_null($order->shipping_state) ? convertUtf8($order->shipping_state) : '-' }}
{{ __('Country') }} :
{{ convertUtf8($order->shipping_country) }}
{{ __('Address') }} :
{{ convertUtf8($order->shipping_address) }}
{{ __('Billing Details') }}
@if (!is_null(@$order->customer->username)) @endif
{{ __('Name') }} :
{{ convertUtf8($order->billing_fname . ' ' . $order->billing_lname) }}
{{ __('Email') }} :
{{ convertUtf8($order->billing_email) }}
{{ __('Phone') }} :
{{ $order->billing_number }}
{{ __('City') }} :
{{ convertUtf8($order->billing_city) }}
{{ __('State') }} :
{{ !is_null($order->billing_state) ? convertUtf8($order->billing_state) : '-' }}
{{ __('Country') }} :
{{ convertUtf8($order->billing_country) }}
{{ __('Address') }} :
{{ convertUtf8($order->billing_address) }}
@php $shipping_gateways = App\Models\User\UserShippingGateway::where('user_id', Auth::guard('web')->user()->id)->where('status', 1)->get(); @endphp @if (is_array($permissions) && in_array('Order Tracking Feature', $permissions))
{{ __('Shipment Tracking') }}
@csrf
@if($order->tracking_url) @endif
{{ __('Tracking Progress') }}
{{ __('Order Placed') }}
{{ $order->created_at->format('d M Y, h:i A') }}
{{ __('Your order has been placed successfully.') }}
@if($order->order_status != 'pending') @endif
{{ __('Processing') }}
{{ $order->order_status != 'pending' ? $order->updated_at->format('d M Y, h:i A') : '-' }}
{{ __('Your order is being prepared.') }}
@if($order->order_status == 'completed') @endif
{{ __('In Transit') }}
{{ $order->order_status == 'completed' ? $order->updated_at->format('d M Y, h:i A') : ($order->order_status == 'processing' ? __('On the way') : '-') }}
{{ __('Your order is on the way.') }}
{{ __('Out for Delivery') }}
{{ __('Out for delivery soon.') }}
{{ __('Delivered') }}
{{ __('Package delivered to destination.') }}
{{ __('Expected Delivery:') }} {{ $order->created_at->addDays(3)->format('d M Y') }}
@endif

{{ __('Order Item(s)') }}

@foreach ($order->orderitems as $key => $item) @php $variant_total = 0; $item_price = $item->price; $slug = ''; if (!empty($itemLang)) { $slug = App\Models\User\UserItemContent::where([ ['item_id', $item->item_id], ['language_id', $itemLang->id], ])->pluck('slug')->first(); } else { $slug = App\Models\User\UserItemContent::where('item_id', $item->item_id)->pluck('slug')->first(); } @endphp @endforeach
# {{ __('Image') }} {{ __('Name') }} {{ __('Price') }} {{ __('Qty') }} {{ __('Total') }}
{{ $key + 1 }} product {{ truncateString(convertUtf8($item->title), 50) }} @php $variations = json_decode($item->variations); @endphp @if (!is_null($variations))

{{ __('Variations') . ':' }}

    @foreach ($variations as $k => $vitm) @php $name = isset($vitm->name) ? $vitm->name : ''; $key = is_string($k) ? $k : ''; @endphp
  • {{ $key }} ({{ $name }}) : {{ currencyTextPrice($order->currency_id, round($vitm->price, 2)) }}
  • @endforeach
@endif
{{ textPrice($order->currency_text_position, $order->currency_code, $item_price) }} {{ $item->qty }} {{ textPrice($order->currency_text_position, $order->currency_code, round($item_price * $item->qty + $variant_total * $item->qty, 2)) }}
@section('scripts') @endsection @endsection