<ul class="Check_sidebar">
    <?php if(isset($result)): ?>
        <?php $__currentLoopData = $result; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
                $hasItem=is_array(request('category_id'));
                if ($hasItem){
                    $categories =request('category_id');
                }
            ?>
            <li>
                <label class="primary_checkbox d-flex">
                    <input type="checkbox" value="<?php echo e($cat->id); ?>"
                           class="category" <?php if($hasItem): ?>
                        <?php echo e(in_array($cat->id,$categories)?'checked':''); ?>

                        <?php endif; ?> >
                    <span class="checkmark mr_15"></span>
                    <span class="label_name"><?php echo e($cat->name); ?></span>
                </label>
            </li>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
</ul>
<?php /**PATH /home/penastud/public_html/lmspena/resources/views/frontend/infixlmstheme/snippets/components/_single_sidebar_category.blade.php ENDPATH**/ ?>