{{-- New-Unity ERP | app/Modules/Billing/Resources/Views/Mexico/invoices/classic/invoice1_single_pdf.blade.php | v1.6 | 12/08/2026 --}} {{-- Basado en print.blade.php del legacy BYNET — solo variables adaptadas, diseño idéntico --}} {{-- v1.6 — AUD: .section color dinámico (color??reports_color??#b6b6b6); postal_code con fallback a zipcode. --}} {{-- v1.5 — FIX posición descripción: position:static en celdas de fila descripción para anular #detail td{position:fixed}; word-wrap:break-word. --}} {{-- v1.4 — FIX FINAL: descripción colspan=6 (UNITY→UNIT PRICE); QTY y TOTAL sin borde; white-space:pre-wrap; sin nl2br. --}} {{-- v1.3 — REVERTIDO (descripción en CONCEPT era incorrecto). --}} {{-- v1.2 — FIX2: fila descripción colspan=6 (UNITY→UNIT PRICE) sin bordes; FIX1: widths 20/20/20/40% en header logos. --}} {{-- v1.1 — FIX: sponsor_logo_3 fallback a sponsor_logo_2 en celda 3 del header. --}} {{-- v1.0 — Copia auditada: postal_code → zipcode (fix CP emisor), countEmptyRows redundante eliminado --}} @php $sectionColor = $data->color ?? $data->reports_color ?? '#b6b6b6'; @endphp
| {{ $data->company_name ?? '' }} |
|
@if(!empty($data->company_logo))
|
@if(!empty($data->sponsor_logo_1 ?? ''))
|
@if(!empty($data->sponsor_logo_2 ?? ''))
|
@if(isset($data->tdf)) {{ __('invoices.cfdi_tipo_'.$data->tdf['TipoDeComprobante']) }} @else {{ __('invoices.INVOICE') }} @endif |
| {{$data->folio ?? ''}} |
|
{{ $data->contributor->name ?? '' }} RFC {{ $data->contributor->rfc ?? '' }} {{ $data->contributor->street ?? '' }} @if(!empty($data->contributor->street2 ?? '')) {{ $data->contributor->street2 }} @endif {{ ($data->contributor->city ?? '') . " " . ($data->contributor->state ?? '') . " " . ($data->contributor->country ?? '') }} @if(!empty($data->contributor->postal_code ?? $data->contributor->zipcode ?? '')) {{ " CP" . " " . ($data->contributor->postal_code ?? $data->contributor->zipcode ?? '') }} @endif @if(!empty($data->contributor->phone ?? '')) {{ " ".$data->contributor->phone }} @endif |
{{ __('invoices.certification_date').":" }}
{{$data->tdf['FechaTimbrado'] ?? ''}} {{ __('invoices.certificate').":" }} {{$data->tdf['NoCertificado'] ?? ''}} {{ __('invoices.fiscal_folio').":" }} {{$data->tdf['UUID'] ?? ''}} {{ __('invoices.certificate_sat').":" }} {{$data->tdf['NoCertificado'] ?? ''}} |
{{ __('invoices.date').":" }} {{ $data->date ?? '' }} {{ __('invoices.customer').":" }} {{ $data->customer_name ?? '' }} {{ __('customers.taxid').":" }} {{ $data->customer_rfc ?? '' }} {{ __('customers.address').":" }} {{$data->customer_address ?? ''}} {{ __('customers.city').":" }} {{ $data->customer_city ?? '' }} {{ __('customers.state').":" }}{{ $data->customer_state ?? '' }} {{ __('customers.postalcode').":" }}{{ $data->customer_postal_code ?? '' }} {{ __('invoices.payment_data').":" }} {{ __('invoices.voucher_type').":" }} Ingreso{{ __('invoices.cfdi_uso').":" }} {{ $data->cfdi_uso ?? '' }} {{ __('invoices.payway').":" }} {{ $data->payment_way ?? '' }} {{ __('invoices.paymethod').":" }} {{ $data->payment_method ?? '' }} |
||
| {{ __('invoices.pay_conditions').":" }} | {{ $data->condition_pay ?? '' }} | {{ __('invoices.payment_expiration').":" }} | {{ ($data->expiration_date ?? '') != '31-12-1969' ? ($data->expiration_date ?? '') : '' }} |
| {{ __('invoices.purchase_order').":" }} | {{ $data->purchase_order ?? '' }} | {{ __('invoices.quote_number').":" }} | {{ $data->quote_id ?? '' }} |
| {{ __('invoices.petition').":" }} | {{ $data->petition }} | ||
| {{ __('invoices.tipo_rela').":" }} | {{ array_key_first($data->tdf['CfdiRelacionados']) }} | {{ __('invoices.tipo_rela_uuid').":" }} |
@foreach($data->tdf['CfdiRelacionados'] as $rela => $UUIDs)
@foreach($UUIDs as $UUID)
{{$UUID}} @endforeach @endforeach |
| {{ __('invoices.product_description')}} | |||||||
|---|---|---|---|---|---|---|---|
| {{ __('invoices.QUANTITY') }} | {{ __('invoices.UNITY') }} | {{ __('invoices.UNITY_CODE') }} | {{ __('invoices.PART_NUMBER') }} | {{ __('invoices.SAT_CODE') }} | {{ __('invoices.CONCEPT') }} | {{ __('invoices.UNIT_PRICE') }} | {{ __('invoices.TOTAL') }} |
| {{ $detail->quantity }} | {{ $detail->unity_name ?? $detail->unity }} | {{ $detail->unity }} | {{ $detail->product_number ?? $detail->product_id ?? '' }} | {{ $detail->tax_code ?? '' }} | {{ $detail->product_name }} | {{ "$".number_format($detail->sales_price,2,".",",") }} | {{ "$".number_format($detail->amount,2,".",",") }} |
| {{ $detail->description ?? '' }} | |||||||
| {{ __('invoices.TOTAL_LETTER').":" }} | {{ ($data->total_letter ?? '').' '.($data->total_letter_decimal ?? '') }} | {{ __('invoices.SUBTOTAL').":" }} {{ ($data->subtotal ?? '')." ".($data->currency ?? '') }} | |||||
| @if(!empty($data->discount ?? '') && str_replace('$','',$data->discount ?? '0') != 0) {{ strtoupper(__('invoices.discount')).":" }} {{ ($data->discount ?? '')." ".($data->currency ?? '') }} @else {{ __('invoices.TAX').' '.($data->tax_perc ?? '').":" }} {{ ($data->tax ?? '')." ".($data->currency ?? '') }} @endif | |||||||
| {{ __('invoices.OBSERVATIONS').":" }} | {{ $data->observations ?? '' }} | @if(!empty($data->discount ?? '') && str_replace('$','',$data->discount ?? '0') != 0) {{ __('invoices.TAX').' '.($data->tax_perc ?? '').":" }} {{ ($data->tax ?? '')." ".($data->currency ?? '') }} @else {{ __('invoices.TOTAL').":" }} {{ ($data->total ?? '')." ".($data->currency ?? '') }} @endif | |||||
| {{ __('invoices.TOTAL').":" }} {{ ($data->total ?? '')." ".($data->currency ?? '') }} | |||||||