<?php if(is_plugin_active('blog')): ?>
    <div
        class="box_shadow"
        style="margin-bottom: 0;padding-bottom: 80px;"
    >
        <div class="container-fluid w90">
            <div class="discover">
                <div class="row">
                    <div class="col-12">
                        <h2><?php echo BaseHelper::clean($title); ?></h2>
                        <?php if($subtitle): ?>
                            <p><?php echo BaseHelper::clean($subtitle); ?></p>
                        <?php endif; ?>
                        <br>
                        <div class="blog-container">
                            <div class="row">
                                <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="col-md-3 col-sm-6 container-grid">
                                        <div class="grid-in">
                                            <div class="grid-shadow">
                                                <div
                                                    class="hourseitem"
                                                    style="margin-top: 0; "
                                                >
                                                    <div class="blii">
                                                        <div class="img"><img
                                                                class="thumb"
                                                                src="<?php echo e(RvMedia::getImageUrl($post->image, 'small', false, RvMedia::getDefaultImage())); ?>"
                                                                alt="<?php echo e($post->name); ?>"
                                                                style="border-radius: 0"
                                                            >
                                                        </div>
                                                        <a
                                                            class="linkdetail"
                                                            href="<?php echo e($post->url); ?>"
                                                            title="<?php echo e($post->name); ?>"
                                                        ></a>
                                                    </div>
                                                </div>
                                                <div class="grid-h">
                                                    <div class="blog-title">
                                                        <a href="<?php echo e($post->url); ?>">
                                                            <h2><?php echo e($post->name); ?></h2>
                                                        </a>
                                                        <div class="post-meta">
                                                            <p class="d-inline-block">
                                                                <?php echo e($post->created_at->translatedFormat('M d, Y')); ?>

                                                                <?php echo e(__('in')); ?>

                                                                <?php if($post->firstCategory): ?>
                                                                    &nbsp;<a
                                                                        href="<?php echo e($post->firstCategory->url); ?>"><?php echo e($post->firstCategory->name); ?></a>&nbsp;
                                                                <?php endif; ?>
                                                            </p> - <p class="d-inline-block"><i class="fa fa-eye"></i>
                                                                <?php echo e(number_format($post->views)); ?></p>
                                                        </div>
                                                    </div>
                                                    <div class="blog-excerpt">
                                                        <p><?php echo e(Str::words($post->description, 35)); ?></p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH /home/gyannewsoftware/public_html/realestate13_FlexHome/platform/themes/flex-home/partials/short-codes/latest-news.blade.php ENDPATH**/ ?>