<?php if(getSetting('enable_blog')): ?>
    <?php if($posts->count() > 0): ?>
        <!-- Start Section -->
        <section class="section">
            <div class="container">
                <!-- Start Section Inner -->
                <div class="section-inner">
                    <!-- Start Section Header -->
                    <div class="section-header">
                        <div class="section-title-sm">
                            <span><?php echo e(translate('Popular Posts', 'general')); ?></span>
                        </div>
                        <h2 class="section-title"><?php echo e(translate('Popular Posts Text', 'general')); ?></h2>
                        <p class="section-text lead mb-0">
                            <?php echo e(translate('Popular Posts Description ', 'general')); ?>

                        </p>
                    </div>
                    <!-- End Section Header -->
                    <!-- Start Section Body -->
                    <div class="section-body">
                        <div class="row row-cols-1 row-cols-lg-2 row-cols-xl-3 g-4 justify-content-center">
                            <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="col" data-aos="zoom-in-down">
                                    <a href="<?php echo e(route('posts', $post->slug)); ?>" class="card">

                                        <img loading="lazy" src="<?php echo e(asset($post->small_image)); ?>"
                                            alt="<?php echo e($post->title); ?>" />
                                        <div class="card-body">
                                            <h3 class="card-title mb-3">
                                                <?php echo e($post->title); ?>

                                            </h3>
                                            <p class="card-text lead"><?php echo e($post->description); ?></p>
                                            <p class="card-text">
                                                <small
                                                    class="text-muted"><?php echo e(ToDate($post->created_at, 'M d, Y')); ?></small>
                                            </p>
                                        </div>
                                    </a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                    <!-- End Section Body -->
                </div>
                <!-- End Section Inner -->
            </div>
        </section>
        <!-- End Section -->
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH /home/onemail/public_html/resources/views/frontend/themes/basic/sections/posts.blade.php ENDPATH**/ ?>