@php
$moneda = $empresaGlobal->moneda ?? '$';
$esRetencion = $comprobante->tipo_documento === '07';
@endphp
{{ $esRetencion ? 'SUJETO RETENIDO' : 'INFORMACIÓN DEL CLIENTE' }}
Razón Social / Nombres: {{ $comprobante->receptor_razon_social }}
Identificación: {{ $comprobante->receptor_identificacion }} ({{ $comprobante->receptor_tipo_label }})
Fecha de emisión: {{ $comprobante->fecha_emision->format('d/m/Y') }}
@if($comprobante->receptor_direccion)
Dirección: {{ $comprobante->receptor_direccion }}
@endif
@if($comprobante->num_doc_modificado)
Comprobante que modifica: Factura {{ $comprobante->num_doc_modificado }} —
{{ $comprobante->motivo }}
@endif
@if($esRetencion)
Período fiscal: {{ $comprobante->periodo_fiscal }}
@endif
@if($esRetencion)
IMPUESTOS RETENIDOS
| Comprobante |
Impuesto |
Base imponible |
% Retención |
Valor retenido |
@foreach($comprobante->detalles as $d)
| {{ $comprobante->doc_sustento_numero }} |
{{ \App\Models\ComprobanteDetalle::CODIGOS_RETENCION[$d->ret_codigo] ?? $d->descripcion }} |
{{ number_format($d->ret_base_imponible, 2) }} |
{{ number_format($d->ret_porcentaje, 2) }}% |
{{ number_format($d->ret_valor_retenido, 2) }} |
@endforeach
| VALOR TOTAL RETENIDO: | {{ $moneda }} {{ number_format($comprobante->total_retenido, 2) }} |
@else
DETALLE
| Cant. |
Descripción |
P. Unitario |
Descuento |
Precio Total |
@foreach($comprobante->detalles as $d)
| {{ number_format($d->cantidad, 2) }} |
{{ $d->descripcion }}
@if($d->codigo_principal) Cód: {{ $d->codigo_principal }} @endif
|
{{ number_format($d->precio_unitario, 4) }} |
{{ number_format($d->descuento, 2) }} |
{{ number_format($d->precio_total_sin_impuesto, 2) }} |
@endforeach
| Subtotal sin impuestos: | {{ $moneda }} {{ number_format($comprobante->total_sin_impuestos, 2) }} |
@if($comprobante->total_descuento > 0)
| Descuento: | -{{ $moneda }} {{ number_format($comprobante->total_descuento, 2) }} |
@endif
| IVA: | {{ $moneda }} {{ number_format($comprobante->total_iva, 2) }} |
@if($comprobante->propina > 0)
| Propina: | {{ $moneda }} {{ number_format($comprobante->propina, 2) }} |
@endif
| VALOR TOTAL: | {{ $moneda }} {{ number_format($comprobante->importe_total, 2) }} |
@endif
@if($comprobante->estado_sri === 'AUTORIZADO')
COMPROBANTE AUTORIZADO POR EL SRI
Documento generado electrónicamente. Consulte su validez en www.sri.gob.ec
@elseif(in_array($comprobante->estado_sri, ['DEVUELTA','NO_AUTORIZADO','EXCEPCION']))
COMPROBANTE NO AUTORIZADO ({{ str_replace('_',' ',$comprobante->estado_sri) }})
@else
COMPROBANTE PENDIENTE DE AUTORIZACIÓN POR EL SRI
@endif