<section class="themestyle_7">
	<?php $this->load->view(get_view_layouts_by_slug($slug).'/include/banner.php',['feature_name'=>'about']); ?>
<?php if(get_user_pricing_by_id($id,'about')==1 && is_active($id,'about') ==1): ?>
	<section class="aboutSection default-section" id="about">
		<?php $about_me = single_select_by_user_slug($slug,'home'); ?>
		<div class="container">
			<div class="row">
				<div class="col-md-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-sm-6">
					<?php foreach ($about as $row): ?>
						<div class="aboutContent">
							<div class="aboutDetails">
								<h3><?= html_escape($row['title']);?></h3>
								<p><?= !empty($row['about_me_long'])?$row['about_me_long']:$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>
		</div>
	</section>
<?php endif; ?>

<?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 <?= is_active($id,'about') !=1?"pt-50":"";?>">
			<div class="fact_item_section mt-50 mb-50 pt-20">
				<?php $this->load->view('layouts/facts'); ?>
			</div>
		</div>
	<?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="reviews">
			<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="testimonials">
						<div class="row">
							<?php include 'include/reviews.php'; ?>
						</div>
					</div>
				</div>
			</div>
		</section>

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


</section>