

<?php $__env->startSection('content'); ?>
<!-- breadcrumb area start -->
<section>
    <div class="breadcrump-area text-center">
        <div class="breadcrump-title">
            <h4><?php echo e(Str::limit($blog->title,30)); ?></h4>
        </div>
        <div class="breadcrump-body">
            <a href="<?php echo e(url('/')); ?>"><?php echo e(__('Home')); ?></a> <span class="dash">/</span> <span><?php echo e(Str::limit($blog->title,15)); ?></span>
        </div>
    </div>
</section>
<!-- breadcrumb area end -->

<!-- blog details area start -->
<section>
    <div class="blog-details pt-100 pb-100">
        <div class="container">
            <div class="row">
                <div class="col-lg-8">
                    <div class="blog-details-area">
                        <div class="blog-img">
                            <img class="img-fluid" src="<?php echo e(asset($blog->thum_image->value)); ?>" alt="">
                        </div>
                        <div class="blog-title">
                            <h3><?php echo e($blog->title); ?></h3>
                        </div>
                        <div class="blog-another-info">
                            <span class="iconify" data-icon="ant-design:user-outlined" data-inline="false"></span> <?php echo e(__('By')); ?> <?php echo e(App\Models\User::where('role_id',1)->first()->name); ?> &nbsp;
                            <span class="iconify" data-icon="uil:calender" data-inline="false"></span> <?php echo e($blog->created_at->isoFormat('LL')); ?>

                        </div>
                        <div class="blog-body">
                            <p><?php echo e($blog->excerpt->value); ?></p>
                            <p><?php echo $blog->description->value; ?></p>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="blog-card">
                        <div class="blog-card-header">
                            <h3><?php echo e(__('Search')); ?></h3>
                        </div>
                        <div class="blog-card-body">
                            <form action="<?php echo e(route('blog.search')); ?>">
                                <input type="text" placeholder="<?php echo e(__('Search')); ?>" name="search" value="<?php echo e(isset($query) != null ? $query : ''); ?>">
                                <button type="submit"><?php echo e(__('Search')); ?></button>
                            </form>
                        </div>
                    </div>
                    <div class="blog-card">
                        <div class="blog-card-header">
                            <h3><?php echo e(__('Latest News')); ?></h3>
                        </div>
                        <div class="blog-card-body">
                            <div class="container">
                                <?php $__currentLoopData = $latest_blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="row mb-4 align-items-center">
                                    <div class="col-lg-4 p-0">
                                        <div class="blog-small-img">
                                            <a href="<?php echo e(route('blog.show',$blog->slug)); ?>"><img class="img-fluid" src="<?php echo e(asset($blog->thum_image->value)); ?>" alt=""></a>
                                        </div>
                                    </div>
                                    <div class="col-lg-8">
                                        <div class="blog-small-title">
                                            <a href="<?php echo e(route('blog.show',$blog->slug)); ?>"><h5><?php echo e($blog->title); ?></h5></a>
                                        </div>
                                    </div>
                                </div> 
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- blog details area end -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.frontend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\files\script\resources\views/blog/show.blade.php ENDPATH**/ ?>