

<?php $__env->startSection('meta-keywords', "$blog->meta_keywords"); ?>
<?php $__env->startSection('meta-description', "$blog->meta_description"); ?>
<?php $__env->startSection('content'); ?>

	<!--Main Breadcrumb Area Start -->
	<div class="main-breadcrumb-area" style="background-image : url('<?php echo e(asset('assets/front/img/' . $commonsetting->breadcrumb_image)); ?>');">
        <div class="overlay"></div>
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<h1 class="pagetitle">
						<?php echo e($blog->title); ?>

					</h1>
					<ul class="pages">
						<li>
							<a href="<?php echo e(route('front.index')); ?>">
								<?php echo e(__('Home')); ?>

							</a>
						</li>
						<li class="active">
							<a href="<?php echo e(route('front.blogs')); ?>">
								<?php echo e(__('Blog')); ?>

							</a>
						</li>
						<li class="active">
							<a href="#">
								<?php echo e($blog->title); ?>

							</a>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<!--Main Breadcrumb Area End -->

   	<!-- Blog Page Grid Area Start -->
	<section class="blog-page blog-details">
		<div class="container">
			<div class="row">
				<div class="col-lg-8">
					<div class="blog-details">
                        <div class="img">
                            <img src="<?php echo e(asset('assets/front/img/'.$blog->main_image)); ?>" alt="">
                        </div>
                        <div class="content">
                            <ul class="top-meta">
                                <li>
                                    <p class="date">
                                        <?php echo e(date ( 'd M, Y', strtotime($blog->created_at) )); ?>

                                    </p>
                                </li>
                                <li>
                                    <p class="post-by">
                                        <?php echo e(__('By,')); ?>  <?php echo e(__('Admin')); ?>

                                    </p>
                                </li>
                            </ul>
                                <h4 class="title">
                                    <?php echo e($blog->title); ?>

                            </h4>
                            <div class="content-text">
                             <?php echo $blog->content; ?> 
                            </div>
						</div>
						<?php if($commonsetting->is_blog_share_links): ?>
						<div class="share-blog">
							<div class="tag-social-link text-center justify-content-center">
								<!-- AddToAny BEGIN -->
								<div class="a2a_kit a2a_kit_size_32 a2a_default_style d-inline-block">
								<a class="a2a_button_facebook"></a>
								<a class="a2a_button_twitter"></a>
								<a class="a2a_button_email"></a>
								<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
								</div>
								<script async src="https://static.addtoany.com/menu/page.js"></script>
								<!-- AddToAny END -->
							</div>
						</div>
						<?php endif; ?>
					</div>
					<div class="discus-comment-box">
						<?php if($commonsetting->is_disqus	== 1): ?>
						<div id="disqus_thread" class="mt-5"></div>
						<script>
							(function() { // DON'T EDIT BELOW THIS LINE
							var d = document, s = d.createElement('script');
							s.src = '//<?php echo e($commonsetting->disqus); ?>.disqus.com/embed.js';
							s.setAttribute('data-timestamp', +new Date());
							(d.head || d.body).appendChild(s);
							})();
						</script>
					<?php endif; ?> 
						</div> 
				</div>
				<div class="col-lg-4">
					<div class="search-widget">
						<form action="<?php echo e(route('front.blogs', ['category' => request()->input('category')])); ?>" method="GET">
						
							<input type="text" name="term" class="input-field" placeholder="<?php echo e(__('Search Blogs')); ?>" value="<?php echo e(request()->input('term')); ?>">
							<button type="submit" class="base-btn1"><i class="fas fa-search"></i></button>
						</form> 
					</div>
					<div class="categori-widget mt-30">
						<h4 class="title">
							<?php echo e(__('Categories')); ?>

						</h4>
						<ul class="cat-list">
							<?php $__currentLoopData = $bcategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bcategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<li class="<?php if(request()->input('category') == $bcategory->id): ?> active <?php endif; ?>">
								<a href="<?php echo e(route('front.blogs',  ['term'=>request()->input('term'), 'category'=>$bcategory->slug])); ?>">
									<p>
										<i class="fas fa-angle-double-right"></i>	<?php echo e($bcategory->name); ?>

									</p>
								</a>
							</li>
							<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						</ul>
					</div>
					<div class="latest-post-widget">
						<h4 class="title">
							<?php echo e(__('Latest Post')); ?>

						</h4>
						<ul class="post-list">
							<?php $__currentLoopData = $latestblogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $latestblog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<li>
								<a href="<?php echo e(route('front.blogdetails', $latestblog->slug)); ?>" class="post">
									<div class="post-img">
										<img src="<?php echo e(asset('assets/front/img/'.$latestblog->main_image)); ?>" alt="">
									</div>
									<div class="post-details">
										<p class="post-title">
											<?php echo e((strlen(strip_tags(Helper::convertUtf8($latestblog->title))) > 50) ? substr(strip_tags(Helper::convertUtf8($latestblog->title)), 0, 50) . '...' : strip_tags(Helper::convertUtf8($latestblog->title))); ?>

										</p>
									</div>
								</a>
							</li>
							<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						</ul>
					</div>
					
				</div>
			</div>
		</div>
	</section>
	<!-- Blog Page Grid Area End -->

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

<?php echo $__env->make('front.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/flexihos/nclinkbd.com/core/resources/views/front/blogdetails.blade.php ENDPATH**/ ?>