<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >	
	<!----Banner Start---->
	<div class="fd_bread_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_bread">
						<h1 class="fd_page_title"><span>blogs</span></h1>
						<nav aria-label="breadcrumb">
						  <ol class="breadcrumb">
							<li class="breadcrumb-item" aria-current="page">blogs</li>
							 
						  </ol>
						</nav>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!----Blog Section Start---->
	<?php if($this->hs->getwebsettings('blog_section') == 1){  ?> 
	<?php if(!empty($all_blogs)){ ?>
	<div class="fd_blog_wrapper fd_blog_page">
		<div class="container">
			<div class="row">
				<div class="col-lg-9" id="show_blog">
				<?php  foreach($all_blogs as $blogs){
						if($blogs->blog_status == 1){
				?>
					<div class="fd_blog_slider btm_padder60">
						<div class="fd_post_box">
							<div class="fd_post_img">
								<img src="<?php echo base_url().$blogs->blogsingle_image; ?>" alt="">
								<div class="fd_post_date_box">
									<div class="fd_date_inner">
									<?php $blogdate = strtotime($blogs->blog_date);
														 $day = date('d', $blogdate);
														 $month = date('M', $blogdate);
									?>
										<span class="pst_date"><?php echo $day; ?></span>
										<span class="pst_month"><?php echo $month; ?></span>
									</div>
								</div>
							</div>
							<div class="fd_post_data">
								<h2><a href="<?php echo base_url().'blogs/single/'.$blogs->blog_slug; ?>"><?php echo $blogs->blog_title; ?></a></h2>
								<ul class="fd_pst_info">
									<li><a href="<?php echo base_url().'blogs/single/'.$blogs->blog_slug; ?>"><img src="<?php echo base_url(); ?>themeassets/images/userpic.png" alt=""> - <?php echo $this->hs->get_userdetails('user_name',$blogs->blog_userid); ?></a></li>
									<li><a href="<?php echo base_url().'blogs/single/'.$blogs->blog_slug; ?>"><i class="fa fa-commenting-o" aria-hidden="true"></i> <?php echo $blogs->countcomment; ?> Comment</a></li>
									 
								</ul>
								<p><?php echo $blogs->blog_content; ?></p>
								<a href="<?php echo base_url().'blogs/single/'.$blogs->blog_slug; ?>" class="view_link">Read More <i class="fa fa-long-arrow-right" aria-hidden="true"></i></a>
							</div>
						</div>
						
					</div>
					<?php } 
				      }
					?>
					 <?php echo $this->pagination->create_links(); ?>
				</div>
				<!----Sidebar Start---->
				<div class="col-lg-3">	
					<div class="fd_sidebar">
						 
						<!----Category Start---->
						<?php if(!empty($all_blogcategory)){ ?>
						<div class="widget widget_categories">
							<h2 class="widget-title">Category <span class="dot_border"></span></h2>
							<ul>
							<?php foreach($all_blogcategory as $blogcategory){ ?>
								<li><a href="javascript:;" onclick="show_blog_bycategory(<?php echo $blogcategory->cate_id; ?>)"><?php echo $blogcategory->cate_name; ?><span class="cat_count">(<?php echo $blogcategory->countblog; ?>)</span></a></li>
							<?php } ?>	
							</ul>
						</div>
						<?php } ?>
						 
						<!----Advertisment Start---->
						<?php if(!empty($all_offer)){ ?>
						<div class="widget widget_search">
							<?php foreach($all_offer as $offers){
									if($offers->offer_image !==''){
							?>
							<h2 class="widget-title"><?php echo $offers->offer_heading; ?><span class="dot_border"></span></h2>
							<div class="widget_offer_box">
								<a href="javascript:;"><img src="<?php echo base_url().$offers->offer_image; ?>" alt="" class="img-fluid"></a>
							</div>
							<br>
							<?php }
								}	
							?>
						</div>
						<?php } ?>
					</div>
				</div>			
			</div>
		</div>
	</div>
	<?php }  } ?>
	
	 