@extends('layouts.app') @section('title', 'Comprobante ' . $comprobante->numero_completo) @section('header', $comprobante->tipo_documento_nombre . ' ' . $comprobante->numero_completo) @section('content') @php $moneda = $empresaGlobal->moneda ?? 'S/'; $color = $comprobante->estado_color; @endphp

{{ $comprobante->tipo_documento_nombre }}

{{ $comprobante->numero_completo }}

Emitida el {{ $comprobante->fecha_emision->format('d/m/Y') }} a las {{ $comprobante->hora_emision }}

{{ ucfirst($comprobante->estado_sunat) }}

Emisor

{{ $comprobante->emisor_razon_social }}

RUC: {{ $comprobante->emisor_ruc }}

Receptor

{{ $comprobante->receptor_razon_social }}

{{ $comprobante->receptor_tipo_doc_label }}: {{ $comprobante->receptor_numero_doc }}

@if($comprobante->receptor_direccion)

{{ $comprobante->receptor_direccion }}

@endif
@if($comprobante->doc_referencia_serie_numero)

Documento de referencia: {{ $comprobante->doc_referencia_serie_numero }}

Motivo: {{ $comprobante->motivo_referencia }}

@endif @if($comprobante->venta && $comprobante->venta->detalles->count())

Detalle

@foreach($comprobante->venta->detalles as $d) @endforeach
Producto Cant. P.U. Total

{{ $d->descripcion }}

{{ $d->codigo }}

{{ number_format($d->cantidad, 2) }} {{ $moneda }}{{ number_format($d->precio_unitario, 2) }} {{ $moneda }}{{ number_format($d->total, 2) }}
@endif
Op. Gravadas:{{ $moneda }}{{ number_format($comprobante->total_gravadas, 2) }}
IGV (18%):{{ $moneda }}{{ number_format($comprobante->total_igv, 2) }}
@if($comprobante->total_descuentos > 0)
Descuentos:-{{ $moneda }}{{ number_format($comprobante->total_descuentos, 2) }}
@endif
TOTAL:{{ $moneda }}{{ number_format($comprobante->importe_total, 2) }}

{{ $comprobante->importe_letras }}

@if($comprobante->mensaje_sunat)

Respuesta SUNAT

@if($comprobante->codigo_respuesta_sunat)

Código: {{ $comprobante->codigo_respuesta_sunat }}

@endif

{{ $comprobante->mensaje_sunat }}

@if($comprobante->fecha_envio_sunat)

Enviado el {{ $comprobante->fecha_envio_sunat->format('d/m/Y H:i:s') }} • Intentos: {{ $comprobante->intentos_envio }}

@endif
@endif

Acciones SUNAT

@if($comprobante->estado_sunat === 'pendiente' || $comprobante->estado_sunat === 'rechazado' || $comprobante->estado_sunat === 'excepcion')
@csrf
@endif @if($comprobante->xml_path) Descargar XML firmado @endif @if($comprobante->cdr_path) Descargar CDR SUNAT @endif @if(in_array($comprobante->estado_sunat, ['aceptado']) && in_array($comprobante->tipo_documento, ['01', '03'])) @endif
@if($comprobante->qr_data)

Código QR SUNAT

QR SUNAT

Escanea para validar en SUNAT

@endif

Datos técnicos

Tipo:
{{ $comprobante->tipo_documento }} - {{ $comprobante->tipo_documento_nombre }}
Serie:
{{ $comprobante->serie }}
Correlativo:
{{ $comprobante->numero }}
Moneda:
{{ $comprobante->moneda }}
@if($comprobante->hash)
Hash XML:
{{ Str::limit($comprobante->hash, 80) }}
@endif
Volver al listado
@endsection