<?php $__env->startSection('content'); ?>

    <section class="blogs">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="title">
                    <h4>OUR BLOGE</h4>
                </div>
            </div>
        </div>

        <div class="row g-3">
            
            <div class="col-lg-9 col-md-12">
                <div class="row g-3">
                    <?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($loop->index < 4): ?>
                        <div class="col-md-6">
                            <div class="card big-blog">
                                <div class="card-body">
                                    <div class="image">
                                        <img src="<?php echo e(URL::to('public/images/' . $blog->image)); ?>" class="img-fluid w-100"/>
                                        <span class="badge"><?php echo e($blog->post_date); ?></span>
                                    </div>
                                    <div class="content">
                                        <h5><a href="<?php echo e(url('blogdetails')); ?>/<?php echo e($blog->id); ?>"><?php echo e($blog->title); ?></a></h5>
                                        <div class="blog-category">
                                            <span><i class="fa fa-user-o" aria-hidden="true"></i> <?php echo e($blog->author); ?></span>
                                            <span><i class="fa fa-tags" aria-hidden="true"></i> <?php echo e($blog->tags); ?></span>
                                            <span><i class="fa fa-calendar-o" aria-hidden="true"></i><?php echo e($blog->post_date); ?></span>
                                        </div>
                                        <article><?php echo substr(strip_tags($blog->description), 0, 1000); ?>...</article>
                                        <a href="<?php echo e(url('blogdetails')); ?>/<?php echo e($blog->id); ?>" class="btn btn-primary">Read More</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                   
                </div>
            </div>

            
            <div class="col-lg-3 col-md-12">
                <div class="card sidebar">
                    <div class="card-body">
                        <div class="recent-posts">
                            <ul>
                                <?php $__currentLoopData = $blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if($loop->index >= 4): ?>
                                    <li>
                                        <a href="/blog-details.html">
                                            <div class="single-blog">
                                                <div class="image">
                                                    <img src="<?php echo e(URL::to('public/images/' . $blog->image)); ?>" class="rounded"/>
                                                </div>
                                                <div class="content">
                                                    <!--<span><?php echo e($blog->post_date); ?></span>-->
                                                    <h6><a href="<?php echo e(url('blogdetails')); ?>/<?php echo e($blog->id); ?>"><?php echo e($blog->title); ?></a></h6>
                                                    <div class="blog-category">
                                                        <span><i class="fa fa-user-o" aria-hidden="true"></i> <?php echo e($blog->author); ?></span>
                                                        <span><i class="fa fa-tags" aria-hidden="true"></i> <?php echo e($blog->tags); ?></span>
                                                        <span><i class="fa fa-calendar-o" aria-hidden="true"></i><?php echo e($blog->post_date); ?></span>
                                                    </div>
                                                    <article><?php echo substr(strip_tags($blog->description), 0, 200); ?>...</article>
                                                    <a href="<?php echo e(url('blogdetails')); ?>/<?php echo e($blog->id); ?>" class="btn btn-primary">Read More</a>
                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                    <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                            
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

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

<?php $__env->startSection('footer'); ?>
    <?php echo $__env->make('layouts.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>