<?php $__env->startSection('header'); ?>
    <div class="container">
        <div class="inner">
            <div class="top">
                <a href="<?php echo e(LaravelLocalization::getLocalizedURL(getCurrentLocale(), route('home'), [], true)); ?>"><?php echo e(__('main.home')); ?></a>
                <span><?php echo e(__('articles.shar_blog') ?? $blogPage->title); ?></span>
            </div>


        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <section class="news_pg">
        <!--Start blog-sec-->
        <section class="blog-sec">
            <div class="container">
                <div class="heading-sec">
                    <h4><?php echo e(__('articles.shar_blog')); ?></h4>
                </div>
                <div class="row">
                    <?php if(count($blogs)): ?>
                        <?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php if($loop->iteration == 1 || $loop->iteration == 2): ?>
                                <div class="col-lg-6">
                                    <a href="<?php echo e(route('blog.show', $blog->id)); ?>">
                                        <div class="content">
                                            <div class="item">
                                                <div class="card row no-gutters">
                                                    <div class="image-content col-lg-5">
                                                        <img src="<?php echo e(asset($blog->image)); ?>" class="main-blog">
                                                        <sapn class="date"><?php echo e(date('d M' , strtotime($blog->created_at))); ?></sapn>
                                                    </div>
                                                    <div class="card-body col-lg-7">
                                                        <span class="date"><?php echo e(date('d M, Y' , strtotime($blog->created_at))); ?></span>
                                                        <h5><?php echo e($blog->title); ?></h5>
                                                        <p><?php echo e(stripText($blog->description, 50)); ?></p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </a>
                                </div>
                                <?php else: ?>

                                <div class="col-lg-4">
                                    <a href="<?php echo e(route('blog.show', $blog->id)); ?>">
                                        <div class="card">
                                            <div class="image-content">
                                                <img src="<?php echo e(asset($blog->image)); ?>" class="main-blog">
                                                <sapn class="date"><?php echo e(date('d M' , strtotime($blog->created_at))); ?></sapn>
                                            </div>
                                            <div class="card-body">
                                                <span class="date"><?php echo e(date('d M, Y' , strtotime($blog->created_at))); ?></span>
                                                <h5><?php echo e($blog->title); ?></h5>
                                                <p><?php echo e(stripText($blog->description, 50)); ?></p>
                                            </div>
                                        </div>
                                    </a>
                                </div>
                            <?php endif; ?>

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                </div>
            </div>
        </section>
    </section>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('inner_js'); ?>
    <script>
        let url = "<?php echo e(asset($blogPage->image)); ?>";
        $('header').addClass('inner_header').attr('style', 'background: url('+url+')');
        $('.navs-container').addClass('inner_nav');
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('web.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/balyomhost/public_html/share/resources/views/web/blogs/index.blade.php ENDPATH**/ ?>