@extends('layouts.app') @section('title', 'Comprobante ' . $comprobante->numero_completo) @section('header', $comprobante->tipo_documento_nombre . ' ' . $comprobante->numero_completo) @section('content') @php $moneda = $empresaGlobal->moneda ?? '$'; $color = $comprobante->estado_color; $esRetencion = $comprobante->tipo_documento === '07'; @endphp
{{ $comprobante->tipo_documento_nombre }} electrónica
Emitida el {{ $comprobante->fecha_emision->format('d/m/Y') }} • Ambiente: {{ $comprobante->ambiente_nombre }}
{{ $comprobante->emisor_razon_social }}
RUC: {{ $comprobante->emisor_ruc }}
{{ $comprobante->receptor_razon_social }}
{{ $comprobante->receptor_tipo_label }}: {{ $comprobante->receptor_identificacion }}
@if($comprobante->receptor_direccion){{ $comprobante->receptor_direccion }}
@endifDocumento modificado: Factura {{ $comprobante->num_doc_modificado }}
Motivo: {{ $comprobante->motivo }}
Período fiscal: {{ $comprobante->periodo_fiscal }}
Documento de sustento: {{ $comprobante->doc_sustento_numero }} ({{ $comprobante->doc_sustento_fecha?->format('d/m/Y') }})
| Impuesto | Base | % | Retenido | |
|---|---|---|---|---|
| {{ \App\Models\ComprobanteDetalle::CODIGOS_RETENCION[$d->ret_codigo] ?? $d->descripcion }} | {{ $moneda }}{{ number_format($d->ret_base_imponible, 2) }} | {{ number_format($d->ret_porcentaje, 2) }}% | {{ $moneda }}{{ number_format($d->ret_valor_retenido, 2) }} | |
| Producto | Cant. | P. Unit. | IVA | Subtotal |
|
{{ $d->descripcion }} {{ $d->codigo_principal }} |
{{ number_format($d->cantidad, 2) }} | {{ $moneda }}{{ number_format($d->precio_unitario, 4) }} | {{ number_format($d->impuesto_tarifa, 0) }}% | {{ $moneda }}{{ number_format($d->precio_total_sin_impuesto, 2) }} |
[{{ $m['identificador'] }}] {{ $m['tipo'] ?? '' }}
@endif{{ $m['mensaje'] ?? '' }}
@if(!empty($m['informacion'])){{ $m['informacion'] }}
@endif{{ $comprobante->clave_acceso }}