{{ 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) }}
{{ $customer_quotation->company->taxRegimen->name_sat }}
{{ $customer_quotation->company->address_1 ?? '' }} {{ $customer_quotation->company->address_2 ?? '' }} {{ $customer_quotation->company->address_3 ?? '' }} {{ $customer_quotation->company->address_4 ?? '' }}
{{ $customer_quotation->company->city->name ?? '' }}, {{ ($customer_quotation->company->state->name ?? '') }}
{{ $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('general.text_cfdi_uuid') : {{ $customer_quotation->customerInvoiceCfdi->uuid ?? '' }}
@lang('base/document_type.entry_cfdi_type_id') : {{ $customer_quotation->documentType->cfdiType->name_sat ?? '' }}
@lang('sales/customer_quotation.entry_date') : {{ \App\Helpers\Helper::convertSqlToDateTime($customer_quotation->date) }}
@lang('sales/customer_quotation.entry_expiration_date') : {{ \App\Helpers\Helper::convertSqlToDate($customer_quotation->expiration_date) }}
@lang('sales/customer_quotation.entry_payment_term_id') : {{ $customer_quotation->paymentTerm->name }}
@lang('sales/customer_quotation.entry_cfdi_use_id') : {{ $customer_quotation->cfdiUse->name_sat }}
@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) }}
{{ $customer_quotation->customer->address_1 ?? '' }} {{ $customer_quotation->customer->address_2 ?? '' }} {{ $customer_quotation->customer->address_3 ?? '' }} {{ $customer_quotation->customer->address_4 ?? '' }}
{{ $customer_quotation->customer->city->name ?? '' }} , {{ $customer_quotation->customer->state->name ?? '' }}
{{ $customer_quotation->customer->country->name ?? '' }}{!! ($customer_quotation->customer->postcode ? '  ' . __('sales/customer.entry_postcode') . ': ' . $customer_quotation->customer->postcode : '') !!}
{{ mb_strtoupper($customer_quotation->customer->taxid) }}
@lang('general.text_invalid_cfdi')
@foreach($customer_quotation->customerActiveInvoiceLines as $result) @endforeach
{{ mb_strtoupper(__('sales/customer_quotation.column_line_name')) }} {{ mb_strtoupper(__('sales/customer_quotation.column_line_sat_product_id')) }} {{ 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->satProduct->code }} {{ $result->unitMeasure->name_sat }} {{ \App\Helpers\Helper::numberFormat($result->quantity,$result->unitMeasure->decimal_place) }} {{ \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->customerInvoiceTaxes->isNotEmpty()) @foreach($customer_quotation->customerInvoiceTaxes 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->customerInvoiceTaxes->isNotEmpty()) @foreach($customer_quotation->customerInvoiceTaxes as $result) {{ money(abs($result->amount_tax),$customer_quotation->currency->code,true) }}
@endforeach @endif {{ money($customer_quotation->amount_total,$customer_quotation->currency->code,true) }}
@lang('sales/customer_quotation.entry_payment_way_id') : {{ $customer_quotation->paymentWay->name_sat }}
@lang('sales/customer_quotation.entry_payment_method_id') : {{ $customer_quotation->paymentMethod->name_sat }}
@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->cfdi_relation_id))

@lang('sales/customer_quotation.tab_relations') - {{ $customer_quotation->cfdiRelation->name_sat }}

@if($customer_quotation->customerInvoiceRelations->isNotEmpty()) @foreach($customer_quotation->customerInvoiceRelations as $result) {{$result->relation->name}}
@endforeach @endif
@if($customer_quotation->customerInvoiceRelations->isNotEmpty()) @foreach($customer_quotation->customerInvoiceRelations as $result) {{$result->relation->customerInvoiceCfdi->uuid}}
@endforeach @endif
@endif @if(!empty($customer_quotation->comment))

@lang('sales/customer_quotation.entry_comment')

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