{{--

Student Name : {{ $student->name }}

@php $generatorPNG = new Picqer\Barcode\BarcodeGeneratorPNG(); @endphp --}} Print Barcode @php $countStudent = count($student); $pembulatan = round($countStudent / 6) + 2; @endphp @for ($i = 1, $ii = 1; $i < $pembulatan; $i++, $ii++) {{-- {{ $pembulatan }} --}} @php $students = app\Models\Students::leftJoin('price', 'price.id', 'student.priceid') ->select('student.id as id', 'student.name as name', 'price.program as program') ->where('status', 'ACTIVE') ->skip($i * 6 + 42 * 21 + 12 * 20) ->take(6) ->get(); @endphp {{-- {{ $i * 6 + 42 }} --}}
@foreach ($students as $item)

{{ $item->name }}

{{--

{{ $item->program }}

--}}

{{ $item->id }}

@endforeach
@endfor {{--
This is a rectangle!
--}} {{--
This is a rectangle!
--}}