@extends('layouts.app') @section('header-title', __('Order Details')) @section('content')

{{ __('Order Details') }}

icon {{ __('Download Invoice') }}
#{{ $order->prefix . $order->order_code }}
{{ $order->payment_status }}
{{ $order->payment_method }}
{{ $order->order_status }}
{{ $order->created_at->format('M d, Y') }}
{{ $order->delivery_date ? Carbon\Carbon::parse($order->delivery_date)->format('M d, Y') : 'N/A' }}
@if ($businessModel == 'multi') @endif @foreach ($order->products as $key => $product) @if ($businessModel == 'multi') @endif @endforeach
{{ __('SL') }} {{ __('Product') }}{{ __('Shop') }}{{ __('Quantity') }} {{ __('Size') }} {{ __('Color') }} {{ __('Price') }} {{ __('Total') }}
{{ $key + 1 }}
{{ $product->name }}
{{ $product->shop?->name }}{{ $product->pivot->quantity }} {{ $product->pivot->size ?? 'N/A' }} {{ $product->pivot->color ?? '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) }}
{{ __('Sub Total') }}
{{ showCurrency($order->total_amount) }}
{{ __('Coupon Discount') }}
{{ showCurrency($order->coupon_discount) }}
{{ __('Delivery Charge') }}
{{ showCurrency($order->delivery_charge) }}
{{ __('VAT & Tax') }}
{{ showCurrency($order->tax_amount) }}
{{ __('Grand Total') }}
{{ showCurrency($order->payable_amount) }}
{{ __('Customer Info') }}
{{ __('Name') }}: {{ $order->customer?->user?->name }}
{{ __('Phone') }}: {{ $order->customer?->user?->phone }}
{{ __('Order & Shipping Info') }}
{{ __('Change Order Status') }}
{{ __('Payment Status') }}
{{ $order->payment_status }} @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 }}
@endsection @push('css') @endpush