<?php
$blog = getContent('blog.content',true);
$blogElements = getContent('blog.element',false,3);
?>
<!-- ==================== Blog Start Here ==================== -->
<section class="blog py-80">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-10">
                <div class="section-heading  text-center">
                    <span class="subtitle"><?php echo e(__($blog->data_values->top_heading)); ?></span>
                    <h2 class="section-heading__title"><?php echo e(__($blog->data_values->heading)); ?></h2>
                    <p class="section-heading__desc mb-30"><?php echo e(__($blog->data_values->sub_heading)); ?></p>
                </div>
            </div>
        </div>
        <div class="row gy-4 justify-content-center">
            <?php $__currentLoopData = $blogElements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-lg-4 col-md-6">
                <div class="blog-item">
                    <div class="blog-item__thumb">
                        <a href="<?php echo e(route('blog.details', ['slug' => slug($item->data_values->title), 'id' => $item->id])); ?>" class="blog-item__thumb-link">
                            <img src="<?php echo e(getImage(getFilePath('blog').'/'.'thumb_'.$item->data_values->blog_image)); ?>" alt="blog-image">
                        </a>
                    </div>
                    <div class="blog-item__content">
                        <ul class="text-list inline">
                            <li class="text-list__item"> <span class="text-list__item-icon"><i class="fas fa-calendar-alt"></i></span><?php echo e(showDateTime($item->created_at)); ?></li>
                        </ul>
                        <h4 class="blog-item__title"><a href="<?php echo e(route('blog.details', ['slug' => slug($item->data_values->title), 'id' => $item->id])); ?>" class="blog-item__title-link">
                            <?php if(strlen(__($item->data_values->title)) >50): ?>
                            <?php echo e(substr( __($item->data_values->title), 0,50).'...'); ?>

                            <?php else: ?>
                            <?php echo e(__($item->data_values->title)); ?>

                            <?php endif; ?>
                        </a></h4>
                        <a href="<?php echo e(route('blog.details', ['slug' => slug($item->data_values->title), 'id' => $item->id])); ?>" class="btn--simple"><?php echo e(__($item->data_values->blog_btn)); ?><span class="btn--simple__icon"><i class="fas fa-arrow-right"></i></span></a>
                    </div>
                </div>
            </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        </div>
    </div>
</section>
<!-- ==================== Blog End Here ==================== -->
<?php /**PATH C:\xampp\htdocs\finbiz\application\resources\views/presets/default/sections/blog.blade.php ENDPATH**/ ?>