@include('sales::invoices.partials.shared-head-assets') @php $currencyCode = isset($estimate) ? $estimate->currency_code : env('DEFAULT_CURRENCY_CODE'); $estimate->currency_code = __('settings::currencies.' . $currencyCode); $discountAmount = $estimateMetadata['totalDiscountAmount'] ?? 0; $totalAmount = isset($estimate) ? $estimate->total_amount : 0; $taxableAfterDiscount = $totalAmount - $discountAmount; $feeServiceActivities = isset($feeServiceActivities) ? $feeServiceActivities : ($estimate->feeServiceActivities ?? []); @endphp @if (isset($isInBulk) || ((isset($languages) && count($languages) > 1) && empty($useRepeatingPdfHeader))) {{-- Inline header: used for bulk/multi-language PDFs when Snappy header-html is blank --}}
@include('sales::invoices.partials.inline-pdf-header', [ 'headerView' => 'sales::estimates.template11.layout.header', 'documentType' => 'estimate', ]) @endif @if($estimateConditions['isStudent']) @include('draft') @endif
@if($formDesign->description) @endif
@lang('sales::estimates.reference_id', [], 'ar') {{ $estimateMetadata['reference'] }} @lang('sales::estimates.reference_id', [], 'en')
@lang('sales::estimates.issue_date', [], 'ar') {{ $estimate->formatDate($estimate->issue_date) ?? '.................' }} @lang('sales::estimates.issue_date', [], 'en')
@lang('sales::estimates.due_date', [], 'ar') {{ $estimate->formatDate($estimate->due_date) ?? '.................' }} @lang('sales::estimates.due_date', [], 'en')
@lang('sales::estimates.description', [], 'ar') {{ isset($estimate) ? $estimate->description : '.................' }} @lang('sales::estimates.description', [], 'en')
Seller المورد
{{ $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')
@lang('sales::estimates.customer', [], 'en') @lang('sales::estimates.customer', [], 'ar')
@if($formDesign->customer_phone_number) @endif @if($estimate->customer->street) @endif @if($estimate->customer->city) @endif @if($estimate->customer->postal_code) @endif
{{ $estimate->customer->name ?? '.................' }}Name / الاسم
{{ $estimateMetadata['customerPhoneNumber'] ?? '.................' }}@lang('sales::estimates.phone', [], 'en') / @lang('sales::estimates.phone', [], 'ar')
{{ $estimate->customer->street ?? '' }}Street Name / اسم الشارع
{{ $estimate->customer->city ?? '' }}City / المدينة
{{ $estimate->customer->postal_code ?? '' }}@lang('sales::estimates.postalCode', [], 'en') / @lang('sales::estimates.postalCode', [], 'ar')
{{ $estimateConditions['shouldDisplayCustomerVatNumber'] ? ($estimate->customer->tax_number ?? '') : '' }}VAT Number / الرقم الضريبي
{{ $estimateConditions['shouldDisplayCustomerCommercialNumber'] ? ($estimate->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($estimateConditions['shouldDisplayProductVatAmount']) @endif @if($estimateConditions['shouldDisplayProductTotalWithVat']) @endif @isset($estimate) @foreach($estimate->products as $record) @if($formDesign->product_image) @endif @if($formDesign->product_description) @endif @if($formDesign->unit) @endif @if($formDesign->discount) @endif @if($estimateConditions['shouldDisplayProductVatAmount']) @endif @if($estimateConditions['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, '.', ',') }}{{ $estimateConditions['shouldDisplayProductVatAmount'] ? (($record->tax) ? $record->tax->percentage : 0) . '%' : '0%' }} {{ $estimateConditions['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, '.', ',') }} {!! $estimate->currency_code !!} {{ number_format($feeServiceActivity->tax_value, 2, '.', ',') }} {!! $estimate->currency_code !!}
@endif
@if($formDesign->labor_fee || $estimate->labor_fee > 0) @endif @if($estimateConditions['shouldDisplayRetention']) @endif @if(count($feeServiceActivities)) @endif
الإجمالي (قبل الضريبة المضافة على المبيعات) Total (Excluding VAT) {{ number_format($totalAmount, 2, '.', ',') }} {!! $estimate->currency_code !!}
الخصم Discount {{ number_format($discountAmount, 2, '.', ',') }} {!! $estimate->currency_code !!}
الإجمالي الخاضع للضريبة المضافة (بعد الخصم) Total Taxable Amount (Excluding VAT) {{ number_format($taxableAfterDiscount, 2, '.', ',') }} {!! $estimate->currency_code !!}
ضريبة القيمة المضافة الكلية Total VAT {{ number_format((isset($estimate) ? $estimate->total_vat : 0), 2, '.', ',') }} {!! $estimate->currency_code !!}
رسوم العمالة Labor Fee {{ number_format((isset($estimate) ? $estimate->labor_fee : 0), 2, '.', ',') }} {!! $estimate->currency_code !!}
نسبة الاستقطاع Retention Percentage {{ number_format(isset($estimate) ? $estimate->retention_percentage : 0, 2, '.', ',') }} %
مبلغ الاستقطاع Retention Amount {{ number_format(isset($estimate) ? $estimate->retention_amount : 0, 2, '.', ',') }} {!! $estimate->currency_code !!}
المبلغ المستحق الدفع Total Amount Due {{ number_format((isset($estimate) ? $estimate->total : 0), 2, '.', ',') }} {!! $estimate->currency_code !!}
الإجمالي مع الخدمات Total With Services {{ number_format($estimateMetadata['totalAmountWithFeeServices'] + $estimate->total, 2, '.', ',') }} {!! $estimate->currency_code !!}
@if($estimateConditions['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($estimateMetadata['entity']))
Notes / ملاحظات
{!! $estimateMetadata['entity'] !!}
@endif @if(!empty($estimateMetadata['entityTerms']))
Terms and Conditions / الشروط والأحكام
{!! $estimateMetadata['entityTerms'] !!}
@endif