<!-- Blog Section start -->
<section class="blog-section">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="section-header text-center mb-50">
                    <span class="section-subtitle"><?php echo app('translator')->get(@$blog['single']['title']); ?></span>
                    <h3 class="section-title mx-auto"><?php echo app('translator')->get(@$blog['single']['sub_title']); ?></h3>
                    <p class="cmn-para-text mx-auto mt-20"><?php echo app('translator')->get(@$blog['single']['short_description']); ?></p>
                </div>
            </div>
        </div>
        <div class="row g-4">
            <?php $__empty_1 = true; $__currentLoopData = $blog['multiple']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <div class="col-lg-4 col-md-6">
                    <div class="blog-box">
                        <a href="<?php echo e(route('blog.details', optional($item->details)->slug)); ?>">
                            <div class="img-box">
                                <img src="<?php echo e(getFile($item->thumbnail_image_driver, $item->thumbnail_image)); ?>" alt="">
                            </div>
                        </a>
                        <div class="content-box">
                            <ul class="meta">
                                <li class="cmn-box4">
                                    <a href="<?php echo e(route('blog.author', optional(optional($item->author)->details)->slug)); ?>"><span
                                            class="icon"><i class="fa-regular fa-user"></i></span>
                                        <span>by <?php echo e(optional(optional($item->author)->details)->name); ?></span></a>
                                </li>
                                <li class="item">
                                    <span class="icon"><i class="fa-regular fa-eye"></i></span>
                                    <span><?php echo e($item->views ?? 0); ?> <?php echo app('translator')->get("Views"); ?> </span>
                                </li>
                                <li class="item">
                                    <span class="icon"><i class="fa-regular fa-calendar-days"></i></span>
                                    <span><?php echo e(dateTime($item->created_at)); ?></span>
                                </li>

                            </ul>
                            <h4 class="blog-title"><a
                                    href="<?php echo e(route('blog.details', optional($item->details)->slug)); ?>"><?php echo app('translator')->get(optional($item->details)->title); ?></a>
                            </h4>
                            <div class="para-text">
                                <p>
                                    <?php echo app('translator')->get(strip_tags(optional($item->details)->description)); ?>
                                </p>
                            </div>
                            <a href="<?php echo e(route('blog.details', optional($item->details)->slug)); ?>"
                               class="blog-btn"><?php echo app('translator')->get("read more"); ?><i
                                    class="fa-regular fa-arrow-right"></i></a>
                        </div>

                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div class="text-center p-4">
                    <img class="error-image mb-3"
                         src="<?php echo e(asset('assets/global/img/oc-error.svg')); ?>"
                         alt="Image Description" data-hs-theme-appearance="default">
                    <p class="mb-0"><?php echo app('translator')->get("No blogs available to display."); ?></p>
                </div>
            <?php endif; ?>
        </div>

        <?php if(request()->is('blogs')): ?>
            <div class="pagination-section">
                <nav>
                    <ul class="pagination">
                        <?php echo e($blog['multiple']->appends($_GET)->links(template().'partials.pagination')); ?>

                    </ul>
                </nav>
            </div>
        <?php endif; ?>
    </div>
</section>
<!-- Blog Section end -->
<?php /**PATH D:\server\htdocs\SMM_v5\project\resources\views/themes/light_green/sections/blog.blade.php ENDPATH**/ ?>