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

Order Details

--}}
Orders List Edit Delete Detail @if ($order->invoices->count() > 0) Edit Invoice @else Create Invoice @endif
@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
@foreach ($order->orderDetails as $orderDetail) @php $product = $orderDetail->product; @endphp {{-- --}} @endforeach
Product Details Item Price Quantity Total Amount
£{{ $orderDetail->price }} {{ $orderDetail->quantity }}
£{{ $orderDetail->total_amount }}
@if (!empty($order->discount) && $order->discount > 0) --}} @endif @if($order->vat_tax_amount != null && $order->vat_tax_amount > 0) @endif @if ($order->shipping_charges != null && $order->shipping_charges > 0) @endif {{-- --}}
Items Sub Total : £{{ $order->total_amount }}
Discount {{-- (VELZON15) : :-£{{ $order->discount }}
VAT Tax ({{ $order->vat_tax_percentage }}%) : +£{{ $order->vat_tax_amount }}
Shipping Charges : +£{{ $order->shipping_charges }}
Estimated Tax : £44.99
Total (GBP) : £{{ $order->grand_total }}
{{--
@foreach($order->orderLogs as $orderLog)
{{ $orderLog->description }}

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

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

    Customer

    {{ $order->user->email }}
    {{ $order->user->phone }}
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 {{--
  • United States
  • --}}
Payment Details

Payment Method:

{{ $order->payment_method == 'Stripe' ? 'Payment before Delivery' : 'Payment after Delivery' }}

Payment Status:

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

Total Amount:

£{{ $order->grand_total }}
Order Status
@foreach($order->orderLogs as $orderLog)
{{ $orderLog->description }}

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

@endforeach
@endsection