<?php if($user['is_expired']==0): ?> 
	<?php $v_settings = !empty($u_settings['vcard_settings'])?json_decode($u_settings['vcard_settings']):'' ?>
	<?php if($active_vcard==1 && file_exists(APPPATH.'controllers/admin/Vcard.php')): ?>
    <div class="vcardArea">
      <div class="container">
        <div class="row justify-content-center">
        	<div class="col-md-8 col-lg-6">
        	<div class="vcarStyle_4 nextUp vCardWrapper">
        		<div class="vcardBg_img coverImg" style="background: url(<?= isset($user['cover_photo']) && !empty($user['cover_photo'])?base_url($user['cover_photo']):"";?>),#<?= $user['vcard_bg_color'];?>" >

        			<?php if($active_vcard==1): ?>
			        	<div class="addToContact style_4">
			           		<a href="<?= base_url('save-vcard/'.$slug) ;?>" class="addToContact"><i class="fa fa-address-card-o" aria-hidden="true"></i> <?= !empty(lang('add_to_contact'))?lang('add_to_contact'):'Add to contact' ;?> </a>
			           </div>
			         <?php endif;?>

        			<div class="vcardTopContent ">
        				<div class="vcardHeadingTop">
        					 <img src="<?= isset($user['thumb']) && !empty($user['thumb'])?base_url($user['thumb']):base_url("assets/images/avatar.png"); ;?>" alt="">
        					<div class="vcardHeadingTop_details">
        						<h4><?=  html_escape($user['name']);?></h4>
		                		<p><?=  html_escape($user['designation']);?></p>
        					</div>
        				</div>
        				<div class="vcardBodyTop">
        					<ul>
        						<?php if($active_vcard==1): ?>
        							<?php foreach ($icon_list as $key => $row): ?>
        								<li>
        									<a href="<?= isset($v_settings->is_clickable) && $v_settings->is_clickable==1? redirect_url($row['type'],$row['value'],$user['dial_code']):"javascript:;" ;?>">
        										<div class="vd_flex">
        											<?= $row['icon'] ;?> 
        											 <?php if(isset($v_settings->is_value) && $v_settings->is_value==1): ?>
		        											<h4><?= $row['type']=="phone" || $row['type']=="whatsapp"?$user['dial_code']:'' ;?> <?= html_escape($row['value']); ;?></h4>
		        										<?php else: ?>
		        											<h4><?= html_escape($row['label']);?></h4>
		        										<?php endif ?>
        										</div>
        										<i class="fa fa-angle-right"></i>
        									</a>
        								</li>
        							<?php endforeach ?>
	        							<?php if($user['vcard_status']==3): ?>
	        							<li>
	        								<a href="<?= base_url('profile/'.$slug)?>">
	        									<div class="vd_flex">
	        										<i class="fa fa-user-circle-o"></i>
	        										<h4><?= lang('profile'); ?></h4>
	        									</div>
	        									<i class="fa fa-angle-right"></i>
	        								</a>
	        							</li>
	        						<?php endif;?>
        						<?php endif;?>

        					</ul>
        				</div>
        			</div>
        		</div>
        		<?php include 'aboutus.php' ?>
        	</div>
        
		</div><!-- vacrdTopContent -->
		     
  </div>  
  <?php include "vcardMenu.php"; ?>
</div><!-- vcardArea -->

<?php endif;?>

<?php endif;?>