زيرو ون للخياطة

الرقم الضريبي: 310128065800003

فاتورة ضريبية مبسطة Simplified Tax Invoice


رقم الفاتورة: {{ $invoice->id }}
اسم العميل: {{ $invoice->customer->name ?? 'عميل عام' }} رقم الجوال: {{ $invoice->customer->phone ?? '-' }}
تاريخ الفاتورة: {{ $invoice->created_at->format('d/m/Y H:i A') }} تاريخ الاستلام: {{ $invoice->created_at->format('d/m/Y H:i A') ?? '-' }}
طول امام طول خلف عرض الكتف طول اليد وسع اليد وسط اليد اسفل اليد وسع الصدر
{{ $invoice->customer->front_length ?? '0' }} {{ $invoice->customer->back_length ?? '0' }} {{ $invoice->customer->shoulder_width ?? '0' }} {{ $invoice->customer->sleeve_length ?? '0' }} {{ $invoice->customer->arm_width ?? '0' }} {{ $invoice->customer->arm_mid_width ?? '0' }} {{ $invoice->customer->arm_bottom_width ?? '0' }} {{ $invoice->customer->chest_width ?? '0' }}
رقبةقلابرقبة سادةوسع خطوةزرارطقطقتركيبةعطفة يد ع
{{ $invoice->customer->neck_plain == 1 ? 'رقبة' : '-' }} {{ $invoice->customer->collar_size > 0 ? 'قلاب' : '-' }} {{ $invoice->customer->neck_size > 0 ? 'سادة' : '-' }} {{ $invoice->customer->step_width ?? '0' }} {{ $invoice->customer->extra_button ?? '-' }} {{ $invoice->customer->extra_taqtak ?? '-' }} {{ $invoice->customer->extra_composition ?? '-' }} {{ $invoice->customer->extra_accessory ?? '-' }}
@php // جلب إجمالي الخصم المخزن في الفاتورة $totalDiscount = $invoice->discount ?? 0; $itemCount = $items->count(); @endphp @foreach($items as $item) @php // توزيع الخصم بالتساوي على عدد الأصناف (أو يمكنك وضعه كاملاً إذا كان صنف واحد) $rowDiscount = ($itemCount > 0) ? ($totalDiscount / $itemCount) : 0; $rowSubtotal = $item->qty * $item->price; $rowTaxable = $rowSubtotal - $rowDiscount; $rowTax = $rowTaxable * 0.15; $rowTotal = $rowTaxable + $rowTax; @endphp @endforeach
رقم القسم (التصنيف) اسم الصنف (المنتج) الكمية سعر الوحدة الخصم الضريبة (15%) الإجمالي
{{ $loop->iteration }} {{ $item->group_ar }} {{ $item->product->product_name ?? 'منتج غير موجود' }} {{ number_format($item->qty, 2) }} {{ number_format($item->price, 2) }} {{ number_format($rowDiscount, 2) }} {{ number_format($rowTax, 2) }} {{ number_format($rowTotal, 2) }}
@if($styles) @foreach($styles as $key => $styleName)

{{ $styleName }}

@endforeach @endif