@include('sales::invoices.partials.shared-head-assets') @php $currencyCode = isset($invoice) ? $invoice->currency_code : env('DEFAULT_CURRENCY_CODE'); $invoice->currency_code = __('settings::currencies.' . $currencyCode); $discountAmount = $invoiceMetadata['totalDiscountAmount'] ?? 0; $totalAmount = isset($invoice) ? $invoice->total_amount : 0; $taxableAfterDiscount = $totalAmount - $discountAmount; $feeServiceActivities = isset($feeServiceActivities) ? $feeServiceActivities : ($invoice->feeServiceActivities ?? []); @endphp @if($invoiceConditions['isStudent']) @include('draft') @endif @if (isset($isInBulk) || ((isset($languages) && count($languages) > 1) && empty($useRepeatingPdfHeader)))
@include('sales::invoices.partials.inline-pdf-header', ['headerView' => 'sales::invoices.template11.layout.header']) @endif
@if($invoiceConditions['shouldDisplayInvoiceTime']) @endif @if($formDesign->description) @endif @if($formDesign->payment_term) @php $paymentTermAr = isset($invoice) ? ($invoice->paymentTerm ? $invoice->paymentTerm->name_ar : __('sales::invoice_template.cash', [], 'ar')) : '.................'; $paymentTermEn = isset($invoice) ? ($invoice->paymentTerm ? $invoice->paymentTerm->name_en : __('sales::invoice_template.cash', [], 'en')) : '.................'; @endphp @endif @if($formDesign->payment_account && isset($invoice) && $invoice->paymentAccount) @php $paymentAccountAr = isset($invoice) ? ($invoice->paymentAccount->name_ar ?? '') : '.................'; $paymentAccountEn = isset($invoice) ? ($invoice->paymentAccount->name_en ?? '') : '.................'; @endphp @endif @if($formDesign->cost_center) @endif @if($invoice->invoice) @endif @if($invoice->parent) @endif
@lang('sales::invoice_template.reference_id', [], 'ar') {{ $invoiceMetadata['reference'] }} @lang('sales::invoice_template.reference_id', [], 'en')
@lang('sales::invoice_template.invoice_date', [], 'ar') {{ $invoice->formatDate($invoice->date) ?? '.................' }} @lang('sales::invoice_template.invoice_date', [], 'en')
@lang('sales::invoice_template.supply_date', [], 'ar') {{ $invoice->formatDate($invoice->supply_date) ?? '.................' }} @lang('sales::invoice_template.supply_date', [], 'en')
@lang('sales::invoice_template.time', [], 'ar') {{ $invoice->formatTime($invoice->date) ?? '.................' }} @lang('sales::invoice_template.time', [], 'en')
@lang('sales::invoice_template.description', [], 'ar') {{ isset($invoice) ? $invoice->description : '.................' }} @lang('sales::invoice_template.description', [], 'en')
@lang('sales::invoice_template.payment_term', [], 'ar') {{ $paymentTermAr }} / {{ $paymentTermEn }} @lang('sales::invoice_template.payment_term', [], 'en')
@lang('sales::invoice_template.payment_account', [], 'ar') {{ $paymentAccountAr }} / {{ $paymentAccountEn }} @lang('sales::invoice_template.payment_account', [], 'en')
@lang('sales::invoice_template.cost_center', [], 'ar') {{ $invoiceMetadata['costCenter'] }} @lang('sales::invoice_template.cost_center', [], 'en')
@lang('sales::invoice_template.related_invoice', [], 'ar') {{ $invoice->invoice->reference }} @lang('sales::invoice_template.related_invoice', [], 'en')
@lang('sales::invoice_template.related_invoice', [], 'ar') {{ $invoice->parent->reference }} @lang('sales::invoice_template.related_invoice', [], 'en')
Seller المورد
@if($settings->commercialNumberFormatted && $settings->commercialNumberFormatted != '0') @endif
{{ $settings->shortName ?? '.................' }}Name / الاسم
{!! str_replace("\r\n","
", $settings->shortAddress) !!}
@lang('sales::invoice_template.address', [], 'en') / @lang('sales::invoice_template.address', [], 'ar')
{{ $settings->tax_id_number_formatted ?? '' }}@lang('sales::invoice_template.tax_number', [], 'en') / @lang('sales::invoice_template.tax_number', [], 'ar')
{{ $settings->commercialNumberFormatted ?? '' }}@lang('sales::invoice_template.commercial_number', [], 'en') / @lang('sales::invoice_template.commercial_number', [], 'ar')
@lang('sales::invoice_template.customer', [], 'en') @lang('sales::invoice_template.customer', [], 'ar')
@if($formDesign->customer_phone_number && $invoiceMetadata['customerPhoneNumber']) @endif @if($invoice->customer->street && $invoice->customer->street) @endif @if($invoice->customer->city && $invoice->customer->city) @endif @if($invoice->customer->postal_code && $invoice->customer->postal_code) @endif
{{ $invoice->customer->name ?? '.................' }}Name / الاسم
{{ $invoiceMetadata['customerPhoneNumber'] ?? '.................' }}@lang('sales::invoice_template.phone', [], 'en') / @lang('sales::invoice_template.phone', [], 'ar')
{{ $invoice->customer->street ?? '' }}Street Name / اسم الشارع
{{ $invoice->customer->city ?? '' }}Address / المدينة
{{ $invoice->customer->postal_code ?? '' }}@lang('sales::invoice_template.postalCode', [], 'en') / @lang('sales::invoice_template.postalCode', [], 'ar')
{{ ($invoiceConditions['shouldDisplayCustomerVatNumber'] && $invoice->customer->tax_number != '') ? ($invoice->customer->tax_number ?? '') : '' }}VAT Number / الرقم الضريبي
{{ ($invoiceConditions['shouldDisplayCustomerCommercialNumber'] && $invoice->customer->commercial_number != '') ? ($invoice->customer->commercial_number ?? '') : '' }}Other Buyer ID / معرف آخر
Line Items تفاصيل الفاتورة
@if($formDesign->product_image) @endif @if($formDesign->product_description) @endif @if($formDesign->unit) @endif @if($formDesign->discount) @endif @if($invoiceConditions['shouldDisplayProductVatAmount']) @endif @if($invoiceConditions['shouldDisplayProductTotalWithVat']) @endif @isset($invoice) @foreach($invoice->invoiceDetails as $record) @if($formDesign->product_image) @endif @if($formDesign->product_description) @endif @if($formDesign->unit) @endif @if($formDesign->discount) @endif @if($invoiceConditions['shouldDisplayProductVatAmount']) @endif @if($invoiceConditions['shouldDisplayProductTotalWithVat']) @endif @endforeach @endisset
@lang('products::product.Image', [], 'ar')@lang('products::product.Image', [], 'en')@lang($productTypeTitle, [], 'ar')@lang($productTypeTitle, [], 'en')@lang('sales::invoices.Description', [], 'ar')@lang('sales::invoices.Description', [], 'en')@lang('settings::forms_design.unit', [], 'ar')@lang('settings::forms_design.unit', [], 'en')@lang('sales::invoices.unit_price', [], 'ar')@lang('sales::invoices.unit_price', [], 'en') @lang('sales::invoices.qty', [], 'ar')@lang('sales::invoices.qty', [], 'en')@lang('sales::invoices.discount', [], 'ar')Discount@lang('sales::invoices.vat', [], 'ar')VAT @lang('sales::invoices.vat_value', [], 'ar')@lang('sales::invoices.vat_value', [], 'en')@lang('sales::invoices.total', [], 'ar')@lang('sales::invoices.total', [], 'en')
Product Image {{ $record->product->name_ar }} / {{ $record->product->name_en }} {{ $record->shortDescription }} {{ $record->product->unit->name_ar }} / {{ $record->product->unit->name_en }}{{ number_format($record->price, 2, '.', ',') }} {{ number_format($record->quantity, 2, '.', ',') }}{{ number_format($record->discount, 2, '.', ',') }}{{ $invoiceConditions['shouldDisplayProductVatAmount'] ? (($record->tax) ? $record->tax->percentage : 0) : '0' }} {{ $invoiceConditions['shouldDisplayProductVatAmount'] ? number_format($record->vat_value, 2, '.', ',') : number_format(0, 2, '.', ',') }} {{ number_format($record->gross, 2, '.', ',') }}
@if(count($feeServiceActivities))
Other Fees الرسوم الأخرى
@foreach($feeServiceActivities as $feeServiceActivity) @endforeach
Serviceالخدمة Amountالمبلغ VATالضريبة
{{ $feeServiceActivity->feeServiceModel->feeService['name_en'] }} / {{ $feeServiceActivity->feeServiceModel->feeService['name_ar'] }} {{ number_format($feeServiceActivity->total_amount, 2, '.', ',') }} {{ number_format($feeServiceActivity->tax_value, 2, '.', ',') }}
@endif
@if($invoice && $invoiceConditions['shouldDisplayQrCode']) QR Code @else
QR
@endif
  @if($formDesign->labor_fee || $invoice->labor_fee > 0) @endif @if($invoiceConditions['shouldDisplayRetention']) @endif @if(count($feeServiceActivities)) @endif
الإجمالي (قبل الضريبة المضافة على المبيعات) Total (Excluding VAT) {{ number_format($totalAmount, 2, '.', ',') }} {!! $invoice->currency_code !!}
الخصم Discount {{ number_format($discountAmount, 2, '.', ',') }} {!! $invoice->currency_code !!}
الإجمالي الخاضع للضريبة المضافة (بعد الخصم) Total Taxable Amount (Excluding VAT) {{ number_format($taxableAfterDiscount, 2, '.', ',') }} {!! $invoice->currency_code !!}
ضريبة القيمة المضافة الكلية Total VAT {{ number_format((isset($invoice) ? $invoice->total_vat : 0), 2, '.', ',') }} {!! $invoice->currency_code !!}
رسوم العمالة Labor Fee {{ number_format((isset($invoice) ? $invoice->labor_fee : 0), 2, '.', ',') }} {!! $invoice->currency_code !!}
نسبة الاستقطاع Retention Percentage {{ number_format(isset($invoice) ? $invoice->retention_percentage : 0, 2, '.', ',') }} %
مبلغ الاستقطاع Retention Amount {{ number_format(isset($invoice) ? $invoice->retention_amount : 0, 2, '.', ',') }} {!! $invoice->currency_code !!}
الرصيد المستحق Outstanding Balance {{ number_format((isset($invoice) ? $invoice->outstanding : 0), 2, '.', ',') }} {!! $invoice->currency_code !!}
المبلغ المستحق الدفع Total Amount Due {{ number_format((isset($invoice) ? $invoice->total : 0), 2, '.', ',') }} {!! $invoice->currency_code !!}
الإجمالي مع الخدمات Total With Services {{ number_format($invoiceMetadata['totalAmountWithFeeServices'] + $invoice->total, 2, '.', ',') }} {!! $invoice->currency_code !!}
@if($invoiceConditions['shouldDisplayBankInformation'])
@if($formDesign->bank_name)
Bank Name: {{ $formDesign->bank_name }}
@endif @if($formDesign->account_name)
Account Name: {{ $formDesign->account_name }}
@endif @if($formDesign->iban)
IBAN: {{ $formDesign->iban }}
@endif
@endif @if($formDesign->print_notes && !empty($invoiceMetadata['invoiceNotes']))
Notes / ملاحظات
{!! $invoiceMetadata['invoiceNotes'] !!}
@endif @if(!empty($invoiceMetadata['invoiceTerms']))
Terms and Conditions / الشروط والأحكام
{!! $invoiceMetadata['invoiceTerms'] !!}
@endif @if($invoice->paymentLinkData)
{{ __('vompay::vompay.pay_invoice_by_link') }}
{{ __('vompay::vompay.click_here') }}
@endif