@php $contadorCols = 0; $rowNumber = 0; $page = 1; $oldPage = 1; @endphp @foreach($codes as $index => $code) @php //$detail->ticket_instructions = 'ADULTO'; @endphp @php if($contadorCols == 1){ $contadorCols = 0; $rowNumber++; if($rowNumber === 5){ //filas $filesSpace = '230px';//225px $rowNumber = 0; $page += 1; echo '
   
{{ $detail->ticket_instructions }} 
{{ $code->code }}
N°{{ $code->correlative }}
'; }else{ if(strlen($detail->ticket_instructions) <= 10) { echo ''; }else{ echo ''; } //antes era 10 // es el espacio entre codigos verticalmente } }else{ $contadorCols ++; } @endphp @endforeach