@extends('admin.layouts.master') @section('title', 'Order Details') @section('content')

Order Details

Customer
{{-- View Profile --}}
  • @if ($order->user->image) @else @endif
    {{ $order->user->first_name . ' ' . $order->user->last_name }}

    Customer

  • {{--
  • {{ $order->user->email }}
  • {{ $order->user->phone }}
  • --}}
@if ($order->status == 'cancelled')
Order has been cancelled

REASON FOR CANCELLATION: {{ $order->cancelled_reason }}

@endif
Order {{ $order->order_number }} {{-- 'pending','approved','decline','packing','performa_invoice','invoice_review','delivered','cancelled', 'shipping', 'invoiced' ,'packed','shipped' --}} @if ($order->status == 'pending') Pending @elseif($order->status == 'approved') Approved @elseif($order->status == 'decline') Decline @elseif($order->status == 'packing') Packing @elseif($order->status == 'performa_invoice') Performa Invoice @elseif($order->status == 'invoice_review') Invoice Review @elseif($order->status == 'delivered') Delivered @elseif($order->status == 'cancelled') Cancelled @elseif($order->status == 'shipping') Shipping @elseif($order->status == 'invoiced') Invoiced @elseif($order->status == 'packed') Packed @elseif($order->status == 'shipped') Shipped @endif
{{-- Invoice --}} Packing {{-- print products --}} Print
@foreach ($order->orderDetails as $orderDetail) @php $product = $orderDetail->product; @endphp {{-- --}} @endforeach
Product Image Product Details Quantity
{{ $product->name }} @if($product->label) ({{ $product->label->name }}) @endif

{{ $product->specification }}

{{--

Color: Pink

Size: M

--}}
{{ $orderDetail->quantity }}
@foreach($order->orderLogs as $orderLog)
{{ $orderLog->description }}

{{ $orderLog->created_at->format('D, d M Y - H:iA') }}

@endforeach {{--
{{ $order_placed->description }}

{{ $order_placed->created_at->format('D, d M Y - h:i A') }}

@php $order_approved = $order->orderLogs->where('action', 'approved')->last(); @endphp @if ($order_approved)
{{ $order_approved->description }}

{{ $order_approved->created_at->format('D, d M Y - h:i A') }}

@endif
Your Item has been picked up by courier partner

Fri, 17 Dec 2021 - 9:45AM

RQK Logistics - MFDS1400457854
Your item has been shipped.

Sat, 18 Dec 2021 - 4.54PM

--}}
{{--
Billing Address
    @php $billingAddress = $order->billingAddress; @endphp @if ($billingAddress)
  • {{ $billingAddress->first_name . ' ' . $billingAddress->last_name }}
  • {{ $billingAddress->phone }}
  • {{ $billingAddress->address_line_1 }}
  • @if ($billingAddress->address_line_2)
  • {{ $billingAddress->address_line_2 }}
  • @endif
  • {{ $billingAddress->city . ' - ' . $billingAddress->post_code }}
  • @elseif ($order->same_as_pickup_address)
  • Same as pickup address
  • @elseif ($order->same_as_shipping_address)
  • Same as shipping address
  • @else
  • No billing address found
  • @endif {{--
  • United States
@if ($order->shippingAddress) Shipping Address @elseif ($order->pickupAddress) Pickup Address @endif
    @php $shippingAddress = $order->shippingAddress; @endphp @if ($shippingAddress)
  • {{ $shippingAddress->first_name . ' ' . $shippingAddress->last_name }}
  • {{ $shippingAddress->phone }}
  • {{ $shippingAddress->address_line_1 }}
  • @if ($shippingAddress->address_line_2)
  • {{ $shippingAddress->address_line_2 }}
  • @endif
  • {{ $shippingAddress->city . ' - ' . $shippingAddress->post_code }}
  • @endif @php $pickup_address = $order->pickupAddress; @endphp @if ($pickup_address)
  • {{ $pickup_address->name}}
  • {{ $pickup_address->phone }}
  • {{ $pickup_address->note }}
  • @endif
Payment Details

Payment Method:

@php $paymentMethod = $order->payment_method; $paymentMethod = str_replace('_', ' ', $paymentMethod); $paymentMethod = ucwords($paymentMethod); @endphp {{ $paymentMethod }}

Payment Status:

status are paid , credit, pending @if ($order->payment_status == 'paid') Paid @elseif($order->payment_status == 'credit') Credit @else Pending @endif

Total Amount:

£415.96
--}}
@endsection