<?php $__currentLoopData = $hostels->chunk(3); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $chunk): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="row"> <?php $__currentLoopData = $chunk; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-xs-12 col-lg-4"> <?php echo $__env->make('frontend3.item_need_more', compact('item'), \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="text-center py-24"> <?php echo $hostels->appends(request()->except(['page','_token']))->links(); ?> </div>