@php $labelWidth = "370px" @php $labelHeight = "148px" @php $breakLineNumber = 6 @php $breakColumnNumber = 2 @php $pageOrientation = "" @php $fontSize = "30px" @php $fontWeight = "normal" @php $cssPrint = "margin:10mm 4mm 10mm 4mm;" @if ($labelType == '1perPage') @php $labelWidth = "960px" @php $labelHeight = "600px" @php $breakLineNumber = 1 @php $breakColumnNumber = 1 @php $fontSize = "70px" @php $fontWeight = "bold" @php $cssPrint = $cssPrint . "margin:15mm 15mm 15mm 15mm; size: landscape;" @elseif ($labelType == '2perPage') @php $labelWidth = "640px" @php $labelHeight = "455px" @php $breakLineNumber = 2; @php $breakColumnNumber = 1 @php $fontSize = "45px" @php $fontWeight = "bold" @php $cssPrint = $cssPrint . "margin:15mm 15mm 15mm 15mm;" @endif Etiquetas {{$pageOrientation}} @php $breakLineCounter= 0; @for ($j = 0; $j < count($list); $j++) @if ($j == 0 || $breakLineCounter % $breakLineNumber == 0) @endif @php $breakLineCounter = $breakLineCounter+ 1; @for ($k = 0; $k < $breakColumnNumber; $k++) @if ($k > 0 ) @php $j = $j + 1 @endif @if ($j < count($list)) @else @endif @endfor @if ($breakLineCounter % $breakLineNumber == 0 && $j+1 < count($list))
{{$list[$j]->product->name}}
@php $code = $list[$j]->product->code @if ($list[$j]->product->price > 10) @php $code = $code . "-" @endif @php $code = $code . str_replace(array(',','.'),array('',''),$list[$j]->product->price) {{$code}}

@endif @endfor