@extends('dashboard.layout') @section('title', 'عرض الفاتورة') @section('content')
العميل: {{ $order->user->name ?? '-' }}
التاريخ: {{ $order->created_at->format('Y-m-d') }}
الحالة: {{ ucfirst($order->status) }}
| المنتج | الكمية | السعر | الإجمالي |
|---|---|---|---|
| {{ $item->product->name ?? '-' }} | {{ $item->quantity }} | {{ number_format($item->price, 2) }} $ | {{ number_format($item->price * $item->quantity, 2) }} $ |
| الإجمالي الكلي: | {{ number_format($order->total, 2) }} $ | ||