@php //Obtiene datos del Cfdi33 $draft = (int) $customer_payment->status == \App\Models\Sales\CustomerPayment::DRAFT ? true : false; $cfdi33 = empty($data['cfdi33']) ? null : $data['cfdi33']; @endphp
@if($cfdi33 && $customer_payment->customerPaymentCfdi->pac->test)

*** @lang('general.text_test_cfdi') ***

@endif
@if(!empty(setting('enabled_projects')) && !empty(setting('projects_logo_docs'))) @elseif(!empty(setting('branch_office_logo_docs'))) @else @endif

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

{{ mb_strtoupper($customer_payment->company->comercial_name) }}
{{ mb_strtoupper($customer_payment->company->name) }} | {{ mb_strtoupper($customer_payment->company->taxid) }} | {{ $data['tax_regimen'] ?? ($customer_payment->taxRegimen->name_sat ?? $customer_payment->company->taxRegimen->name_sat) }}
@if(!empty($customer_payment->company->address_1) || !empty($customer_payment->company->address_2) || !empty($customer_payment->company->address_3) || !empty($customer_payment->company->address_4)) {{ $customer_payment->company->address_1 ?? '' }} {{ $customer_payment->company->address_2 ?? '' }} {{ $customer_payment->company->address_3 ?? '' }} {{ $customer_payment->company->address_4 ?? '' }} @endif @if(!empty($customer_payment->company->city->name) || !empty($customer_payment->company->state->name)) {{ !empty($customer_payment->company->city->name) ? $customer_payment->company->city->name . ', ' : '' }}{{ !empty($customer_payment->company->state->name) ? $customer_payment->company->state->name . ', ' : '' }} @endif {{ $customer_payment->company->country->name ?? '' }}{!! ($customer_payment->company->postcode ? '  ' . __('base/company.entry_postcode') . ': ' . $customer_payment->company->postcode : '') !!} | {{ $customer_payment->company->phone ?? ' ' }} | {{ $customer_payment->company->email ?? ' ' }}

{{ __('general.text_customer') }}

{{ mb_strtoupper(!empty($cfdi33->Receptor['Nombre']) ? $cfdi33->Receptor['Nombre'] : $customer_payment->customer->name) }} @if(!empty($customer_payment->customer->address_1) || !empty($customer_payment->customer->address_2) || !empty($customer_payment->customer->address_3) || !empty($customer_payment->customer->address_4))
{{ $customer_payment->customer->address_1 ?? '' }} {{ $customer_payment->customer->address_2 ?? '' }} {{ $customer_payment->customer->address_3 ?? '' }} {{ $customer_payment->customer->address_4 ?? '' }}, @endif @if(!empty($customer_payment->customer->city->name) || !empty($customer_payment->customer->state->name))
{{ !empty($customer_payment->customer->city->name) ? $customer_payment->customer->city->name . ', ' : '' }}{{ $customer_payment->customer->state->name ?? '' }} @endif
{{ $customer_payment->customer->country->name ?? '' }}{!! ($customer_payment->customer->postcode ? '  ' . __('sales/customer.entry_postcode') . ': ' . $customer_payment->customer->postcode : '') !!}
{{ mb_strtoupper($cfdi33->Receptor['Rfc'] ?? $customer_payment->customer->taxid) }}
{{ __('sales/customer_payment.entry_name') }}

{{ $customer_payment->name }}

@lang('sales/customer_payment.entry_date')

{{ \App\Helpers\Helper::convertSqlToDateTime($customer_payment->date) }}

@lang('sales/customer_payment.entry_date_payment')

{{ $customer_payment->date_payment ? \App\Helpers\Helper::convertSqlToDateTime($customer_payment->date_payment) : '' }}

@lang('sales/customer_payment.entry_amount')

{{ money($customer_payment->amount,$customer_payment->currency->code,true) }}

@lang('general.text_cfdi_uuid')
{{ $customer_payment->customerPaymentCfdi->uuid ?? '' }}
@lang('base/document_type.entry_cfdi_type_id')
{{ $customer_payment->documentType->cfdiType->name_sat ?? '' }}
@lang('sales/customer_payment.entry_currency_id')
{{ $customer_payment->currency->code }}{!! ($customer_payment->currency->code!='MXN' ? '   '.__('sales/customer_payment.entry_currency_value').': '.round($customer_payment->currency_value,4) :'') !!}
@lang('general.text_issued_in')
{{ $customer_payment->branchOffice->name ?? '' }} {!! ($customer_payment->branchOffice->postcode ? '  ' . __('base/branch_office.entry_postcode') . ': ' . ($cfdi33['LugarExpedicion'] ?? $customer_payment->branchOffice->postcode) : '') !!}
@if($customer_payment->status == \App\Models\Sales\CustomerPayment::CANCEL)
@if(!empty($customer_payment->customerPaymentCfdi->uuid)) @lang('general.text_canceled_cfdi') @else @lang('general.text_canceled') @endif
@endif @if($draft)
@lang('general.text_pre_payment')
@endif
{{ mb_strtoupper(__('sales/customer_invoice.column_line_name')) }} {{ mb_strtoupper(__('sales/customer_invoice.column_line_sat_product_id')) }} {{ mb_strtoupper(__('sales/customer_invoice.column_line_unit_measure_id')) }} {{ mb_strtoupper(__('sales/customer_invoice.column_line_quantity')) }} {{ mb_strtoupper(__('sales/customer_invoice.column_line_price_unit')) }} {{ mb_strtoupper(__('sales/customer_invoice.column_line_amount_untaxed')) }}
Pago 84111506 ACT 1 {{ \App\Helpers\Helper::numberFormatMoney(0,0) }} {{ \App\Helpers\Helper::numberFormatMoney(0,0) }}

@lang('sales/customer_payment.text_payment_complement')

@if($customer_payment->customerPaymentReconcileds->isNotEmpty()) @foreach($customer_payment->customerPaymentReconcileds as $result) @endforeach @endif
{{ mb_strtoupper(__('sales/customer_payment.column_reconciled_uuid')) }} {{ mb_strtoupper(__('sales/customer_payment.column_reconciled_serie')) }} {{ mb_strtoupper(__('sales/customer_payment.column_reconciled_folio')) }} {{ mb_strtoupper(__('sales/customer_payment.column_reconciled_currency')) }} {{ mb_strtoupper(__('sales/customer_payment.column_reconciled_currency_value2')) }} {{ mb_strtoupper(__('sales/customer_payment.column_reconciled_payment_method')) }} {{ mb_strtoupper(__('sales/customer_payment.column_reconciled_number_of_payment')) }} {{ mb_strtoupper(__('sales/customer_payment.column_reconciled_last_balance')) }} {{ mb_strtoupper(__('sales/customer_payment.column_reconciled_amount_reconciled2')) }} {{ mb_strtoupper(__('sales/customer_payment.column_reconciled_currenct_balance')) }}
{{ $result->uuid_related }} {{ $result->serie_related }} {{ $result->folio_related }} {{ $result->currency_code_related }} @if($customer_payment->currency->code != $result->currency_code_related) {{ \App\Helpers\Helper::numberFormat($customer_payment->currency_value/$result->currency_value,6) }} @endif {{ $result->payment_method_code_related }} {{ $result->number_of_payment }} {{ money($result->last_balance,$customer_payment->currency->code,true) }} {{ money($result->amount_reconciled,$customer_payment->currency->code,true) }} {{ money($result->current_balance,$customer_payment->currency->code,true) }}
@lang('sales/customer_payment.entry_payment_way_id'): {{ $customer_payment->paymentWay->name_sat }}
@lang('sales/customer_payment.entry_reference'): {{ $customer_payment->reference }}
@if(!empty($cfdi33)) @lang('general.text_cfdi_certificado'): {{ $cfdi33['NoCertificado'] }}
@lang('general.text_cfdi_tfd_no_certificado_sat'): {{ $cfdi33->complemento->timbreFiscalDigital['NoCertificadoSAT'] }}
@lang('general.text_cfdi_tfd_fecha_timbrado'): {{ \App\Helpers\Helper::convertSqlToDateTime(str_replace('T',' ',$cfdi33->complemento->timbreFiscalDigital['FechaTimbrado'])) }}
@endif
@lang('sales/customer_payment.text_ordenante')
@lang('sales/customer_payment.text_RfcEmisorCtaOrd'): {{ $customer_payment->customerBankAccount->bank->taxid ?? '' }}
@lang('sales/customer_payment.text_NomBancoOrdExt'): {{ $customer_payment->customerBankAccount->bank->name ?? '' }}
@lang('sales/customer_payment.text_CtaOrdenante'): {{ $customer_payment->customerBankAccount->account_number ?? '' }}
@lang('sales/customer_payment.text_beneficiario')
@lang('sales/customer_payment.text_RfcEmisorCtaOrd'): {{ $customer_payment->companyBankAccount->bank->taxid ?? '' }}
@lang('sales/customer_payment.text_CtaOrdenante'): {{ $customer_payment->companyBankAccount->account_number ?? '' }}
@if(!empty($data['cfdi33']->complemento->pagos->pago['TipoCadPago']))

 

@lang('sales/customer_payment.entry_tipo_cadena_pago')
{!! nl2br($data['cfdi33']->complemento->pagos->pago['TipoCadPago']) !!} - {{isset($tipo_cadena_pagos[$data['cfdi33']->complemento->pagos->pago['TipoCadPago']]) ? $tipo_cadena_pagos[$data['cfdi33']->complemento->pagos->pago['TipoCadPago']] : '' }}
@lang('sales/customer_payment.entry_certificado_pago')
{!! nl2br($data['cfdi33']->complemento->pagos->pago['CertPago']) !!}
@lang('sales/customer_payment.entry_cadena_pago')
{!! nl2br($data['cfdi33']->complemento->pagos->pago['CadPago']) !!}
@lang('sales/customer_payment.entry_sello_pago')
{!! nl2br($data['cfdi33']->complemento->pagos->pago['SelloPago']) !!}
@endif @if(!empty($customer_payment->cfdi_relation_id))

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

@if($customer_payment->customerPaymentRelations->isNotEmpty()) @foreach($customer_payment->customerPaymentRelations as $result) {{$result->relation->name ?? ''}}
@endforeach @endif
@if($customer_payment->customerPaymentRelations->isNotEmpty()) @foreach($customer_payment->customerPaymentRelations as $result) {{$result->uuid_related}}
@endforeach @endif
@endif @if(!empty($customer_payment->comment))

@lang('sales/customer_payment.entry_comment')

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