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

{{ __('Order Details') }}

icon Scarica Ricevuta
#{{ $order->prefix . $order->order_code }}
payment_status->value == 'Pending') style="color: red;" @endif> @if($order->payment_status->value == 'Pending') {{ __('Ordine rifiutato') }} @elseif($order->payment_status->value == 'Paid') {{ __('Pagato') }} @else {{ $order->payment_status->value }} @endif
{{ $order->instruction }}
{{ $order->order_status }}
{{ $order->created_at->format('M d, Y') }}
{{ $order->customer?->user?->driving_lience }}
@if ($businessModel == 'multi') @endif @foreach ($order->products as $key => $product) @if ($businessModel == 'multi') @endif @endforeach
{{ __('SL') }} {{ __('Product') }}{{ __('Shop') }}{{ __('Quantity') }} {{ __('Price') }} {{ __('Total') }}
{{ $key + 1 }}
{{ $product->name }}
{{ $product->shop?->name }}{{ $product->pivot->quantity }} @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') }} {{ __('Last Name') }} : {{ $order->customer?->user?->name }} {{ $order->customer?->user?->last_name }}
{{ __('Phone') }}: {{ $order->customer?->user?->phone }}
{{ __('Order & Shipping Info') }}
{{ __('Change Order Status') }}
{{ __('Payment Status') }}
@if($order->payment_status->value == 'Pending') {{ __('Ordine rifiutato') }} @elseif($order->payment_status->value == 'Paid') {{ __('Pagato') }} @else {{ $order->payment_status->value }} @endif @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') }} {{ __('Last Name') }}: {{ $order->customer?->user?->name }} {{ $order->customer?->user?->last_name }}
{{ __('Phone') }}: {{ $order->address?->phone }}
{{ __('Address Type') }}: {{ $order->address?->address_type }}
{{ __('Area') }}: {{ $order->address?->area }}
{{ __('Flat No') }}: {{ $order->address?->flat_no }},
{{ __('Post Code') }}: {{ $order->address?->post_code }}
{{ __('Address Line') }}: {{ $order->address?->address_line }}
{{ __('Address Line') }} 2: {{ $order->address?->address_line2 }}
@csrf
@endsection @push('css') @endpush