@if(!empty($company->basic_settings->header)) @endif @if(!empty($company->basic_settings->footer) &&!empty($company->basic_settings->electronic_stamp)) @endif
@if (!empty($sale_bill->outer_client_id)) فاتورة مبيعات ضريبية @else فاتورة مبيعات ضريبية نقدية @endif

تاريخ الفاتورة {{$sale_bill->date}} الرقم الضريبى {{$company->tax_number}}
رقم الفاتورة {{$sale_bill->sale_bill_number}} السجل التجارى {{$company->commercial_registration_number}}
اسم المؤسسة {{$company->company_name}} عنوان المؤسسة
رقم التليفون {{$company->phone_number}} {{$company->company_address}}
@if (!empty($sale_bill->outer_client_id))
بيانات العميل
اسم العميل {{$sale_bill->OuterClient->client_name}} فئة التعامل {{$sale_bill->OuterClient->client_category}}
رقم التليفون {{$sale_bill->OuterClient->phones[0]->client_phone}} الرقم الضريبى {{$sale_bill->OuterClient->tax_number}}
@endif
@if (!$sale_bill->elements->isEmpty())
بيانات عناصر الفاتورة رقم {{ $sale_bill->sale_bill_number}}
@foreach ($sale_bill->elements as $element) @endforeach
م الكود الموديل بيانات المنتج العدد سعر الوحدة سعر الاجمالى
{{++$i}} {{{$element->elements_unit->barcode}}} {{$element->product->product_model}} {{$element->product->product_name}} {{$element->quantity}} {{$element->unit->unit_name}} {{number_format($element->product_price)}} {{number_format($element->quantity_price)}}
@endif
الاجمالى قبل الخصم والضريبة {{number_format($total)}} {{$currency}} @foreach ($sale_bill->extras as $key) @if ($key->action == "discount") @if ($key->action_type == "pound") خصم {{$key->value}} {{$currency}}; @php $discount = $key->value; @endphp @else خصم {{$key->value}} % ; @php $discount = ($key->value / 100) * $sale_bill->subtotal; @endphp @endif @else @if ($key->action_type == "pound") مصاريف شحن {{$key->value}} {{$currency}}; @php $extra = $key->value; @endphp @else مصاريف شحن {{$key->value}} % @php $extra = ($key->value / 100) * $sale_bill->subtotal; @endphp @endif @endif @endforeach
ضريبة القيمة المضافة : ( {{$tax_value_added}} % ) قيمة ضريبة القيمة المضافة : {{number_format($sale_bill->subtotal*$sale_bill->tax/100)}} {{$currency}}
اجمالى الفاتورة بعد الخصم والضريبة : {{number_format($sale_bill->final_total)}} {{$currency}} المبلغ المدفوع : {{number_format($sale_bill->paid)}} {{$currency}}
المبلغ المتبقى : {{number_format($sale_bill->rest)}} {{$currency}}
@if(!empty($company->basic_settings->footer)) @endif @if(!empty($company->basic_settings->electronic_stamp)) @endif