SUMAS:${{ number_format($resumen['subTotalVentas'] ?? 0, 2) }}
@php
$iva = 0;
if (!empty($resumen['totalIva'])) {
$iva = $resumen['totalIva'];
} elseif (!empty($resumen['tributos'])) {
foreach ($resumen['tributos'] as $tributo) {
if (($tributo['codigo'] ?? null) === '20') {
$iva = $tributo['valor'] ?? 0;
break;
}
}
}
@endphp
IVA:
${{ number_format($iva, 2) }}
SUBTOTAL:${{ number_format($resumen['subTotal'] ?? 0, 2) }}
TOTAL:${{ number_format($resumen['totalPagar'] ?? 0, 2) }}
{{ $emisor['nombre'] }} - {{ $emisor['direccion']['complemento'] }}
Email: {{ $emisor['correo'] }}