<div>
    <div class="blog_sidebar_wrap mb_30">
        <input type="hidden" class="blog_route" name="blog_route" value="<?php echo e(route('blogs')); ?>">
        <form action="<?php echo e(route('blogs')); ?>" method="GET">

            <div class="input-group  theme_search_field4 w-100 mb_20 style2">
                <div class="input-group-prepend">
                    <button class="btn" type="button"><i class="ti-search"></i></button>
                </div>
                <input type="text" name="query" value="<?php echo e(request('query')); ?>" class="form-control search"
                       placeholder="<?php echo e(__('common.Search')); ?>…">
            </div>
        </form>

        <div class="blog_sidebar_box mb_30">
            <h4 class="font_24 f_w_500 mb-4">
                <?php echo e(__('frontend.Recent Posts')); ?>

            </h4>
            <div class="news_lists">
                <?php $__currentLoopData = $latestPosts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="single_newslist d-flex gap-3 align-items-center">
                        <div>
                            <img src="<?php echo e(getBlogImage($post->thumbnail)); ?>" class="thumb" alt="<?php echo e($post->title); ?>">
                        </div>
                        <div>
                            <a href="<?php echo e(route('blogDetails',[$post->slug])); ?>" class="details_link">
                                <?php echo e($post->title); ?>

                            </a>
                            
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            </div>
        </div>

        <div class="blog_sidebar_box mb_30">
            <h4 class="font_18 f_w_700 mb-4">
                <?php echo e(__('frontend.Blog categories')); ?>

            </h4>
            
            <ul class="Check_sidebar mb-0">
                <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li>
                        <label class="primary_checkbox d-flex">
                            <input type="checkbox" value="<?php echo e($cat->id); ?>"
                                   class="category" <?php echo e(in_array($cat->id,explode(',',$category))?'checked':''); ?>>
                            <span class="checkmark mr_15"></span>
                            <span class="label_name"><?php echo e($cat->title); ?></span>
                        </label>
                    </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            </ul>
        </div>

        <?php if(count($tags)!=0): ?>
            <div class="blog_sidebar_box mb_30 p-0 border-0">
                <h4 class="font_18 f_w_700 mb-4">
                    <?php echo e(__('frontend.Keywords')); ?>

                </h4>
                
                <div class="keyword_lists d-flex align-items-center flex-wrap gap_10">
                    <?php $__currentLoopData = $tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <a href="#"><?php echo e($tag); ?></a>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                </div>
            </div>
        <?php endif; ?>
    </div>
</div>
<?php /**PATH /home/minialms/card.minialms.com/resources/views/frontend/infixlmstheme/components/blog-sidebar-section.blade.php ENDPATH**/ ?>