@php $counter = $start; $total = $end + 1 - $start; $remainder = $total%3; @endphp @if($remainder > 0 ) @php $rowno = ($total / 3) +1; @endphp @else @php $rowno = $total / 3; @endphp @endif @for($p = 1; $p<= $rowno; $p++) @for($i = 1; $i <= 3; $i++) @php $qrcode = \App\QRcodeGenerator::where('lastno','=',$counter)->first(); $qr = $qrcode->qrcode; @endphp @php $counter = $counter+1; @endphp @if($counter > $end) @break @endif @endfor @endfor
@php $print_qrcode = QrCode::encoding('UTF-8')->margin(0)->size(80)->generate($qr); $code = $print_qrcode; echo substr($code,38); @endphp

{{$qrcode->humanReadableCode}}