JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@php $settings_data = \App\Models\Utility::settingsById($purchase->created_by); @endphp @if ($settings_data['SITE_RTL'] == 'on') @endif

{{ __('PURCHASE') }}

@if ($settings['pos_purchase_qr_display'] == 'on')
{!! DNS2D::getBarcodeHTML(route('purchase.link.copy', \Crypt::encrypt($purchase->purchase_id)), 'QRCODE', 2, 2) !!}
@endif
@if (!empty($settings['company_name']) && !empty($settings['mail_from_address']) && !empty($settings['company_address'])) @endif

@if ($settings['company_name']) {{ $settings['company_name'] }} @endif
@if ($settings['mail_from_address']) {{ $settings['mail_from_address'] }} @endif

@if ($settings['company_address']) {{ $settings['company_address'] }} @endif @if ($settings['company_city'])
{{ $settings['company_city'] }}, @endif @if ($settings['company_state']) {{ $settings['company_state'] }} @endif @if ($settings['company_zipcode']) - {{ $settings['company_zipcode'] }} @endif @if ($settings['company_country'])
{{ $settings['company_country'] }} @endif @if ($settings['company_telephone']) {{ $settings['company_telephone'] }} @endif
@if (!empty($settings['registration_number'])) {{ __('Registration Number') }} : {{ $settings['registration_number'] }} @endif
@if ($settings['vat_gst_number_switch'] == 'on') @if (!empty($settings['tax_type']) && !empty($settings['vat_number'])) {{ $settings['tax_type'] . ' ' . __('Number') }} : {{ $settings['vat_number'] }}
@endif @endif

@if (!empty($customFields) && count($purchase->customField) > 0) @foreach ($customFields as $field) @endforeach @endif
{{ __('Number') }}: {{ Utility::purchaseNumberFormat($settings, $purchase->purchase_id) }}
{{ __('Purchase Date') }}: {{ Utility::dateFormat($settings, $purchase->purchase_date) }}
{{ $field->name }} : {{ !empty($purchase->customField) ? $purchase->customField[$field->id] : '-' }}
@if ($settings['shipping_display'] == 'on') @endif
{{ __('Bill To') }}: @if (!empty($vendor->billing_name))

{{ !empty($vendor->billing_name) ? $vendor->billing_name : '' }}
{{ !empty($vendor->billing_address) ? $vendor->billing_address : '' }}
{{ !empty($vendor->billing_city) ? $vendor->billing_city : '' . ', ' }}
{{ !empty($vendor->billing_state) ? $vendor->billing_state : '', ', ' }}, {{ !empty($vendor->billing_zip) ? $vendor->billing_zip : '' }}
{{ !empty($vendor->billing_country) ? $vendor->billing_country : '' }}
{{ !empty($vendor->billing_phone) ? $vendor->billing_phone : '' }}

@else - @endif
{{ __('Ship To') }}: @if (!empty($vendor->shipping_name))

{{ !empty($vendor->shipping_name) ? $vendor->shipping_name : '' }}
{{ !empty($vendor->shipping_address) ? $vendor->shipping_address : '' }}
{{ !empty($vendor->shipping_city) ? $vendor->shipping_city : '' . ', ' }}
{{ !empty($vendor->shipping_state) ? $vendor->shipping_state : '' . ', ' }}, {{ !empty($vendor->shipping_zip) ? $vendor->shipping_zip : '' }}
{{ !empty($vendor->shipping_country) ? $vendor->shipping_country : '' }}
{{ !empty($vendor->shipping_phone) ? $vendor->shipping_phone : '' }}

@else - @endif
@if (isset($purchase->itemData) && count($purchase->itemData) > 0) @foreach ($purchase->itemData as $key => $item) @php $itemtax = 0; @endphp @if (!empty($item->description)) @endif @endforeach @else @endif
{{ __('Item') }} {{ __('Quantity') }} {{ __('Rate') }} {{ __('Discount') }} {{ __('Tax') }} (%) {{ __('Price') }} {{ __('after tax & discount') }}
{{ $item->name }} {{ $item->quantity }} {{ Utility::priceFormat($settings, $item->price) }} {{ $item->discount != 0 ? Utility::priceFormat($settings, $item->discount) : '-' }} @if (!empty($item->itemTax)) @foreach ($item->itemTax as $taxes) @php $itemtax += $taxes['tax_price']; @endphp

{{ $taxes['name'] }} ({{ $taxes['rate'] }}) {{ $taxes['price'] }}

@endforeach @else - @endif
{{ Utility::priceFormat($settings, $item->price * $item->quantity - $item->discount + $itemtax) }}
{{ $item->description }}
{{ __('Total') }} {{ $purchase->totalQuantity }} {{ Utility::priceFormat($settings, $purchase->totalRate) }} {{ Utility::priceFormat($settings, $purchase->totalDiscount) }} {{ Utility::priceFormat($settings, $purchase->totalTaxPrice) }} {{ Utility::priceFormat($settings, $purchase->getSubTotal()) }}
@if (!empty($purchase->taxesData)) @foreach ($purchase->taxesData as $taxName => $taxPrice) @endforeach @endif
{{ __('Subtotal') }}: {{ Utility::priceFormat($settings, $purchase->getSubTotal()) }}
{{ __('Discount') }}: {{ Utility::priceFormat($settings, $purchase->getTotalDiscount()) }}
{{ $taxName }} : {{ Utility::priceFormat($settings, $taxPrice) }}
{{ __('Total') }}: {{ Utility::priceFormat($settings, $purchase->getSubTotal() - $purchase->getTotalDiscount() + $purchase->getTotalTax()) }}
{{ __('Paid') }}: {{ Utility::priceFormat($settings, $purchase->getTotal() - $purchase->getDue()) }}
{{ __('Due Amount') }}: {{ Utility::priceFormat($settings, $purchase->getDue()) }}
@if (!isset($preview)) @include('purchase.script'); @endif