{{ mb_strtoupper($customer_quotation->company->comercial_name) }}

{{ mb_strtoupper($customer_quotation->documentType->name) }}

@if(!empty(setting('enabled_projects')) && !empty(setting('projects_logo_docs'))) @elseif(!empty(setting('branch_office_logo_docs'))) @else @endif {{ mb_strtoupper($customer_quotation->company->name) }} @if(!empty($customer_quotation->company->address_1) || !empty($customer_quotation->company->address_2) || !empty($customer_quotation->company->address_3) || !empty($customer_quotation->company->address_4))
{{ $customer_quotation->company->address_1 ?? '' }} {{ $customer_quotation->company->address_2 ?? '' }} {{ $customer_quotation->company->address_3 ?? '' }} {{ $customer_quotation->company->address_4 ?? '' }} @endif @if(!empty($customer_quotation->company->city->name) || !empty($customer_quotation->company->state->name))
{{ !empty($customer_quotation->company->city->name) ? $customer_quotation->company->city->name . ', ' : '' }}{{ $customer_quotation->company->state->name ?? '' }} @endif
{{ $customer_quotation->company->country->name ?? '' }}{!! ($customer_quotation->company->postcode ? '  ' . __('base/company.entry_postcode') . ': ' . $customer_quotation->company->postcode : '') !!}
{{ mb_strtoupper($customer_quotation->company->taxid) }}
---
{{ $customer_quotation->company->phone ?? ' ' }}
{{ $customer_quotation->company->email ?? ' ' }}
# {{ $customer_quotation->name }} {{ mb_strtoupper(__('general.text_customer')) }}
@lang('sales/customer_quotation.entry_date'): {{ \App\Helpers\Helper::convertSqlToDateTime($customer_quotation->date) }}
@if(!empty($customer_quotation->expiration_date)) @lang('sales/customer_quotation.entry_expiration_date'): {{ \App\Helpers\Helper::convertSqlToDate($customer_quotation->expiration_date) }}
@endif @if(!empty($customer_quotation->paymentTerm->name)) @lang('sales/customer_quotation.entry_payment_term_id'): {{ $customer_quotation->paymentTerm->name }}
@endif @if(!empty($customer_quotation->cfdiUse->name_sat)) @lang('sales/customer_quotation.entry_cfdi_use_id'): {{ $customer_quotation->cfdiUse->name_sat }}
@endif @lang('general.text_issued_in'): {{ $customer_quotation->branchOffice->name ?? '' }} {!! ($customer_quotation->branchOffice->postcode ? '  ' . __('base/branch_office.entry_postcode') . ': ' . $customer_quotation->branchOffice->postcode : '') !!}
{{ mb_strtoupper($customer_quotation->customer->name) }} @if(!empty($customer_quotation->customer->address_1) || !empty($customer_quotation->customer->address_2) || !empty($customer_quotation->customer->address_3) || !empty($customer_quotation->customer->address_4))
{{ $customer_quotation->customer->address_1 ?? '' }} {{ $customer_quotation->customer->address_2 ?? '' }} {{ $customer_quotation->customer->address_3 ?? '' }} {{ $customer_quotation->customer->address_4 ?? '' }} @endif @if(!empty($customer_quotation->customer->city->name) || !empty($customer_quotation->customer->state->name))
{{ !empty($customer_quotation->customer->city->name) ? $customer_quotation->customer->city->name . ', ' : '' }}{{ $customer_quotation->customer->state->name ?? '' }} @endif
{{ $customer_quotation->customer->country->name ?? '' }}{!! ($customer_quotation->customer->postcode ? '  ' . __('sales/customer.entry_postcode') . ': ' . $customer_quotation->customer->postcode : '') !!}
{{ mb_strtoupper($customer_quotation->customer->taxid) }}
@if($customer_quotation->status == \App\Models\Sales\CustomerQuotation::CANCEL)
@lang('general.text_canceled')
@endif
@foreach($customer_quotation->customerActiveQuotationLines as $result) @endforeach
{{ mb_strtoupper(__('sales/customer_quotation.column_line_name')) }} {{ mb_strtoupper(__('sales/customer_quotation.column_line_unit_measure_id')) }} {{ mb_strtoupper(__('sales/customer_quotation.column_line_quantity')) }} {{ mb_strtoupper(__('sales/customer_quotation.column_line_price_unit')) }} {{ mb_strtoupper(__('sales/customer_quotation.column_line_discount')) }} {{ mb_strtoupper(__('sales/customer_quotation.column_line_amount_untaxed')) }}
{!! nl2br($result->name) !!} {{ $result->unitMeasure->name_sat ?? '' }} {{ \App\Helpers\Helper::numberFormat($result->quantity,$result->unitMeasure->decimal_place ?? 1) }} {{ \App\Helpers\Helper::numberFormatMoney($result->price_unit,\App\Helpers\Helper::companyProductPriceDecimalPlace($customer_quotation->company_id)) }} {{ \App\Helpers\Helper::numberFormat($result->discount,2) }} {{ money($result->amount_untaxed,$customer_quotation->currency->code,true) }}
***({{\App\Helpers\Helper::numberToWordCurrency($customer_quotation->amount_total,$customer_quotation->currency->code,$customer_quotation->currency->decimal_place)}})*** @lang('general.text_amount_untaxed')
@if($customer_quotation->customerQuotationTaxes->isNotEmpty()) @foreach($customer_quotation->customerQuotationTaxes as $result) {{$result->name}}
@endforeach @endif {{ mb_strtoupper(__('general.text_amount_total')) }}
{{ money($customer_quotation->amount_untaxed,$customer_quotation->currency->code,true) }}
@if($customer_quotation->customerQuotationTaxes->isNotEmpty()) @foreach($customer_quotation->customerQuotationTaxes as $result) {{money(abs($result->amount_tax),$customer_quotation->currency->code,true)}}
@endforeach @endif {{ money($customer_quotation->amount_total,$customer_quotation->currency->code,true) }}
@if(!empty($customer_quotation->paymentWay->name_sat)) @lang('sales/customer_quotation.entry_payment_way_id'): {{ $customer_quotation->paymentWay->name_sat }}
@endif @if(!empty($customer_quotation->paymentMethod->name_sat)) @lang('sales/customer_quotation.entry_payment_method_id'): {{ $customer_quotation->paymentMethod->name_sat }}
@endif @lang('sales/customer_quotation.entry_currency_id'): {{ $customer_quotation->currency->code }}{!! ($customer_quotation->currency->code!='MXN' ? '   '.__('sales/customer_quotation.entry_currency_value').': '.round($customer_quotation->currency_value,4) :'') !!}
@if(!empty($customer_quotation->comment))

@lang('sales/customer_quotation.entry_comment')

{!! nl2br($customer_quotation->comment) !!}
@endif @if(!empty($customer_quotation->terms_of_sale))

@lang('sales/customer_quotation.entry_terms_of_sale')

{!! $customer_quotation->terms_of_sale !!}
@endif