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

{{ __('Order Details') }}

{{ __('Order Id') }}: #{{ $order->prefix . $order->order_code }}
{{ $order->created_at->format('d M, Y h:i A') }}
{{ __('Order Status') }}: {{ $order->order_status }}
{{ __('Payment Status') }}: {{ $order->payment_status }}
{{ __('Payment Method') }}: {{ $order->payment_method }}
@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) }}
{{ __('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 }} @hasPermission('admin.order.payment.status.toggle') @endhasPermission
@hasPermission('admin.rider.assign.order') @if ($order->order_status->value != 'Pending')
{{ __('Assign Rider') }}
@if ($order->driverOrder) {{ $order->driverOrder->driver?->user?->fullName }} @else @endif
@endif @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 }}
@csrf
@endsection