{{-- Renglones/Detalles Facturados (si existen) --}} @if($registro->details && $registro->details->count() > 0)

DETALLE DE ITEMS

@if(!$registro->is_no_fiscal) @endif @php $totalNeto = 0; $totalIva = 0; $totalSubtotal = 0; @endphp @foreach($registro->details as $detalle) @php $totalNeto += $detalle->neto_gravado ?? 0; $totalIva += $detalle->iva_monto ?? 0; $totalSubtotal += $detalle->iva_subtotal ?? 0; @endphp @if(!$registro->is_no_fiscal) @endif @endforeach @if(!$registro->is_no_fiscal) @endif
Código Descripción Cant. P. Unit.Neto IVASubtotal
{{ $detalle->codigo ?? '-' }} {{ $detalle->descripcion }} {{ number_format($detalle->cantidad, 2, ',', '.') }} {{ $registro->moneda->simbolo }} {{ number_format($detalle->precio_unitario, 2, ',', '.') }}{{ $registro->moneda->simbolo }} {{ number_format($detalle->neto_gravado, 2, ',', '.') }} {{ $registro->moneda->simbolo }} {{ number_format($detalle->iva_monto, 2, ',', '.') }}{{ $registro->moneda->simbolo }} {{ number_format($detalle->iva_subtotal, 2, ',', '.') }}
TOTALES:{{ $registro->moneda->simbolo }} {{ number_format($totalNeto, 2, ',', '.') }} {{ $registro->moneda->simbolo }} {{ number_format($totalIva, 2, ',', '.') }}{{ $registro->moneda->simbolo }} {{ number_format($totalSubtotal, 2, ',', '.') }}

@endif {{-- Productos cargados (inv_product_receipt) - comprobantes armados por producto, ej. Tienda Nube/ML/Shopify --}} @if($productos && $productos->count() > 0)

PRODUCTOS

@php $totalCantidadProductos = 0; $totalImporteProductos = 0; @endphp @foreach($productos as $producto) @php $totalCantidadProductos += $producto->cantidades ?? 0; $totalImporteProductos += $producto->precio_final ?? 0; @endphp @endforeach
Código Producto Cant. P. S/IVA P. Final
{{ $producto->codigo_interno ?? '-' }} {{ $producto->descripcion ?? '-' }} @if($producto->variant)
{{ $producto->variant->descripcion_completa }} @endif
{{ number_format($producto->cantidades, 2, ',', '.') }} {{ $registro->moneda->simbolo }} {{ number_format($producto->precio_sin_iva, 2, ',', '.') }} {{ $registro->moneda->simbolo }} {{ number_format($producto->precio_final, 2, ',', '.') }}
TOTALES: {{ number_format($totalCantidadProductos, 2, ',', '.') }} {{ $registro->moneda->simbolo }} {{ number_format($totalImporteProductos, 2, ',', '.') }}

@endif {{-- Composición Tributaria (Alícuotas) - Solo si NO es No Fiscal --}} @if(!$registro->is_no_fiscal)

COMPOSICIÓN TRIBUTARIA

@foreach($registro->receipt_detail as $linea) @if($linea->system_tax) @endif @endforeach @foreach($registro->receipt_detail as $linea) @if($linea->other_tax) @endif @endforeach
ALICUOTA IMPORTE IVA IIBB
{{ ucfirst($linea->system_tax->name) }} {{$registro->moneda->simbolo}} {{ number_format($linea->amount, 2, ',', '.') }} {{$registro->moneda->simbolo}} {{ number_format($linea->tax_amount, 2, ',', '.') }} {{$linea->taxable_iibb==1? 'No Gravado IIBB' : 'Gravado IIBB'}}
{{$linea->other_tax->name}} {{$registro->moneda->simbolo}} {{ number_format($linea->amount, 2, ',', '.') }}
@endif