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

بيانات الشركة

مصدرة من: Dream Fitness - حلم الرشاقة

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

رقم الطلب: {{ $order->number }}

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

رقم خدمة العملاء : +966554249938

بيانات العميل

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

رقم العميل: {{ $order->user?->mobile ?? '-' }}

@if($order->user?->city_id != null)

المدينة: {{ $order->user?->city?->name ?? '-' }}

@endif

طريقة التوصيل: {{ $order->pick_up_branch ? 'استلام من الفرع' : 'توصيل إلى العنوان' }}

@if($order->pick_up_branch)

الفرع: {{ $order->branch->name ?? '-' }}

@endif

بيانات الشحن

@if(!$order->pick_up_branch)

الشحن: شركة ارميكس

رقم البوليصة: {{ $order->awb_number ?? "-" }}

@endif @if(!$order->pick_up_branch && $order->address)

العنوان: {{ $order->address->name ?? '-' }}

الشارع: {{ $order->address->street_name ?? '-' }}

رقم المبنى: {{ $order->address->number ?? '-' }}

الطابق: {{ $order->address->floor ?? '-' }}

علامة مميزة: {{ $order->address->mark ?? '-' }}

@endif
@foreach($order->items as $index => $item) @php $priceExcl = $item->price->getAmount() / 100; $totalBeforeDiscount = $priceExcl * $item->quantity; $discountValue = $item->discount->getAmount() / 100; $taxValue = $item->tax?->getAmount() / 100 ?? 0; // جديد @endphp @endforeach
م كود الصنف وصف الصنف الكمية السعر القيمة قبل الخصم قيمة الخصم قيمة الضريبة القيمة بعد الخصم
{{ $index + 1 }} {{ $item->orderable->code ?? '-' }} {{ $item->orderable->name ?? '-' }} {{ $item->quantity }} {{ number_format($priceExcl, 2) }} ر.س {{ number_format($totalBeforeDiscount, 2) }} ر.س {{ number_format($discountValue, 2) }} ر.س {{ number_format($taxValue, 2) }} ر.س {{ number_format($item->total->getAmount() / 100, 2) }} ر.س
@php $subtotal = $order->price instanceof \Cknow\Money\Money ? $order->price->getAmount() / 100 : 0; $discount = $order->discount instanceof \Cknow\Money\Money ? $order->discount->getAmount() / 100 : 0; $tax = $order->tax instanceof \Cknow\Money\Money ? $order->tax->getAmount() / 100 : 0; $totalBeforeTax = $subtotal - $discount; $totalAfterTaxAndDiscount = $totalBeforeTax + $tax; @endphp {{-- --}} {{-- --}} {{-- --}} {{-- --}}
الإجمالي : {{ number_format($totalBeforeTax, 2) }} ر.س
مجموع الخصم:{{ number_format($discount, 2) }} ر.س
قيمة الضريبة المضافة : {{ number_format($tax, 2) }} ر.س
الإجمالي شامل الضريبة: {{ number_format($totalAfterTaxAndDiscount, 2) }} ر.س
{{--
--}} {{-- QR--}} {{--
--}}