<?php $layout = get_layouts_by_slug($slug);?>
<div class="section_wrapper all_blog mt-50">
	<div class="row">
		<div class="col-md-12">
			<div class="appointment_schedule">
				<div class="sectionHeader">
					<h1><?= get_features_name('blog');?></h1>
				</div>		
			</div>
		</div>
	</div>
	<div class="mi-blog">
		<div class="row">
			<div class="top_cat_section">
				<?php if(isset($type_slug) && $type_slug=="category"){  ?>
					<h4>Category: <?= isset($posts[0]['cat_name'])?$posts[0]['cat_name']:'';?></h4>
				<?php  }else if($tags=="tags"){ ?>
					<h4>Tag: <?= isset($posts[0]['tag_name'])?$posts[0]['tag_name']:'';?></h4>
				<?php } ?>
			</div>
		</div>
		<div class="row">
			<div class="col-md-8">
				<div class="row">
					<?php if(count($posts) > 0): ?>
						<?php $this->load->view('layouts/blog/style_2'); ?>
					<?php else: ?>
						<div class="not_found_section">
							<div class="not_found">
								<i class="fa fa-frown-o"></i>
								<h4>Sorry Content Not Found</h4>
							</div>
						</div>
					<?php endif ?>
				</div>
			</div>
			<div class="col-md-4">
				<div class="blog_categry_area">
					<div class="single_right_cat">
						<div class="blog_right_title">
							<h4><?= !empty(lang('categories'))?lang('categories'):"Categories";?></h4>
						</div>
						<div class="all_items">
							<ul>
								<?php foreach ($categories as $cat): ?>
									<li><a href="<?= base_url('category-post/'.$slug.'/'.html_escape($cat['slug'])); ?>"><?= html_escape($cat['cat_name']);?></a></li>
								<?php endforeach ?>
							</ul>
						</div>
					</div>


					<div class="single_right_cat">
						<div class="blog_right_title">
							<h4><?= !empty(lang('tags'))?lang('tags'):"Tags";?></h4>
						</div>
						<div class="all_items tags">
							<ul>
								<?php foreach ($tags as $tag): ?>
									<li><a href="<?= base_url('tag-post/'.$slug.'/'.html_escape($tag['slug'])); ?>"><?= html_escape($tag['tag_name']);?></a></li>
								<?php endforeach ?>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="text-center mt-30 mb-20">
			
		</div>
	</div>
</div>

