@php if ($locale == 'en') { $fontFamily = [ 'regular' => 'DejaVu Sans', 'bold' => 'DejaVu Sans', ]; } else { $fontFamily = [ 'regular' => 'Arial, sans-serif', 'bold' => 'Arial, sans-serif', ]; } if (in_array($locale, ['ar', 'fa', 'tr'])) { $fontFamily = [ 'regular' => 'DejaVu Sans', 'bold' => 'DejaVu Sans', ]; } @endphp
@lang('admin::app.quotes.index.pdf.quote-id'): #{{ $quote->id }}
@lang('admin::app.quotes.index.pdf.sales-person'): {{ $quote->user->name }}
@lang('admin::app.quotes.index.pdf.date'): {{ core()->formatDate($quote->created_at, 'd-m-Y') }} @lang('admin::app.quotes.index.pdf.expired-at'): {{ core()->formatDate($quote->expired_at, 'd-m-Y') }}
@if ($quote->billing_address) @endif @if ($quote->shipping_address) @endif @if ($quote->billing_address) @endif @if ($quote->shipping_address) @endif
@lang('admin::app.quotes.index.pdf.billing-address') @lang('admin::app.quotes.index.pdf.shipping-address')
{{ $quote->billing_address['address'] ?? '' }}
{{ $quote->billing_address['postcode'] ?? '' . ' ' .$quote->billing_address['city'] ?? '' }}
{{ $quote->billing_address['state'] ?? '' }}
{{ core()->country_name($quote->billing_address['country'] ?? '') }}
{{ $quote->shipping_address['address'] ?? ''}}
{{ $quote->shipping_address['postcode'] ?? '' . ' ' .$quote->shipping_address['city'] ?? '' }}
{{ $quote->shipping_address['state'] ?? '' }}
{{ core()->country_name($quote->shipping_address['country'] ?? '') }}
@foreach ($quote->items as $item) @endforeach
@lang('admin::app.quotes.index.pdf.sku') @lang('admin::app.quotes.index.pdf.product-name') @lang('admin::app.quotes.index.pdf.price') @lang('admin::app.quotes.index.pdf.quantity') @lang('admin::app.quotes.index.pdf.amount') @lang('admin::app.quotes.index.pdf.discount') @lang('admin::app.quotes.index.pdf.tax') @lang('admin::app.quotes.index.pdf.grand-total')
{{ $item->sku }} {{ $item->name }} {!! core()->formatBasePrice($item->price, true) !!} {{ $item->quantity }} {!! core()->formatBasePrice($item->total, true) !!} {!! core()->formatBasePrice($item->discount_amount, true) !!} {!! core()->formatBasePrice($item->tax_amount, true) !!} {!! core()->formatBasePrice($item->total + $item->tax_amount - $item->discount_amount, true) !!}
@lang('admin::app.quotes.index.pdf.sub-total') - {!! core()->formatBasePrice($quote->sub_total, true) !!}
@lang('admin::app.quotes.index.pdf.tax') - {!! core()->formatBasePrice($quote->tax_amount, true) !!}
@lang('admin::app.quotes.index.pdf.discount') - {!! core()->formatBasePrice($quote->discount_amount, true) !!}
@lang('admin::app.quotes.index.pdf.adjustment') - {!! core()->formatBasePrice($quote->adjustment_amount, true) !!}
@lang('admin::app.quotes.index.pdf.grand-total') - {!! core()->formatBasePrice($quote->grand_total, true) !!}