{{-- New-Unity ERP | app/Modules/Billing/Resources/Views/Mexico/invoices/invoice1_pdf_default.blade.php | v1.1 | 12/08/2026 --}} {{-- v1.1 — Tabla: CONCEPTO 45%, PRECIO UNIT 10%, TOTAL 5%; descripción dentro de celda CONCEPTO; fila espaciadora 300px; sin fila separada de descripción. --}} {{-- v1.0 — Copia protegida de invoice1_pdf.blade.php v1.5. NUNCA modificar este archivo desde la UI. --}} {{-- v1.5 — AUD: .section color dinámico (color??reports_color??#b6b6b6); postal_code con fallback a zipcode; slot 3 corregido a sponsor_logo_2. --}} {{-- v1.4 — FIX: padding-left descripción 30%→40% (alinear con columna CONCEPT); elimina height:300px fijo. --}} {{-- v1.3 — FIX1: receptor alineado con tabla interna; FIX2: descripción colspan=8 sin bordes vacíos; FIX3: height:300px en celda descripción. --}} {{-- v1.2 — Descripción en renglón separado (7px gris); elimina renglones vacíos fijos; margin-bottom en tabla detail. --}} {{-- v1.1 — Restaurado tras eliminación accidental; postal_code → zipcode en datos del emisor. --}} @php $sectionColor = $data->color ?? $data->reports_color ?? '#b6b6b6'; @endphp {{ __('invoices.invoice') }}
{{ $data->company_name ?? '' }}
@if(!empty($data->company_logo)) @endif @if(!empty($data->sponsor_logo_1 ?? '')) @endif @if(!empty($data->sponsor_logo_2 ?? '')) @endif @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 ?? '' }}
@if(!empty($data->petition ?? '')) @endif @if(isset($data->tdf) && !empty($data->tdf['CfdiRelacionados'] ?? [])) @endif
{{ __('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') }}
@foreach($details as $nKey => $detail) @endforeach
{{ $detail->quantity }} {{ $detail->unity_name ?? $detail->unity }} {{ $detail->unity }} {{ $detail->product_number ?? $detail->product_id ?? '' }} {{ $detail->tax_code ?? '' }} {{ $detail->product_name }} @if(!empty($detail->description ?? ''))
{{ $detail->description }} @endif
{{ "$".number_format($detail->sales_price,2,".",",") }} {{ "$".number_format($detail->amount,2,".",",") }}
@if(!empty($data->discount ?? '') && str_replace('$','',$data->discount ?? '0') != 0) @endif
{{ __('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 ?? '') }}