@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
{{ isset($app_settings['title']) && $app_settings['title'] ? $app_settings['title'] : config('app.dev_title') }}
{{ $barcode->product->name_en ? Str::limit($barcode->product->name_en, 15, '') : '' }}
{{ $barcode->product->product_code }}/{{ $barcode->product->sku }}
Barcode
TK {{ $barcode->product->sale_price }}
@if ($totalCount % 5 == 0 || $totalCount == count($barcodeList))
@endif @endfor @endforeach