@php $c = $data->invoice_colors ?? []; $cPrimary = $c['primary'] ?? $data->reports_color ?? '#7B2032'; $cHeader = $c['header'] ?? '#3C3C3C'; $cFooter = $c['footer'] ?? '#3C3C3C'; $cFolio = $c['folio'] ?? $cPrimary; $cText = $c['text'] ?? '#222222'; $cTableHdr = $c['table_header'] ?? $cPrimary; // Alias compatibilidad $wineColor = $cPrimary; @endphp {{-- New-Unity ERP | Mexico/invoices/invoice3_pdf.blade.php | v4.5 | 14/06/2026 --}} {{-- v3.7 — Eliminar sponsor logo del header. --}} {{-- v3.6 — Eliminar @page/@body duplicados, eliminar líneas grises interrumpidas en totales. --}} {{-- v3.5 — Revertir @page margin, padding:5mm en body, reducir renglones a 14. --}} {{-- v3.4 — Header sin fondo/centrado, Reference Number, línea antes totales, pie fijo multi-página. --}} {{-- v3.3 — Fix charset desc, 26 renglones celdas individuales, líneas columnas. --}} {{-- v3.2 — Fix QR blob BD, charset html_entity_decode, postal_code. --}} {{-- v3.1 — Fix QR, receptor XAXX, zipcode→postal_code, descripcion uni/multi. --}} {{-- Formato 3: MINIMALISTA — barra gris top, líneas finas, sin bordes laterales en tabla. --}}
|
@if(!empty($data->company_logo))
|
{{-- Nombre empresa centrado --}}
{{ $data->company_name ?? '' }}
RFC: {{ $data->contributor->rfc ?? '' }}
@if(!empty($data->contributor->street ?? ''))
{{ $data->contributor->street ?? '' }} @endif @php $loc = implode(', ', array_filter([$data->contributor->city ?? '', $data->contributor->state ?? '', $data->contributor->country ?? ''])); @endphp @if($loc) {{ $loc }} CP {{ $data->contributor->postal_code ?? '' }}@endif Lugar Exp: {{ $data->contributor->postal_code ?? '' }} |
{{-- Folio (derecha) --}}
Reference Number
{{ $data->folio }}
|
|
Folio Fiscal (UUID) {{ $data->tdf['UUID'] ?? '—' }} |
Fecha Timbrado {{ $data->tdf['FechaTimbrado'] ?? '—' }} |
No. Certificado {{ $data->tdf['NoCertificado'] ?? '—' }} |
|
Tipo Comprobante
@if(!empty($data->tdf['TipoDeComprobante']))
{{ __('invoices.cfdi_tipo_'.$data->tdf['TipoDeComprobante']) }}
@else Ingreso @endif
|
Forma de Pago
{{ $data->payment_way ?? '—' }}
|
Método de Pago
{{ $data->payment_method ?? '—' }}
|
Condiciones
{{ $data->condition_pay ?? '—' }}
|
Moneda
{{ $data->currency ?? 'MXN' }}
|
Vencimiento
{{ $data->expiration_date ?? '—' }}
|
|
Tipo Relación
{{ array_key_first($data->tdf['CfdiRelacionados']) }}
|
UUID Relacionado
@foreach($data->tdf['CfdiRelacionados'] as $r => $UUIDs)
@foreach($UUIDs as $UUID)
{{ $UUID }}
@endforeach
@endforeach
|
| Cant. | Unidad | Cve. | No. Parte | Cve. SAT | Concepto | P. Unitario | Desc. | Importe |
|---|---|---|---|---|---|---|---|---|
| {{ $detail->quantity }} | {{ $detail->unity_name ?? $detail->unity }} | {{ $detail->unity }} | {{ $detail->product_id ?? '—' }} | {{ $detail->tax_code }} |
{!! html_entity_decode($detail->product_name, ENT_QUOTES, 'UTF-8') !!}
@php $totalProducts3 = count($details); @endphp
@if($totalProducts3 === 1 && !empty($detail->description))
{!! html_entity_decode($detail->description, ENT_QUOTES, 'UTF-8') !!} @endif |
${{ number_format((float)$detail->sales_price,2,'.',',') }} | {{ $detail->disc_per ?? 0 }}% | ${{ number_format((float)$detail->amount,2,'.',',') }} |
|
Total con letra:
{{ strtoupper($data->total_letter ?? '') }} {{ $data->total_letter_decimal ?? '' }}
|
|
|
Observaciones
{{ $data->observations ?? '' }}
|