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

{{__('quotation')}}

@if(!empty($customFields) && count($quotation->customField)>0) @foreach($customFields as $field) @endforeach @endif
{{__('Number')}}: {{Utility::quotationNumberFormat($settings,$quotation->quotation_id)}}
{{__('Issue Date')}}: {{Utility::dateFormat($settings,$quotation->quotation_date)}}
{{$field->name}} : {{!empty($quotation->customField)?$quotation->customField[$field->id]:'-'}}

@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($settings['shipping_display']=='on') @endif
{{__('Bill To')}}: @if(!empty($customer->billing_name))

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

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

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

@else - @endif
@php $totalQuantity = 0; $totalRate = 0; $totalTaxPrice = 0; $totalDiscount = 0; $subTotal = 0; $total = 0; $taxesData = []; @endphp @if (isset($quotation->itemData) && count($quotation->itemData) > 0) @foreach ($quotation->itemData as $key => $item) @php $totalDiscount += $item->discount; $subTotal += $item->price * $item->quantity + $totalTaxPrice; $total = $subTotal - $totalDiscount; @endphp @endforeach @else @endif
{{__('Item')}} {{__('Quantity')}} {{__('Price')}} {{__('Tax')}} {{__('Tax Amount')}} {{__('Total')}}
{{ $item->name }} {{ $item->quantity }} {{ Utility::priceFormat($settings, $item->price) }} @php $totalTaxRate = 0; $totalTaxPrice = 0; @endphp @if (!empty($item->itemTax)) @foreach ($item->itemTax as $taxes) @php $res = str_ireplace(['%'], ' ', $taxes['rate']); $taxPrice = App\Models\Utility::taxRate($res, $item->price, $item->quantity); $totalTaxPrice += $taxPrice; @endphp {{ $taxes['name'] }} ({{ $taxes['rate'] }})
@endforeach @else - @endif
{{ Utility::priceFormat($settings, $totalTaxPrice) }} {{ Utility::priceFormat($settings, $item->price * $item->quantity + $totalTaxPrice) }}
@if (!empty($totalDiscount)) @else @endif
{{ __('Subtotal') }}: {{ Utility::priceFormat($settings, $subTotal) }}
{{ __('Discount') }}:{{ Utility::priceFormat($settings, $totalDiscount) }}-
{{ __('Total') }}: {{ Utility::priceFormat($settings, $total) }}
@if(!isset($preview)) @include('quotation.script'); @endif