@php $fontPath = []; $fontFamily = [ 'regular' => 'Arial, sans-serif', 'bold' => 'Arial, sans-serif', ]; if (in_array(app()->getLocale(), ['ar', 'he', 'fa', 'tr', 'ru', 'uk'])) { $fontFamily = [ 'regular' => 'DejaVu Sans', 'bold' => 'DejaVu Sans', ]; } elseif (app()->getLocale() == 'zh_CN') { $fontPath = [ 'regular' => asset('fonts/NotoSansSC-Regular.ttf'), 'bold' => asset('fonts/NotoSansSC-Bold.ttf'), ]; $fontFamily = [ 'regular' => 'Noto Sans SC', 'bold' => 'Noto Sans SC Bold', ]; } elseif (app()->getLocale() == 'ja') { $fontPath = [ 'regular' => asset('fonts/NotoSansJP-Regular.ttf'), 'bold' => asset('fonts/NotoSansJP-Bold.ttf'), ]; $fontFamily = [ 'regular' => 'Noto Sans JP', 'bold' => 'Noto Sans JP Bold', ]; } elseif (app()->getLocale() == 'hi_IN') { $fontPath = [ 'regular' => asset('fonts/Hind-Regular.ttf'), 'bold' => asset('fonts/Hind-Bold.ttf'), ]; $fontFamily = [ 'regular' => 'Hind', 'bold' => 'Hind Bold', ]; } elseif (app()->getLocale() == 'bn') { $fontPath = [ 'regular' => asset('fonts/NotoSansBengali-Regular.ttf'), 'bold' => asset('fonts/NotoSansBengali-Bold.ttf'), ]; $fontFamily = [ 'regular' => 'Noto Sans Bengali', 'bold' => 'Noto Sans Bengali Bold', ]; } elseif (app()->getLocale() == 'sin') { $fontPath = [ 'regular' => asset('fonts/NotoSansSinhala-Regular.ttf'), 'bold' => asset('fonts/NotoSansSinhala-Bold.ttf'), ]; $fontFamily = [ 'regular' => 'Noto Sans Sinhala', 'bold' => 'Noto Sans Sinhala Bold', ]; } @endphp
@if (core()->getConfigData('sales.invoice_settings.pdf_print_outs.logo')) @else OvidianTechSolutions @endif
@if (core()->getConfigData('sales.invoice_settings.pdf_print_outs.invoice_id')) @endif @if (core()->getConfigData('sales.invoice_settings.pdf_print_outs.order_id')) @endif
@lang('admin::app.sales.invoices.invoice-pdf.invoice-id'): #{{ $invoice->increment_id ?? $invoice->id }} @lang('admin::app.sales.invoices.invoice-pdf.order-id'): #{{ $invoice->order->increment_id }}
@lang('admin::app.sales.invoices.invoice-pdf.date'): {{ core()->formatDate($invoice->created_at, 'd-m-Y') }} @lang('admin::app.sales.invoices.invoice-pdf.order-date'): {{ core()->formatDate($invoice->order->created_at, 'd-m-Y') }}
@if (! empty(core()->getConfigData('sales.shipping.origin.country'))) @endif
{{ 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 ($invoice->hasPaymentTerm())
@lang('admin::app.sales.invoices.invoice-pdf.payment-terms'): {{ $invoice->getFormattedPaymentTerm() }}
@endif @if (core()->getConfigData('sales.shipping.origin.bank_details'))
@lang('admin::app.sales.invoices.invoice-pdf.bank-details'):
{!! nl2br(core()->getConfigData('sales.shipping.origin.bank_details')) !!}
@endif
@if ($invoice->order->billing_address) @endif @if ($invoice->order->shipping_address) @endif @if ($invoice->order->billing_address) @endif @if ($invoice->order->shipping_address) @endif
@lang('admin::app.sales.invoices.invoice-pdf.bill-to') @lang('admin::app.sales.invoices.invoice-pdf.ship-to')
{{ $invoice->order->billing_address->company_name ?? '' }}
{{ $invoice->order->billing_address->name }}
{{ $invoice->order->billing_address->address }}
{{ $invoice->order->billing_address->postcode . ' ' . $invoice->order->billing_address->city }}
{{ $invoice->order->billing_address->state . ', ' . core()->country_name($invoice->order->billing_address->country) }}
@lang('admin::app.sales.invoices.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->postcode . ' ' . $invoice->order->shipping_address->city }}
{{ $invoice->order->shipping_address->state . ', ' . core()->country_name($invoice->order->shipping_address->country) }}
@lang('admin::app.sales.invoices.invoice-pdf.contact'): {{ $invoice->order->shipping_address->phone }}
@if ($invoice->order->shipping_address) @endif @if ($invoice->order->shipping_address) @endif
@lang('admin::app.sales.invoices.invoice-pdf.payment-method') @lang('admin::app.sales.invoices.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['title'] }}: {{ $additionalDetails['value'] }}
@endif
{{ $invoice->order->shipping_title }}
@foreach ($invoice->items as $item) @endforeach
@lang('admin::app.sales.invoices.invoice-pdf.sku') @lang('admin::app.sales.invoices.invoice-pdf.product-name') @lang('admin::app.sales.invoices.invoice-pdf.price') @lang('admin::app.sales.invoices.invoice-pdf.qty') @lang('admin::app.sales.invoices.invoice-pdf.subtotal')
{{ $item->getTypeInstance()->getOrderedItem($item)->sku }} {{ $item->name }} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif
@if (core()->getConfigData('sales.taxes.sales.display_prices') == 'including_tax') {!! core()->formatBasePrice($item->base_price_incl_tax, true) !!} @elseif (core()->getConfigData('sales.taxes.sales.display_prices') == 'both') {!! core()->formatBasePrice($item->base_price_incl_tax, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.excl-tax') {{ core()->formatPrice($item->base_price) }}
@else {!! core()->formatBasePrice($item->base_price, true) !!} @endif
{{ $item->qty }} @if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax') {!! core()->formatBasePrice($item->base_total_incl_tax, true) !!} @elseif (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both') {!! core()->formatBasePrice($item->base_total_incl_tax, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.excl-tax') {{ core()->formatPrice($item->base_total) }}
@else {!! core()->formatBasePrice($item->base_total, true) !!} @endif
@if (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'including_tax') @elseif (core()->getConfigData('sales.taxes.sales.display_subtotal') == 'both') @else @endif @if (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'including_tax') @elseif (core()->getConfigData('sales.taxes.sales.display_shipping_amount') == 'both') @else @endif
@lang('admin::app.sales.invoices.invoice-pdf.subtotal') - {!! core()->formatBasePrice($invoice->base_sub_total_incl_tax, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.subtotal-incl-tax') - {!! core()->formatBasePrice($invoice->base_sub_total_incl_tax, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.subtotal-excl-tax') - {!! core()->formatBasePrice($invoice->base_sub_total, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.subtotal') - {!! core()->formatBasePrice($invoice->base_sub_total, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.shipping-handling') - {!! core()->formatBasePrice($invoice->base_shipping_amount_incl_tax, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.shipping-handling-incl-tax') - {!! core()->formatBasePrice($invoice->base_shipping_amount_incl_tax, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.shipping-handling-excl-tax') - {!! core()->formatBasePrice($invoice->base_shipping_amount, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.shipping-handling') - {!! core()->formatBasePrice($invoice->base_shipping_amount, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.tax') - {!! core()->formatBasePrice($invoice->base_tax_amount, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.discount') - {!! core()->formatBasePrice($invoice->base_discount_amount, true) !!}
@lang('admin::app.sales.invoices.invoice-pdf.grand-total') - {!! core()->formatBasePrice($invoice->base_grand_total, true) !!}