{{ __('PROPOSAL') }}

@if ($settings['proposal_qr_display'] == 'on')
{!! DNS2D::getBarcodeHTML(route('pay.proposalpay', Crypt::encrypt($proposal->proposal_id)), 'QRCODE', 2, 2) !!}
@endif
@if (!empty($settings['company_name']) && !empty($settings['company_email']) && !empty($settings['company_address'])) @endif

{{ __(' FROM') }}:
@if (!empty($settings['company_name'])) {{ $settings['company_name'] }} @endif
@if (!empty($settings['company_email'])) {{ $settings['company_email'] }} @endif
@if (!empty($settings['company_telephone'])) {{ $settings['company_telephone'] }} @endif
@if (!empty($settings['company_address'])) {{ $settings['company_address'] }} @endif @if (!empty($settings['company_city']))
{{ $settings['company_city'] }}, @endif @if (!empty($settings['company_state'])) {{ $settings['company_state'] }} @endif @if (!empty($settings['company_country']))
{{ $settings['company_country'] }} @endif @if (!empty($settings['company_zipcode'])) - {{ $settings['company_zipcode'] }} @endif

@if (!empty($settings['registration_number'])) {{ __('Registration Number') }} : {{ $settings['registration_number'] }} @endif
@if (!empty($settings['tax_type']) && !empty($settings['vat_number'])) {{ $settings['tax_type'] . ' ' . __('Number') }} : {{ $settings['vat_number'] }}
@endif

@if (!empty($customFields) && count($proposal->customField) > 0) @foreach ($customFields as $field) @endforeach @endif
{{ __('Number: ') }} {{ \App\Models\Proposal::proposalNumberFormat($proposal->proposal_id, $proposal->created_by, $proposal->workspace) }}
{{ __('Issue Date:') }} {{ company_date_formate($proposal->issue_date, $proposal->created_by, $proposal->workspace) }}
{{ $field->name }}: @if ($field->type == 'attachment') @else

{{ !empty($proposal->customField[$field->id]) ? $proposal->customField[$field->id] : '-' }}

@endif

{{ __('Name ') }}: {{ !empty($customer->name) ? $customer->name : '' }}

@if (!empty($customer->billing_name) && !empty($customer->billing_address) && !empty($customer->billing_zip)) {{ __('Bill To') }}:

{{ !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 : '' }}

@endif

{{ __('Email ') }}: {{ !empty($customer->email) ? $customer->email : '' }}

@if ($settings['proposal_shipping_display'] == 'on') @if (!empty($customer->shipping_name) && !empty($customer->shipping_address) && !empty($customer->shipping_zip)) {{ __('Ship To') }}:

{{ !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 : '' }}

@endif @endif
@if($proposal->proposal_module == "account") @endif @if (isset($proposal->itemData) && count($proposal->itemData) > 0) @foreach ($proposal->itemData as $key => $item) @if($proposal->proposal_module == "account") @endif @if ($item->description != null) @endif @endforeach @else @endif @if($proposal->proposal_module == "account") @endif @php $colspan = 4; if($proposal->proposal_module == "account"){ $colspan = 5; } @endphp
{{__('Item Type')}}{{ __('Item') }} {{ __('Quantity') }} {{ __('Rate') }} {{ __('Discount') }} {{ __('Tax') }} (%) {{ __('Price') }}{{ __('After discount & tax') }}
{{!empty($item->product_type) ? Str::ucfirst($item->product_type) : '--' }}{{ $item->name }} {{ $item->quantity }} {{ currency_format_with_sym($item->price, $proposal->created_by, $proposal->workspace) }} {{ $item->discount != 0 ? currency_format_with_sym($item->discount, $proposal->created_by, $proposal->workspace) : '-' }} @if (!empty($item->itemTax)) @foreach ($item->itemTax as $taxes) {{ $taxes['name'] }} ({{ $taxes['rate'] }}) {{ $taxes['price'] }} @endforeach @else

-

@endif
{{ currency_format_with_sym($item->price * $item->quantity - $item->discount + (isset($item->tax_price) ? $item->tax_price : 0), $proposal->created_by, $proposal->workspace) }}
{{ $item->description }}
- - -

-

-

- -
-
{{ __('Total') }} {{ $proposal->totalQuantity }} {{ currency_format_with_sym($proposal->totalRate, $proposal->created_by, $proposal->workspace) }} {{ currency_format_with_sym($proposal->totalDiscount, $proposal->created_by, $proposal->workspace) }} {{ currency_format_with_sym($proposal->totalTaxPrice, $proposal->created_by, $proposal->workspace) }} {{ currency_format_with_sym($proposal->getSubTotal(), $proposal->created_by, $proposal->workspace) }}
@if ($proposal->getTotalDiscount()) @endif @if (!empty($proposal->taxesData)) @foreach ($proposal->taxesData as $taxName => $taxPrice) @endforeach @endif
{{ __('Discount') }}: {{ currency_format_with_sym($proposal->getTotalDiscount(), $proposal->created_by, $proposal->workspace) }}
{{ $taxName }} : {{ currency_format_with_sym($taxPrice, $proposal->created_by, $proposal->workspace) }}
{{ __('Total') }}: {{ currency_format_with_sym($proposal->getSubTotal() - $proposal->getTotalDiscount() + $proposal->getTotalTax(), $proposal->created_by, $proposal->workspace) }}
@if (!isset($preview)) @include('proposal.script') @endif