@extends('layouts.app') @section('titulo', $documento->numero_documento) @section('content')

{{ ucfirst(str_replace('_',' ',$documento->tipo)) }} {{ $documento->numero_documento }}

Ver PDF @if ($documento->esFactura() && $documento->estado === 'emitida') + Nota de credito + Nota de debito @endif @if ($documento->estado === 'emitida') @endif

Cliente: {{ $documento->cliente->razon_social }} ({{ $documento->cliente->rif }})

Fecha: {{ $documento->fecha->format('d/m/Y') }} {{ $documento->hora }}

N° Control: {{ $documento->numero_control ?? '-' }}

Condicion: {{ ucfirst($documento->condicion_pago) }}

Estado: @if ($documento->estado === 'emitida') Emitida @else Anulada: {{ $documento->motivo_anulacion }} @endif

@if ($documento->documentoReferencia)

Referencia: {{ $documento->documentoReferencia->numero_documento }}

@endif
@if ($documento->retencion_iva_monto > 0) @endif @if ($documento->retencion_islr_monto > 0) @endif
Exento{{ number_format($documento->subtotal_exento, 2) }}
Gravado general{{ number_format($documento->subtotal_gravado_general, 2) }}
Gravado adicional{{ number_format($documento->subtotal_gravado_adicional, 2) }}
IVA general{{ number_format($documento->iva_general, 2) }}
IVA adicional{{ number_format($documento->iva_adicional, 2) }}
Total{{ number_format($documento->total, 2) }}
Retencion IVA ({{ $documento->retencion_iva_comprobante_numero }})-{{ number_format($documento->retencion_iva_monto, 2) }}
Retencion ISLR ({{ $documento->retencion_islr_comprobante_numero }})-{{ number_format($documento->retencion_islr_monto, 2) }}
@foreach ($documento->items as $item) @endforeach
DescripcionCantidadPrecio% IVASubtotalTotal
{{ $item->descripcion }} {{ number_format($item->cantidad, 4) }} {{ number_format($item->precio_unitario, 4) }} {{ number_format($item->porcentaje_iva, 2) }} {{ number_format($item->subtotal, 2) }} {{ number_format($item->total_linea, 2) }}
@if ($documento->comprobante)

Comprobante contable: {{ $documento->comprobante->numero }}

@foreach ($documento->comprobante->lineas as $linea) @endforeach
CuentaDebeHaber
{{ $linea->cuenta->nombreCompleto() }} {{ $linea->debe > 0 ? number_format($linea->debe, 2) : '' }} {{ $linea->haber > 0 ? number_format($linea->haber, 2) : '' }}
@endif @if ($documento->notasAsociadas->isNotEmpty())

Notas asociadas

@endif @endsection