@php $globalIndex = 0; @endphp
@foreach ($productos as $producto)
@php $copias = $producto->caja ?? 1; @endphp
@for ($i = 0; $i < $copias; $i++)
{{ substr($producto->nombre, 0, 15) }}
{{ number_format($producto->VentaCaja, 0, ',', '.') }}
{{ $producto->codigo }}
@if($globalIndex > 0 && $globalIndex % 50 == 0)
@endif
@php $globalIndex++; @endphp
@endfor
@endforeach