@php /* main font will be set on locale based */ $mainFontFamily = app()->getLocale() === 'ar' ? 'DejaVu Sans' : 'Noto Sans'; @endphp
@if (core()->getConfigData('sales.invoice_settings.invoice_slip_design.logo'))
@else @endif
{{ strtoupper(__('shop::app.customers.account.orders.invoice-pdf.invoice')) }}
@lang('shop::app.customers.account.orders.invoice-pdf.invoice-id'): #{{ $invoice->increment_id ?? $invoice->id }}
@lang('shop::app.customers.account.orders.invoice-pdf.date'): {{ core()->formatDate($invoice->created_at, 'd-m-Y') }}
{{ core()->getConfigData('sales.shipping.origin.store_name') ? core()->getConfigData('sales.shipping.origin.store_name') : '' }}
{{ core()->getConfigData('sales.shipping.origin.address') ?? '' }}
{{ core()->getConfigData('sales.shipping.origin.zipcode') ?? '' }} {{ core()->getConfigData('sales.shipping.origin.city') ?? '' }}
{{ core()->getConfigData('sales.shipping.origin.state') ?? '' }}
{{ core()->getConfigData('sales.shipping.origin.country') ?? '' }}
@if (core()->getConfigData('sales.shipping.origin.contact')) @lang('shop::app.customers.account.orders.invoice-pdf.contact-number'): {{ core()->getConfigData('sales.shipping.origin.contact') }} @endif @if (core()->getConfigData('sales.shipping.origin.vat_number')) @lang('shop::app.customers.account.orders.invoice-pdf.vat-number'): {{ core()->getConfigData('sales.shipping.origin.vat_number') }} @endif
@lang('shop::app.customers.account.orders.invoice-pdf.order-id'): #{{ $invoice->order->increment_id }}
@lang('shop::app.customers.account.orders.invoice-pdf.order-date'): {{ core()->formatDate($invoice->order->created_at, 'd-m-Y') }}
@if ($invoice->hasPaymentTerm())
@lang('shop::app.customers.account.orders.invoice-pdf.payment-terms') - {{ $invoice->getFormattedPaymentTerm() }}
@endif @if (core()->getConfigData('sales.shipping.origin.bank_details'))
@lang('shop::app.customers.account.orders.invoice-pdf.bank-details'):
{{ core()->getConfigData('sales.shipping.origin.bank_details') }}
@endif
@if ($invoice->order->shipping_address) @endif @if ($invoice->order->billing_address) @endif @if ($invoice->order->shipping_address) @endif
{{ ucwords(trans('shop::app.customers.account.orders.invoice-pdf.bill-to')) }}{{ ucwords(trans('shop::app.customers.account.orders.invoice-pdf.ship-to')) }}

{{ $invoice->order->billing_address->company_name ?? '' }}

{{ $invoice->order->billing_address->name }}

{{ $invoice->order->billing_address->address }}

{{ $invoice->order->billing_address->city }}

{{ $invoice->order->billing_address->state }}

{{ core()->country_name($invoice->order->billing_address->country) }} {{ $invoice->order->billing_address->postcode }}

@lang('shop::app.customers.account.orders.invoice-pdf.contact') : {{ $invoice->order->billing_address->phone }}

{{ $invoice->order->shipping_address->company_name ?? '' }}

{{ $invoice->order->shipping_address->name }}

{{ $invoice->order->shipping_address->address }}

{{ $invoice->order->shipping_address->city }}

{{ $invoice->order->shipping_address->state }}

{{ core()->country_name($invoice->order->shipping_address->country) }} {{ $invoice->order->shipping_address->postcode }}

@lang('shop::app.customers.account.orders.invoice-pdf.contact') : {{ $invoice->order->shipping_address->phone }}
@if ($invoice->order->shipping_address) @endif @if ($invoice->order->shipping_address) @endif
@lang('shop::app.customers.account.orders.invoice-pdf.payment-method') @lang('shop::app.customers.account.orders.invoice-pdf.shipping-method')
{{ core()->getConfigData('sales.payment_methods.' . $invoice->order->payment->method . '.title') }} @php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($invoice->order->payment->method); @endphp @if (! empty($additionalDetails))

{{ $additionalDetails['value'] }}

@endif
{{ $invoice->order->shipping_title }}
@foreach (['sku', 'product-name', 'price', 'qty', 'subtotal', 'tax-amount', 'grand-total'] as $item) @endforeach @foreach ($invoice->items as $item) @endforeach
@lang('shop::app.customers.account.orders.invoice-pdf.' . $item)
{{ $item->child ? $item->child->sku : $item->sku }} {{ $item->name }} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif
{{ core()->formatPrice($item->price, $invoice->order->order_currency_code) }} {{ $item->qty }} {{ core()->formatPrice($item->total, $invoice->order->order_currency_code) }} {{ core()->formatPrice($item->tax_amount, $invoice->order->order_currency_code) }} {{ core()->formatPrice(($item->total + $item->tax_amount), $invoice->order->order_currency_code) }}
@if ($invoice->base_discount_amount > 0) @endif
@lang('shop::app.customers.account.orders.invoice-pdf.subtotal') - {{ core()->formatPrice($invoice->sub_total, $invoice->order->order_currency_code) }}
@lang('shop::app.customers.account.orders.invoice-pdf.shipping-handling') - {{ core()->formatPrice($invoice->shipping_amount, $invoice->order->order_currency_code) }}
@lang('shop::app.customers.account.orders.invoice-pdf.discount') - {{ core()->formatPrice($invoice->discount_amount, $invoice->order_currency_code) }}
@lang('shop::app.customers.account.orders.invoice-pdf.tax') - {{ core()->formatPrice($invoice->tax_amount, $invoice->order->order_currency_code) }}

@lang('shop::app.customers.account.orders.invoice-pdf.grand-total') - {{ core()->formatPrice($invoice->grand_total, $invoice->order->order_currency_code) }}