<div class="col-sm-6">
	<div class="aboutImage" data-aos="fade-right" data-aos-duration="2000">
		<?php $about_me = single_select_by_user_slug($slug,'home'); ?>
		<?php $abouts = single_select_by_user_slug($slug,'about'); ?>
		<img src="<?php echo base_url(!empty($abouts['images'])?html_escape($abouts['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>

