@php $barcodeList = collect(); $totalCount = 0; @endphp @foreach ($barcodes as $barcode) @for ($i = 0; $i < $barcode->quantity; $i++) @php $totalCount++; @endphp @if ($totalCount % 65 == 1 && $totalCount > 1)
@endif @if (($totalCount - 1) % 5 == 0)
@endif
Eight Eleven Shop
{{ $barcode->product->name_en }}
{{ $barcode->product->product_code }}/{{ $barcode->product->sku }}
TK {{ $barcode->product->sale_price }}
@if ($totalCount % 5 == 0 || $totalCount == count($barcodeList))
@endif @endfor @endforeach