@extends('layouts.app') @section('titulo', $documento->numero_documento) @section('content')
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| 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) }} |
| Descripcion | Cantidad | Precio | % IVA | Subtotal | Total |
|---|---|---|---|---|---|
| {{ $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) }} |
| Cuenta | Debe | Haber |
|---|---|---|
| {{ $linea->cuenta->nombreCompleto() }} | {{ $linea->debe > 0 ? number_format($linea->debe, 2) : '' }} | {{ $linea->haber > 0 ? number_format($linea->haber, 2) : '' }} |