@extends('dashboard.layout') @section('title', 'عرض الفاتورة') @section('content')
🧾 فاتورة الطلب #{{ $order->id }}
📥 تحميل PDF

العميل: {{ $order->user->name ?? '-' }}

التاريخ: {{ $order->created_at->format('Y-m-d') }}

الحالة: {{ ucfirst($order->status) }}


@foreach($order->items as $item) @endforeach
المنتج الكمية السعر الإجمالي
{{ $item->product->name ?? '-' }} {{ $item->quantity }} {{ number_format($item->price, 2) }} $ {{ number_format($item->price * $item->quantity, 2) }} $
الإجمالي الكلي: {{ number_format($order->total, 2) }} $
@endsection