@php /** * @var $document Modules\Label\Entities\LabelEntity * @var $row Modules\Label\Entities\LabelItemEntity */ $items = $document->items; $chunk_quantity = 4; $chunks = collect($items)->chunk($chunk_quantity); $quantity = 1; @endphp
@foreach($chunks as $index => $chunk)
@foreach($chunk as $idx => $row) @endforeach
# Producto(s) Cant.
{{ $quantity++ }} {!! func_substring($row->name, 26, '...') !!} {{ floatval($row->quantity) }}
@endforeach