@extends('dashboard.layout') @section('title','تفاصيل الطلب #'.$order->id) @section('content')

ملخص الطلب

عرض الفاتورة
@foreach($order->items as $item) @endforeach @if($order->discount > 0) @endif
المنتجالكميةالسعرالإجمالي
{{ $item->product_name ?? $item->product?->name }} {{ $item->quantity }} {{ number_format($item->unit_price,2) }} {{ number_format($item->unit_price * $item->quantity,2) }}
المجموع{{ number_format($order->subtotal,2) }}
الخصم-{{ number_format($order->discount,2) }}
الشحن{{ number_format($order->shipping ?? 0,2) }}
الإجمالي النهائي{{ number_format($order->total_amount,2) }}

تفاصيل العميل

الاسم
{{ $order->customer_name ?? '—' }}
البريد
{{ $order->customer_email ?? '—' }}
الهاتف
{{ $order->customer_phone ?? '—' }}
العنوان
{{ $order->shipping_address ?? '—' }}

الحالة
{{ $order->status }}
بوابة الدفع
{{ strtoupper($order->payment_gateway ?? '—') }}
@csrf @method('PUT')
@endsection