<?php
use App\Post;

$prev = Post::where('id', $model->id-1)->where('status', 1)->first();
$next = Post::where('id', $model->id+1)->where('status', 1)->first();
?>

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

<?php $__env->stopSection(); ?>
<?php $__env->startSection('description'); ?>
<?php echo e($model->meta_description); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php if(!empty($model) ): ?>
<section class="page-banner bg-overlay" style="background-image: url(<?php echo e(asset(Config("params.media_path.large").$model->image)); ?>);">
            <div class="page-inner-box col-md-6 text-center text-white">
                <h1 class="text-uppercase"><?php echo e($model->title); ?></h1>
            </div>
        </section>


     <section class="py-lg-5 py-3" id="blog-detail">
            <div class="container position-relative">
                <div class="blog-socials">
                    <a href="#"><i class="fab fa-facebook-f"></i></a>
                    <a href="#"><i class="fab fa-twitter"></i></a>
                    <a href="#"><i class="far fa-envelope"></i></a>
                    <a href="#"><i class="fab fa-linkedin-in"></i></a>
                </div>
                <div class="row justify-content-center">
                    <div class="col-lg-9">
                        <h2><?php echo e($category[0]->title); ?></h2>
                        
                        <?php echo $model->description?>
                       

                        <div class="mt-5 text-center">
                            <?php if(($model->id-1)!=0): ?>
                             <a href="<?php echo e(url("blog/".($prev->key))); ?>" class="btn btn-lg btn-primary mr-2">Previous</a> 
                           <?php endif; ?>
                        
                           <?php if(!empty($incData) ): ?>
                           <a href="<?php echo e(url("blog/".($next->key))); ?>" class="btn btn-lg btn-primary ml-2">Next</a>
                        <?php endif; ?>
                        </div>
                       <?php echo $__env->make('front/common/subscribers', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </div>
                </div>
            </div>
        </section>
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('front.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/seolocaj/public_html/homefloltd/resources/views/front/blog.blade.php ENDPATH**/ ?>