FECHA: {{ $compra->fecha }} {{ $compra->hora }}
FACTURA: {{ str_pad($compra->id, 8, '0', STR_PAD_LEFT) }}
RAZÓN SOCIAL: {{ $configuracion->razonsocial }}
DOMICILIO FISCAL: {{ $configuracion->direccion }}
RUT / R.I.F.: {{ $configuracion->rut }}
TELÉFONO: {{ $configuracion->telefono }}
EMAIL: {{ $configuracion->email }}
{{-- Detalle (CANTIDAD / CÓDIGO / DESCRIPCIÓN / PRECIO UNITARIO / NETO) --}}
@forelse($detallecompra as $detalle) @empty @endforelse
CANTIDAD CÓDIGO DESCRIPCIÓN PRECIO UNITARIO NETO
{{ $detalle->cantidad ?? 1 }} {{ $detalle->producto->codigo ?? '' }} {{ $detalle->producto->nombre ?? '' }} {{ $detalle->precio ?? 0 }} {{ $detalle->total }}
Sin ítems.
{{-- Totales (similar al formato de la imagen) --}}
SUBTOTAL {{ $compra->subtotal }}
DESCUENTO - {{ $compra->descuento }}
TOTAL {{ $compra->total }}

* Documento generado automáticamente.