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

{{ __('Order Details') }}

{{ __('Order Id') }}: #{{ $order->prefix . $order->order_code }} @if ($order->orderGift) @endif
{{ $order->created_at->format('d M, Y h:i A') }}
{{ __('Order Status') }}: {{ __($order->order_status->value) }}
{{ __('Payment Status') }}: {{ __($order->payment_status->value) }}
{{ __('Payment Method') }}: {{ __($order->payment_method->value) }}
@foreach ($order->products as $key => $product) @endforeach
{{ __('SL') }} {{ __('Product') }} {{ __('Quantity') }} {{ __('Size') }} {{ __('Color') }} {{ __('Price') }} {{ __('Total') }}
{{ $key + 1 }}
{{ ucfirst($product->name) }} @if ($product->pivot->is_gift) @endif
{{ $product->pivot->quantity }} {{ $product->pivot->color ?? 'N/A' }} {{ $product->pivot->size ?? 'N/A' }} @php $price = $product->pivot->price > 0 ? $product->pivot->price : ($product->discount_price > 0 ? $product->discount_price : $product->price); @endphp {{ showCurrency($price) }} {{ showCurrency($product->pivot->quantity * $price) }}
{{ __('Total Price') }}:
{{ __('Coupon Discount') }}:
{{ __('Delivery Charge') }}:
{{ __('VAT & Tax') }}:
{{ __('Grand Total') }}:
{{ showCurrency($order->total_amount) }}
{{ showCurrency($order->coupon_discount) }}
{{ showCurrency($order->delivery_charge) }}
{{ showCurrency($order->tax_amount) }}
{{ showCurrency($order->payable_amount) }}
{{ __('Order & Shipping Info') }}
{{ __('Change Order Status') }}
{{ __('Payment Status') }}
{{ __($order->payment_status->value) }} @hasPermission('shop.order.payment.status.toggle') @endhasPermission
{{ __('Shipping Address') }}
{{ __('Name') }}: {{ $order->address?->name }}
{{ __('Phone') }}: {{ $order->address?->phone }}
{{ __('Address Type') }}: {{ $order->address?->address_type }}
{{ __('Area') }}: {{ $order->address?->area }}
{{ __('Road No') }}: {{ $order->address?->road_no }},
{{ __('Flat No') }}: {{ $order->address?->flat_no }},
{{ __('House No') }}: {{ $order->address?->house_no }}
{{ __('Post Code') }}: {{ $order->address?->post_code }}
{{ __('Address Line') }}: {{ $order->address?->address_line }}
{{ __('Address Line') }} 2: {{ $order->address?->address_line2 }}
{{ __('Customer Info') }}
{{ __('Name') }}: {{ $order->customer?->user?->name }}
{{ __('Phone') }}: {{ $order->customer?->user?->phone }}
@endsection