@php $tdCount = 0; @endphp @for($row = 0; $row < $option['row']; $row++) @for($column = 0; $column < $option['column']; $column++) @php if($tdCount == count($products) - 1){ break; } $tdCount++; @endphp @endfor @php if($tdCount == count($products) - 1){ break; } @endphp @endfor
@php $barcode = new \Milon\Barcode\DNS1D; @endphp
@if($option['branch'] == true) {{ $products[$tdCount][0]['branch'] }}
@endif @if($option['name'] == true){{ $products[$tdCount][0]['name'] }}
@endif @if($option['price'] == true) {{ $products[$tdCount][0]['symbol'] }} {{ App\Helpers\StringHelper::currency($products[$tdCount][0]['price']) }}
@endif
{{ $products[$tdCount][0]['sku'] }}