{{ $empresa->razon_social }}
RIF: {{ $empresa->rif }}
{{ $empresa->direccion }}
Tel: {{ $empresa->telefono }}

{{ match($documento->tipo) { 'factura' => 'Factura', 'nota_credito' => 'Nota de Credito', 'nota_debito' => 'Nota de Debito', default => $documento->tipo, } }}
N°: {{ $documento->numero_documento }}
N° Control: {{ $documento->numero_control }}
Fecha: {{ $documento->fecha->format('d/m/Y') }} {{ $documento->hora }}

Cliente: {{ $documento->cliente->razon_social }}
RIF/CI: {{ $documento->cliente->rif }}
Condicion: {{ ucfirst($documento->condicion_pago) }}
@if ($documento->estado === 'anulada') ANULADA @endif
@foreach ($documento->items as $item) @endforeach
DescripcionCant.P.Unit.Total
{{ \Illuminate\Support\Str::limit($item->descripcion, 28) }} {{ number_format($item->cantidad, 2) }} {{ number_format($item->precio_unitario, 2) }} {{ number_format($item->total_linea, 2) }}

@if ($documento->subtotal_gravado_adicional > 0) @endif @if ($documento->iva_adicional > 0) @endif @if ($documento->retencion_iva_monto > 0) @endif @if ($documento->retencion_islr_monto > 0) @endif @if ($documento->retencion_iva_monto > 0 || $documento->retencion_islr_monto > 0) @endif
Exento:{{ number_format($documento->subtotal_exento, 2) }}
Base gral.:{{ number_format($documento->subtotal_gravado_general, 2) }}
Base adic.:{{ number_format($documento->subtotal_gravado_adicional, 2) }}
IVA (16%):{{ number_format($documento->iva_general, 2) }}
IVA adic.:{{ number_format($documento->iva_adicional, 2) }}
TOTAL {{ $documento->moneda_code }}:{{ number_format($documento->total, 2) }}
Ret. IVA:-{{ number_format($documento->retencion_iva_monto, 2) }}
Ret. ISLR:-{{ number_format($documento->retencion_islr_monto, 2) }}
NETO:{{ number_format($documento->total - $documento->retencion_iva_monto - $documento->retencion_islr_monto, 2) }}
@if ($documento->tieneRetenciones())
@if ($documento->retencion_iva_monto > 0)
Comp. Ret. IVA: {{ $documento->retencion_iva_comprobante_numero }} ({{ optional($documento->retencion_iva_fecha)->format('d/m/Y') }})
@endif @if ($documento->retencion_islr_monto > 0)
Comp. Ret. ISLR: {{ $documento->retencion_islr_comprobante_numero }} ({{ optional($documento->retencion_islr_fecha)->format('d/m/Y') }})
@endif
@endif
Emitido en forma libre - PA SNAT/2011/00071.
Activa ERP - {{ now()->format('d/m/Y H:i') }}