@extends('layouts.app') @section('title', $comprobante->numero_completo) @section('content')

{{ $comprobante->numero_completo }} {{ $comprobante->estado->label() }}

📄 PDF A4 🖨️ Ticket 80mm ⬇ Ticket PDF ⬇ XML Volver
@php($estado = $comprobante->estado)
Estado SUNAT: {{ $estado->label() }} @if($comprobante->sunat_codigo || $comprobante->sunat_descripcion)
[{{ $comprobante->sunat_codigo }}] {{ $comprobante->sunat_descripcion }}
@endif @if(!empty($comprobante->sunat_observaciones))
    @foreach($comprobante->sunat_observaciones as $obs)
  • {{ $obs }}
  • @endforeach
@endif
@if($comprobante->cdr_path) ⬇ CDR @endif @if($comprobante->puedeEnviarse())
@csrf
@endif
@if($comprobante->tipo_comprobante === \App\Enums\TipoComprobante::BOLETA && $comprobante->puedeEnviarse())
ℹ️ En producción, las boletas se reportan por Resumen Diario (Fase 5), no de forma individual. El envío individual sirve para pruebas en BETA.
@endif
@if($comprobante->tipo_comprobante === \App\Enums\TipoComprobante::FACTURA && ($estado === \App\Enums\EstadoComprobante::ACEPTADO || $estado === \App\Enums\EstadoComprobante::BAJA))
Comunicación de Baja (anulación) @if($baja)
{{ $baja->identificador }} · {{ ucfirst($baja->estado) }} @if($baja->sunat_codigo) — [{{ $baja->sunat_codigo }}] {{ $baja->sunat_descripcion }}@endif
Motivo: {{ $baja->motivo }}
@if($baja->puedeConsultarse())
@csrf
@endif @elseif($estado === \App\Enums\EstadoComprobante::ACEPTADO)
@csrf
@endif
@endif
Tipo{{ $comprobante->tipo_comprobante->label() }}
Fecha de emisión{{ $comprobante->fecha_emision->format('d/m/Y') }}
Cliente{{ $comprobante->cliente_razon_social }}
Documento{{ $comprobante->cliente_tipo_documento->label() }} {{ $comprobante->cliente_numero_documento }}
Moneda{{ $comprobante->moneda->label() }}
@foreach($comprobante->detalles as $d) @endforeach
Cant.DescripciónV. Unit.IGVImporte
{{ rtrim(rtrim(number_format((float)$d->cantidad,4),'0'),'.') }} {{ $d->unidad }} {{ $d->descripcion }} {{ number_format((float)$d->valor_unitario,2) }} {{ number_format((float)$d->igv,2) }} {{ number_format((float)$d->importe_total,2) }}
@if((float)$comprobante->total_exonerado>0)@endif @if((float)$comprobante->total_inafecto>0)@endif
Op. Gravada{{ number_format((float)$comprobante->total_gravado,2) }}
Op. Exonerada{{ number_format((float)$comprobante->total_exonerado,2) }}
Op. Inafecta{{ number_format((float)$comprobante->total_inafecto,2) }}
IGV (18%){{ number_format((float)$comprobante->total_igv,2) }}
TOTAL{{ $comprobante->moneda->simbolo() }} {{ number_format((float)$comprobante->importe_total,2) }}
@if($comprobante->hash)

Hash:
{{ $comprobante->hash }}

@endif
@endsection