@extends('layouts.app') @section('titulo', $comprobante->numero_completo) @section('subtitulo', \App\Models\ComprobanteElectronico::TIPOS[$comprobante->tipo] . ' electrónica') @section('botones') @if(in_array($comprobante->estado, ['borrador','generado','firmado','error']))
@csrf
@endif @if(in_array($comprobante->estado, ['aceptado','observado'])) Ver / Imprimir PDF @if(!in_array($comprobante->estado, ['anulado'])) @endif @endif Volver @endsection @section('estilos') @endsection @section('contenido')
{{ \App\Models\ComprobanteElectronico::TIPOS[$comprobante->tipo] }} electrónica

{{ $comprobante->numero_completo }}

{{ \App\Models\ComprobanteElectronico::ESTADOS[$comprobante->estado] }}
TOTAL
{{ $comprobante->moneda }} {{ number_format($comprobante->total, 2) }}
IGV: {{ number_format($comprobante->igv, 2) }}
@if($comprobante->codigo_sunat || $comprobante->mensaje_sunat)
Respuesta SUNAT: @if($comprobante->codigo_sunat)[{{ $comprobante->codigo_sunat }}]@endif {{ $comprobante->mensaje_sunat }} @if(!empty($comprobante->observaciones)) @endif
@endif
Detalle del comprobante
@foreach($comprobante->lineas as $l) @endforeach
#DescripciónCant.P.Unit (s/IGV)IGVTotal
{{ $l->orden }} {{ $l->descripcion }} @if($l->codigo_producto)
Cód: {{ $l->codigo_producto }}@endif
{{ rtrim(rtrim(number_format($l->cantidad, 2), '0'), '.') }} {{ $l->unidad_medida }} {{ number_format($l->valor_unitario, 4) }} {{ number_format($l->igv, 2) }} {{ number_format($l->total, 2) }}
Op. Gravada{{ number_format($comprobante->total_gravado, 2) }}
IGV ({{ rtrim(rtrim(number_format($config->igv_porcentaje ?? 18, 2),'0'),'.') }}%){{ number_format($comprobante->igv, 2) }}
Importe Total{{ $comprobante->moneda }} {{ number_format($comprobante->total, 2) }}
@if($comprobante->total_letras)
{{ $comprobante->total_letras }}
@endif
Receptor
Tipo doc.{{ \App\Models\ComprobanteElectronico::TIPOS_DOC_RECEPTOR[$comprobante->tipo_doc_receptor] ?? '-' }}
Número{{ $comprobante->num_doc_receptor }}
Razón social{{ $comprobante->razon_social_receptor }}
@if($comprobante->direccion_receptor)
Dirección{{ $comprobante->direccion_receptor }}
@endif @if($comprobante->email_receptor)
Email{{ $comprobante->email_receptor }}
@endif
Información SUNAT
Fecha emisión{{ $comprobante->fecha_emision->format('d/m/Y') }}
@if($comprobante->hora_emision)
Hora{{ $comprobante->hora_emision }}
@endif
Moneda{{ $comprobante->moneda }}
Intentos envío{{ $comprobante->intentos_envio }}
@if($comprobante->enviado_at)
Enviado{{ $comprobante->enviado_at->format('d/m/Y H:i') }}
@endif @if($comprobante->aceptado_at)
Aceptado{{ $comprobante->aceptado_at->format('d/m/Y H:i') }}
@endif @if($comprobante->hash_xml)
Digest{{ Str::limit($comprobante->hash_xml, 30) }}
@endif
Archivos
@if($comprobante->xml_path)
XML original
Sin firma
@endif @if($comprobante->xml_firmado_path)
XML firmado
Con firma digital XMLDSig
@endif @if($comprobante->cdr_path)
CDR SUNAT
Constancia de Recepción (ZIP)
@endif @if($comprobante->pdf_path)
PDF (Representación impresa)
Con código QR SUNAT
@endif @if(!$comprobante->xml_path && !$comprobante->xml_firmado_path && !$comprobante->cdr_path && !$comprobante->pdf_path)

Aún no se han generado archivos.
Pulsa "Procesar y enviar a SUNAT".

@endif
{{-- ============== MODAL ANULAR ============== --}} @endsection