@extends('admin.layout.master') @section('title', __('admin.order_details')) @section('content')
{{ $order->user->name ?? 'N/A' }}
@if ($order->payment_method) {{ ucfirst($order->payment_method) }} @else {{ __('admin.no_payment_method') }} @endif
{{ $order->created_at ? $order->created_at->format('M d, Y h:i A') : 'N/A' }}
{{ $order->created_at ? $order->created_at->format('M d, Y h:i A') : 'N/A' }}
{{ $order->driver->name ?? 'N/A' }} - {{ $order->driver->phone ?? 'N/A' }}
| {{ __('admin.product') }} | {{ __('admin.quantity') }} | {{ __('admin.price') }} | {{ __('admin.order_images') }} |
|---|---|---|---|
|
{{ $item->product->name ?? 'N/A' }}
@if ($item->product && $item->product->description)
{{ Str::limit($item->product->description, 50) }} @endif |
{{ $item->quantity }} |
@php
$itemVat = ($item->price * $order->vat_percentage) / 100;
$priceWithVat = $item->price + $itemVat;
@endphp
{{ number_format($priceWithVat, 2) }}
{{ __('admin.currency') }}
{{ __('admin.without_vat') }}: {{ number_format($item->price, 2) }} |
@if ($order->images->isNotEmpty())
@foreach ($order->images as $image)
@else
{{ __('admin.no_images') }}
@endif
|
| {{ __('admin.subtotal') }} | {{ number_format($order->subtotal, 2) }} {{ __('admin.currency') }} | ||
| {{ __('admin.vat') }} ({{ $order->vat_percentage }}%) | {{ number_format($order->vat_amount, 2) }} {{ __('admin.currency') }} | ||
| {{ __('admin.total') }} | {{ number_format($order->total, 2) }} {{ __('admin.currency') }} | ||