@lang('sales/customer_lease.document_title')
@include('flash::message')
@php
//Obtiene datos del Cfdi33
$cfdi33 = !empty($data['cfdi33']) ? $data['cfdi33'] : [];
@endphp
{{ $customer_lease->documentType->name }}
{{ mb_strtoupper($customer_lease->company->name) }}
{{ $data['tax_regimen'] ?? ($customer_lease->taxRegimen->name_sat ?? $customer_lease->company->taxRegimen->name_sat) }}
{{ $customer_lease->company->address_1 ?? '' }} {{ $customer_lease->company->address_2 ?? '' }} {{ $customer_lease->company->address_3 ?? '' }} {{ $customer_lease->company->address_4 ?? '' }}
{{ $customer_lease->company->city->name ?? '' }} , {{ ($customer_lease->company->state->name ?? '') }}
{{ $customer_lease->company->country->name ?? '' }}{!! ($customer_lease->company->postcode ? ' ' . __('base/company.entry_postcode') . ': ' . $customer_lease->company->postcode : '') !!}
{{ mb_strtoupper($customer_lease->company->taxid) }}
---
{{ $customer_lease->company->phone ?? ' ' }}
{{ $customer_lease->company->email ?? ' ' }}
{{ $data['tax_regimen'] ?? ($customer_lease->taxRegimen->name_sat ?? $customer_lease->company->taxRegimen->name_sat) }}
{{ $customer_lease->company->address_1 ?? '' }} {{ $customer_lease->company->address_2 ?? '' }} {{ $customer_lease->company->address_3 ?? '' }} {{ $customer_lease->company->address_4 ?? '' }}
{{ $customer_lease->company->city->name ?? '' }} , {{ ($customer_lease->company->state->name ?? '') }}
{{ $customer_lease->company->country->name ?? '' }}{!! ($customer_lease->company->postcode ? ' ' . __('base/company.entry_postcode') . ': ' . $customer_lease->company->postcode : '') !!}
{{ mb_strtoupper($customer_lease->company->taxid) }}
---
{{ $customer_lease->company->phone ?? ' ' }}
{{ $customer_lease->company->email ?? ' ' }}
# {{ $customer_lease->name }} {!! \App\Helpers\SalesHelper::statusCustomerLeaseHtml($customer_lease->status) !!}
@lang('general.text_cfdi_uuid') : {{ $customer_lease->customerInvoiceCfdi->uuid ?? '' }}@lang('base/document_type.entry_cfdi_type_id') : {{ $customer_lease->documentType->cfdiType->name_sat ?? '' }}
@lang('sales/customer_lease.entry_date') : {{ \App\Helpers\Helper::convertSqlToDateTime($customer_lease->date) }}
@lang('sales/customer_lease.entry_date_due') : {{ \App\Helpers\Helper::convertSqlToDate($customer_lease->date_due) }}
@lang('sales/customer_lease.entry_payment_term_id') : {{ $customer_lease->paymentTerm->name }}
@lang('sales/customer_lease.entry_cfdi_use_id') : {{ $customer_lease->cfdiUse->name_sat }}
@lang('general.text_issued_in') : {{ $customer_lease->branchOffice->name ?? '' }} {!! ($customer_lease->branchOffice->postcode ? ' ' . __('base/branch_office.entry_postcode') . ': ' . $customer_lease->branchOffice->postcode : '') !!}
{{ mb_strtoupper(__('general.text_customer')) }}
{{ mb_strtoupper($customer_lease->customer->name) }}{{ $customer_lease->customer->address_1 ?? '' }} {{ $customer_lease->customer->address_2 ?? '' }} {{ $customer_lease->customer->address_3 ?? '' }} {{ $customer_lease->customer->address_4 ?? '' }}
{{ $customer_lease->customer->city->name ?? '' }} , {{ $customer_lease->customer->state->name ?? '' }}
{{ $customer_lease->customer->country->name ?? '' }}{!! ($customer_lease->customer->postcode ? ' ' . __('sales/customer.entry_postcode') . ': ' . $customer_lease->customer->postcode : '') !!}
{{ mb_strtoupper($cfdi33->Receptor['Rfc'] ?? $customer_lease->customer->taxid) }}
@lang('sales/customer_lease.entry_tax_regimen_customer_id2') : {{ $data['tax_regimen_customer'] ?? ($customer_lease->taxRegimenCustomer->name_sat ?? ($customer_lease->customer->taxRegimen->name_sat ?? '')) }}
| {{ mb_strtoupper(__('sales/customer_lease.column_line_name')) }} | {{ mb_strtoupper(__('sales/customer_lease.column_line_sat_product_id')) }} | {{ mb_strtoupper(__('sales/customer_lease.column_line_unit_measure_id')) }} | {{ mb_strtoupper(__('sales/customer_lease.column_line_quantity')) }} | {{ mb_strtoupper(__('sales/customer_lease.column_line_price_unit')) }} | {{ mb_strtoupper(__('sales/customer_lease.column_line_discount')) }} | {{ mb_strtoupper(__('sales/customer_lease.column_line_amount_untaxed')) }} |
|---|---|---|---|---|---|---|
| {{ $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_lease->company_id)) }} | {{ \App\Helpers\Helper::numberFormat($result->discount,2) }} | {{ money($result->amount_untaxed,$customer_lease->currency->code,true) }} |
@lang('sales/customer_lease.entry_payment_way_id')
: {{ $customer_lease->paymentWay->name_sat }}
@lang('sales/customer_lease.entry_payment_method_id') : {{ $customer_lease->paymentMethod->name_sat }}
@lang('sales/customer_lease.entry_currency_id') : {{ $customer_lease->currency->code }}{!! ($customer_lease->currency->code!='MXN' ? ' '.__('sales/customer_lease.entry_currency_value').': '.round($customer_lease->currency_value,4) :'') !!}
@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_lease.entry_payment_method_id') : {{ $customer_lease->paymentMethod->name_sat }}
@lang('sales/customer_lease.entry_currency_id') : {{ $customer_lease->currency->code }}{!! ($customer_lease->currency->code!='MXN' ? ' '.__('sales/customer_lease.entry_currency_value').': '.round($customer_lease->currency_value,4) :'') !!}
@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('general.text_amount_untaxed') | {{ money($customer_lease->amount_untaxed,$customer_lease->currency->code,true) }} |
|---|---|
| {{$result->name}} | {{ money(abs($result->amount_tax),$customer_lease->currency->code,true) }} |
| {{ mb_strtoupper(__('general.text_amount_total')) }} | {{ money($customer_lease->amount_total,$customer_lease->currency->code,true) }} |
@if(!empty($customer_lease->cfdi_relation_id))
@endif
@lang('sales/customer_lease.tab_relations') - {{ $customer_lease->cfdiRelation->name_sat }}
|
@if($customer_lease->customerInvoiceRelations->isNotEmpty())
@foreach($customer_lease->customerInvoiceRelations as $result)
{{$result->relation->name}} @endforeach @endif |
@if($customer_lease->customerInvoiceRelations->isNotEmpty())
@foreach($customer_lease->customerInvoiceRelations as $result)
{{$result->relation->customerInvoiceCfdi->uuid}} @endforeach @endif |
@if(!empty($customer_lease->comment))
@endif
@lang('sales/customer_lease.entry_comment')
| {{ $customer_lease->comment }} |
@if(!empty($cfdi33))
@endif
|
|
@lang('general.text_cfdi_tfd_cadena_origen') {{ $data['tfd_cadena_origen'] }} @lang('general.text_cfdi_tfd_sello_cfdi') {{ $cfdi33->complemento->timbreFiscalDigital['SelloCFD'] }} @lang('general.text_cfdi_tfd_sello_sat') {{ $cfdi33->complemento->timbreFiscalDigital['SelloSAT'] }} |