| @lang('shop::app.customers.account.orders.invoice-pdf.invoice-id'): #{{ $invoice->increment_id ?? $invoice->id }}@endif @if (core()->getConfigData('sales.invoice_settings.pdf_print_outs.order_id')) | @lang('shop::app.customers.account.orders.invoice-pdf.order-id'): #{{ $invoice->order->increment_id }}@endif | 
| @lang('shop::app.customers.account.orders.invoice-pdf.date'): {{ core()->formatDate($invoice->created_at, 'd-m-Y') }} | @lang('shop::app.customers.account.orders.invoice-pdf.order-date'): {{ core()->formatDate($invoice->order->created_at, 'd-m-Y') }} | 
| {{ core()->getConfigData('sales.shipping.origin.store_name') }} @endif{{ 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('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'):
                                        
                                        @endif 
                                            {!! nl2br(core()->getConfigData('sales.shipping.origin.bank_details')) !!}
                                         | 
| @lang('shop::app.customers.account.orders.invoice-pdf.bill-to')@endif @if ($invoice->order->shipping_address) | @lang('shop::app.customers.account.orders.invoice-pdf.ship-to')@endif | 
|---|---|
| @endif
                            @if ($invoice->order->shipping_address){{ $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('shop::app.customers.account.orders.invoice-pdf.contact'): {{ $invoice->order->billing_address->phone }} | @endif{{ $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('shop::app.customers.account.orders.invoice-pdf.contact'): {{ $invoice->order->shipping_address->phone }} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.payment-method')@if ($invoice->order->shipping_address) | @lang('shop::app.customers.account.orders.invoice-pdf.shipping-method')@endif | 
|---|---|
| {{ core()->getConfigData('sales.payment_methods.' . $invoice->order->payment->method . '.title') }}
                                @php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($invoice->order->payment->method); @endphp
                                @if (! empty($additionalDetails)) @if ($invoice->order->shipping_address)
                                        {{ $additionalDetails['title'] }}:
                                        {{ $additionalDetails['value'] }}
                                    @endif | {{ $invoice->order->shipping_title }}@endif | 
| @lang('shop::app.customers.account.orders.invoice-pdf.sku') | @lang('shop::app.customers.account.orders.invoice-pdf.product-name') | @lang('shop::app.customers.account.orders.invoice-pdf.price') | @lang('shop::app.customers.account.orders.invoice-pdf.qty') | @lang('shop::app.customers.account.orders.invoice-pdf.subtotal') | 
|---|---|---|---|---|
| {{ $item->getTypeInstance()->getOrderedItem($item)->sku }} | {{ $item->name }}
                                        @if (isset($item->additional['attributes'])) 
                                                @foreach ($item->additional['attributes'] as $attribute)
                                                    @if (
                                                        ! isset($attribute['attribute_type'])
                                                        || $attribute['attribute_type'] !== 'file'
                                                    )
                                                        {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}@endif @else {{ $attribute['attribute_name'] }} : {{ File::basename($attribute['option_label']) }} @endif @endforeach | @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('shop::app.customers.account.orders.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('shop::app.customers.account.orders.invoice-pdf.excl-tax')
                                                
                                                    {{ core()->formatPrice($item->base_total) }}
                                                
                                            @else
                                            {!! core()->formatBasePrice($item->base_total, true) !!}
                                        @endif | 
| @lang('shop::app.customers.account.orders.invoice-pdf.subtotal') | - | {!! core()->formatBasePrice($invoice->base_sub_total_incl_tax, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.subtotal-incl-tax') | - | {!! core()->formatBasePrice($invoice->base_sub_total_incl_tax, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.subtotal-excl-tax') | - | {!! core()->formatBasePrice($invoice->base_sub_total, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.subtotal') | - | {!! core()->formatBasePrice($invoice->base_sub_total, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.shipping-handling') | - | {!! core()->formatBasePrice($invoice->base_shipping_amount_incl_tax, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.shipping-handling-incl-tax') | - | {!! core()->formatBasePrice($invoice->base_shipping_amount_incl_tax, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.shipping-handling-excl-tax') | - | {!! core()->formatBasePrice($invoice->base_shipping_amount, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.shipping-handling') | - | {!! core()->formatBasePrice($invoice->base_shipping_amount, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.tax') | - | {!! core()->formatBasePrice($invoice->base_tax_amount, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.discount') | - | {!! core()->formatBasePrice($invoice->base_discount_amount, true) !!} | 
| @lang('shop::app.customers.account.orders.invoice-pdf.grand-total') | - | {!! core()->formatBasePrice($invoice->base_grand_total, true) !!} |