
<?php $__env->startSection('title'); ?>
    <?php echo e($data->title); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta_keywords'); ?>
    <?php echo e($data['meta_keywords']); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('meta_description'); ?>
    <?php echo e($data['meta_description']); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <?php
        $blogs = \App\Models\Blog::where('locale', app()->getLocale())->latest()->paginate(6);

        $blog_content = \App\Models\Page::where('code', 'blog')
            ->where('theme', 'default')
            ->where('locale', app()->getLocale())
            ->first();

        $blog_data = json_decode($blog_content->data, true);
    ?>

    <!-- common page header start -->
    <div class="td-page-header">
        <div class="container">
            <div class="td-page-header-indicator">
                <ul>
                    <li>
                        <a href="<?php echo e(url('/')); ?>"><?php echo e(__('Home')); ?></a>
                    </li>
                    <li>
                        <a href="<?php echo e(request()->fullUrl()); ?>"><?php echo e($blog_data['title']); ?></a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="td-page-header-element">
            <img src="<?php echo e(asset('frontend/default/img/elements/header-shape.png')); ?>" alt="">
        </div>
        <div class="td-page-header-elementLeft">
            <img src="<?php echo e(asset('frontend/default/img/elements/header-shape-left.png')); ?>" alt="">
        </div>
    </div>
    <!-- common page header end -->

    <!-- all services section start -->
    <section class="td-all-blogs">
        <div class="container">
            <div class="td-all-blogs-box">
                <div class="row g-3 g-sm-4">
                    <?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-md-6">
                            <div class="td-blog-2-box-blogs-card">
                                <div class="td-blog-2-box-blogs-card-text">
                                    <a href="<?php echo e(route('blog-details', $blog->id)); ?>" class="blogs-img">
                                        <img src="<?php echo e(asset($blog->cover)); ?>" alt="<?php echo e($blog->title); ?>">
                                    </a>
                                    <a href="<?php echo e(route('blog-details', $blog->id)); ?>">
                                        <h3><?php echo e($blog->title); ?></h3>
                                    </a>
                                    <p>
                                        <?php echo e(Str::limit(strip_tags($blog->details), 100)); ?>

                                    </p>
                                    <div
                                        class="td-blog-2-box-blogs-card-text-details td-blog-2-box-blogs-card-text-details-2">
                                        <a href="<?php echo e(route('blog-details', $blog->id)); ?>"><?php echo e(__('Read More')); ?></a>
                                        <h4><?php echo e($blog->created_at); ?></h4>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
                <?php echo e($blogs->links('frontend::pagination.pagination')); ?>

            </div>
        </div>
    </section>
    <!-- all services section end -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/mxawfis.atharvatek.com/app/Providers/../../resources/views/frontend/spaceify/pages/blog.blade.php ENDPATH**/ ?>