@extends('admin.layout.master') @section('title', __('admin.order_details') . ' #' . $order->id) @section('styles') @endsection @section('content')
{{ __('admin.order_details') }} #{{ $order->id }}
{{ __('admin.back') }}
{{ __('admin.order_information') }}
{{ __('admin.order_id') }} {{ $order->id }}
{{ __('admin.customer') }} {{ $order->user->name ?? 'N/A' }}
{{ __('admin.phone') }} {{ $order->phone }}
{{ __('admin.address') }} {{ $order->address ? $order->address->full_address : 'N/A' }}
{{ __('admin.area') }} {{ $order->address && $order->address->area ? $order->address->area->name : 'N/A' }}
{{ __('admin.status') }} {{ __('admin.' . $order->status) }}
{{ __('admin.driver') }} {{ $order->driver ? $order->driver->name : 'Unassigned' }} @if ($order->driver) {{ __('admin.track_driver') }} @endif
{{ __('admin.subtotal') }} {{ number_format($order->subtotal, 2) }}
{{ __('admin.vat_amount') }} {{ number_format($order->vat_amount, 2) }}
{{ __('admin.discount') }} {{ number_format($order->discount_value, 2) }}
{{ __('admin.total') }} {{ number_format($order->total, 2) }}
{{ __('admin.note') }} {{ $order->note ?? 'N/A' }}
{{ __('admin.created_at') }} {{ $order->created_at ? $order->created_at->format('Y-m-d H:i:s') : 'N/A' }}
{{ __('admin.order_items') }}
@foreach ($order->items as $item) @endforeach
{{ __('admin.product') }} {{ __('admin.quantity') }} {{ __('admin.price') }} {{ __('admin.size') }} {{ __('admin.details') }}
{{ $item->product->name ?? 'N/A' }} {{ $item->quantity }} {{ number_format($item->price, 2) }} {{ $item->product_size ? $item->product_size->name : 'N/A' }} {{ __('admin.length') }}: {{ $item->length ?? 'N/A' }}
{{ __('admin.width') }}: {{ $item->width ?? 'N/A' }}
{{ __('admin.number_of_person') }}: {{ $item->number_of_person ?? 'N/A' }}
@if ($order->images->count() > 0)
{{ __('admin.order_images') }}
@foreach ($order->images as $image)
Order Image
@endforeach
@endif @if ($order->status === 'ordered')
@csrf
@csrf
@endif @if ($order->status === 'confirmed' && !$order->driver_id) {{ __('admin.assign_driver') }} @endif
@endsection