<?php if($user['is_expired']==0): ?> 
	<?php $v_settings = !empty($u_settings['vcard_settings'])?json_decode($u_settings['vcard_settings']):'' ?>
    <div class="vcardArea">
      <div class="container">
        <div class="row justify-content-center">
        	<div class="col-md-8 col-lg-6">
        		<div class="vacrdTopContent vCardWrapper nextUp style_1 vcarStyle_8">
		            <div class="vcardContent">
			            <div class="coverImg" style="background: url(<?= isset($user['cover_photo']) && !empty($user['cover_photo'])?base_url($user['cover_photo']):"";?>),#<?= $user['vcard_bg_color'];?>" >
					            <?php if(isset($user['vcard_status']) && $user['vcard_status']==3): ?>
					            	<a href="<?= base_url('profile/'.$slug) ;?>" class="aboutMe"><?= !empty(lang('profile'))?lang('profile'):'Profile' ;?> <i class="fa fa-long-arrow-right"></i></a>
					            <?php endif; ?>
			                <div class="userImg">
			                     <img src="<?= isset($user['thumb']) && !empty($user['thumb'])?base_url($user['thumb']):base_url("assets/images/avatar.png"); ;?>" alt="">
			                </div><!-- userImg -->
			            </div><!-- coverImg -->
			            <div class="vcardWrap bg_wrap"></div>
		            </div><!-- vcardContent -->
		          <div class="vcardUserInfo">
		              <h4><?=  html_escape($user['name']);?></h4>
		                <p><?=  html_escape($user['designation']);?></p>
		            </div>
		            <div class="second_media topIcon style_1">
		             <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:;" ;?>">
                              <?= $row['icon'] ;?> 
                            </a></li>
                        <?php endforeach ?>
		                <?php else: ?>

				                <?php if(!empty($user['whatsapp'])): ?>
				                  <li><a href="<?= redirect_url('whatsapp',$user['whatsapp'],$user['dial_code']) ;?>"><i class="fab fa-whatsapp"></i></a></li>
				                <?php endif;?>

				                <?php if(!empty($user['phone'])): ?>
				                 <li><a href="<?= redirect_url('phone',$user['phone'],$user['dial_code']) ;?>"><i class="fas fa-phone fa-flip-horizontal"></i></a></li>
				                <?php endif;?>

				                <?php if(!empty($user['email'])): ?>
				                 <li><a href="<?= redirect_url('email',$user['email']) ;?>"><i class="fas fa-envelope"></i></a></li>
				                <?php endif;?>

				                <?php if(!empty($user['google_map'])): ?>
				                 <li><a href="<?= redirect_url('google_map',$user['google_map']) ;?>"><i class="fas fa-map-marker-alt"></i> </a></li>
				                <?php endif;?>

				                <?php if(!empty($user['website'])): ?>
				                 <li><a href="<?= redirect_url('website',$user['website']) ;?>"><i class="fas fa-globe"></i></a></li>
				                <?php endif;?>
		             	 	<?php endif;?>
		               </ul>
		           </div>
		           <div class="pt-20"></div>
		           <?php include 'aboutus.php' ?>
		        </div><!-- vacrdTopContent -->
        	</div>
        </div>
      </div><!-- container -->

      <?php include "vcardMenu.php"; ?>
    </div><!-- vcardArea -->


<?php endif;?>