<section class="themestyle_7">
	<?php include 'topMenu.php'; ?>
		<div class="style7Banner overlays homeStyle bg_loader" data-src="<?= get_user_layout_img($id,'home')?>" style="background: url(<?= bg_loader();?>)">
			<div class="style7_HomeContest">
				<div class="container">
					<div class="row">
						<div class="col-sm-12 col-lg-12">
							<?php foreach ($home as $row): ?>
								<div class="homeContent style_7Home text-center">
									<?php if(get_user_pricing_by_id($id,'home')==1): ?>
										<div class="" data-aos="fade-down" data-aos-delay="300">
											<div class="home_profile">
												<img src="<?= base_url($user['thumb']) ;?>" alt="">
											</div>
											<div class="typing_section">
												<div class="cd-headline clip typing_data">
													<div class="cd-words-wrapper">
														<?php $designations = explode(',', $row['designations']);;?>
														<?php foreach ($designations as $key => $value): ?>
															<b><?= $value?></b>
														<?php endforeach ?>
													</div>
												</div>
											</div>
											<h1><?= $row['title']; ?></h1>   
											<p><?= $row['about_me'];?></p>   
										</div> 
									<?php endif ?>
									<?php if(get_user_pricing_by_id($id,'social-site')==1 && is_active($id,'social-site') ==1): ?>
									<div class="socialLink">
										<ul>
											<?php $i=1;foreach ($row['my_sites'] as $site): ?>
											<?php if (!empty($site['site_value'])): ?>
												<li class="" data-aos="fade-up" data-aos-delay="<?= $i;?>00"><a href="<?= redirect_url($site['type'],$site['site_value'],users($slug)['dial_code']); ?>" title="<?= html_escape($site['name']);?>"><?= $site['icon']; ?></a></li>
											<?php endif ?>
											<?php $i++; endforeach ?>
										</ul>
									</div>
									<?php endif ?>
								</div>
							<?php endforeach ?>
						</div>
					</div>
				</div> 
			</div>


		<a href="#about" class="scrollto nav-link scroll-button smoothscroll">
			<span class="fa fa-angle-down"></span>
		</a>

	</div>



<?php if(get_user_pricing_by_id($id,'about')==1 && is_active($id,'about') ==1): ?>
<!-- about us -->
<section class="default-section about-us-section " id="about">
	<div class="container">

		<div class="row mb-5 pt-0 default-section pb-0">
			<?php $about_me = single_select_by_user_slug($slug,'home'); ?>
				<div class="col-sm-6">
					<?php foreach ($about as $row): ?>
						<div class="aboutContent">
							<div class="aboutDetails">
								<h3><?= html_escape($row['title']);?></h3>
								<p><?= !empty($row['about_me'])?$row['about_me']:$row['about_me'];?></p>
								<ul>
									<?php if(isset($row['full_name']) && !empty($row['full_name'])): ?>
										<li><b><?= !empty(lang('full_name'))?lang('full_name'):"Full Name"?></b> <?= html_escape($row['full_name']);?></li>
									<?php endif;?>

									<?php if(isset($row['nationality']) && !empty($row['nationality'])): ?>
										<li><b><?= !empty(lang('nationality'))?lang('nationality'):"Nationality"?></b> <?= html_escape($row['nationality']);?></li>
									<?php endif;?>

									<?php if(isset($row['dob']) && !empty($row['dob'])  && $row['dob'] !='0000-00-00'): ?>
										<li><b><?= !empty(lang('dob'))?lang('dob'):"Date of birth"?></b> <?= html_escape($row['dob']);?></li>
									<?php endif;?>

									<?php foreach ($row['about_content'] as $content): ?>
										<?php if(isset($content['value']) && !empty($content['value'])): ?>
											<li><b><?= html_escape($content['label']);?></b> <?= html_escape($content['value']);?> </li>
										<?php endif;?>
									<?php endforeach ?>
								</ul>
							</div>
							<div class="aboutBtn">
								<?php if(get_user_pricing_by_id($id,'qr_code')==1 && is_active($id,'qr_code')==1): ?>
									<a href="javascript:;" data-toggle="modal" data-target="#qrModal" class="default-button about-Btn qr-btn btn_style_<?= get_user_info_by_slug($slug)['btn_style'];?>"><i class="fa fa-qrcode"></i></a>
									&nbsp;
								<?php endif; ?>
								<?php if(!empty($about_me['document'])): ?>
									<a href="<?= base_url(html_escape($about_me['document'])); ?>" download class="default-button about-Btn btn_style_<?= get_user_info_by_slug($slug)['btn_style'];?>"><i class="fa fa-download"></i> &nbsp;<?= !empty(lang('download'))?lang('download'):"Download"?></a> 
								<?php endif ?>

							</div>
						</div>
					<?php endforeach ?>
				</div>
				<div class="col-sm-6">
					<div class="aboutImage style_2" data-aos="fade-right" data-aos-duration="1000">
						
						<img src="<?php echo base_url(!empty($about[0]['images'])?html_escape($about[0]['images']):'assets/images/avatar.jpg'); ?>" alt="">
					</div>
				</div>
				<div class="col-12 text-center">
					<a href="<?= base_url('about/'.$slug) ;?>" class="aboutSeemore"><?= lang('see_more'); ?> <span><i class="fa fa-angle-double-right" aria-hidden="true"></i></span></a>
				</div>

		</div> <!-- row -->
		
		<?php if(get_user_pricing_by_id($id,'facts')==1 && is_active($id,'facts') ==1): ?>
			<?php if(count($facts) > 0): ?>
				<div class="themeStyle7 justify-content-center">
					<div class="fact_item_section mt-50 mb-50 pt-20">
						<?php $this->load->view('layouts/facts'); ?>
					</div>
				</div>
			<?php endif ?>
		<?php endif ?>
		
	</div>
</section>
<?php endif;?>


<?php if(get_user_pricing_by_id($id,'services')==1 && is_active($id,'services') ==1): ?>
	<?php if(count($services) > 0): ?>
		<?php include 'serviceContent.php' ?>

	<?php endif;?>
<?php endif;?>


<?php if(get_user_pricing_by_id($id,'portfolio')==1 && is_active($id,'portfolio') ==1): ?>
	<?php if(count($portfolio) > 0): ?>
	<section class="default-section portfolio-section " id="portfolio">
		<div class="container">
			<div class="row mb-50">
				<div class="col-12 text-center" data-aos="fade" data-aos-delay="200">
					<h2 class="section-title mb-3"><?= get_features_name('portfolio');?></h2>
				</div>
			</div>
			<?php include 'include/portfolio.php'; ?>
			<div class="col-12 text-center">
				<a href="<?= base_url('portfolio/'.$slug) ;?>" class="aboutSeemore"><?= lang('see_more'); ?> <span><i class="fa fa-angle-double-right" aria-hidden="true"></i></span></a>
			</div>
		</div>
	</section>

	<?php endif;?>
<?php endif;?>



<?php if(get_user_pricing_by_id($id,'blog')==1 && is_active($id,'blog') ==1): ?>
<?php if(count($posts) > 0): ?>
	<section class="default-section blog-section " id="blog">
		<div class="container">
			<div class="row mb-50">
				<div class="col-12 text-center" data-aos="fade" data-aos-delay="200">
					<h2 class="section-title mb-3"><?= get_features_name('blog');?></h2>
				</div>
			</div>
			<div class="blog themestyle_7">
				<div class="row">
					<?php include 'blog/blog_list.php'; ?>
				</div>
			</div>

			<div class="row mt-20">
				<div class="col-12 text-center">
					<a href="<?= base_url('blog/'.$slug) ;?>" class="aboutSeemore"><?= lang('see_more'); ?> <span><i class="fa fa-angle-double-right" aria-hidden="true"></i></span></a>
				</div>
			</div>
		</div>
	</section>

<?php endif;?>
<?php endif;?>

<?php if(get_user_pricing_by_id($id,'review')==1 && is_active($id,'review') ==1): ?>
<?php if(count($reviews) > 0): ?>
	<section class="default-section reviews-section " id="blog">
		<div class="container">
			<div class="row mb-50">
				<div class="col-12 text-center" data-aos="fade" data-aos-delay="200">
					<h2 class="section-title mb-3"><?= get_features_name('review');?></h2>
				</div>
			</div>
			<div class="reviews themestyle_7">
				<div class="testimonial slider-nav">
					<?php include 'include/reviews.php'; ?>
				</div>
			</div>
		</div>
	</section>

<?php endif;?>
<?php endif;?>


<?php if(get_user_pricing_by_id($id,'resume')==1 && is_active($id,'resume') ==1): ?>
<?php if(count($all_resume) > 0): ?>
	<section class="default-section resume-section " id="resume">
		<div class="container">
			<div class="row mb-50">
				<div class="col-12 text-center" data-aos="fade" data-aos-delay="200">
					<h2 class="section-title mb-3"><?= get_features_name('resume');?></h2>
				</div>
			</div>
			<div class="resume themestyle_7">
				<?php include 'include/resume.php'; ?>
				
			</div>
			<div class="row mt-20">
				<div class="col-12 text-center">
					<a href="<?= base_url('profile/resume/'.$slug) ;?>" class="aboutSeemore"><?= lang('see_more'); ?> <span><i class="fa fa-angle-double-right" aria-hidden="true"></i></span></a>
				</div>
			</div>
		</div>
	</div>
</section>

<?php endif;?>
<?php endif;?>

</section>