@php $purchase = $purchase ?? null; $oldItems = old('items'); $items = $oldItems ?: ($purchase?->items->map(fn ($i) => [ 'product_id' => $i->product_id, 'quantity' => $i->quantity, 'price' => $i->price, ])->all() ?: [['product_id' => '', 'quantity' => 1, 'price' => 0]]); @endphp
بيانات أمر الشراء
الأصناف
@foreach ($items as $index => $row) @endforeach
المنتج الكمية سعر الوحدة الإجمالي
الإجمالي قبل الخصم 0.00 {{ setting('currency', 'ر.س') }}
الخصم
الضريبة
المبلغ المدفوع
الإجمالي النهائي 0.00 {{ setting('currency', 'ر.س') }}
إلغاء
@push('scripts') @endpush