<?php if($user['is_expired']==0): ?> 
  <?php $v_settings = !empty($u_settings['vcard_settings'])?json_decode($u_settings['vcard_settings']):'' ?>
  <?php $style ='style_4'; ?>
    <div class="vcardArea">
      <div class="container">
        <div class="row justify-content-center">
        	<div class="col-md-6">
        		<div class="vacrdTopContent <?= $style ;?> vCardWrapper">
		            <div class="vcardContent <?= $style ;?>">
			            <div class="coverImg <?= $style ;?>" 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="style_4_cover">
                       <div class="user_Img <?= $style ;?>">
                             <img src="<?= isset($user['thumb']) && !empty($user['thumb'])?base_url($user['thumb']):base_url("assets/images/avatar.png"); ;?>" alt="">
                        </div><!-- userImg -->
                        <div class="vcardUserInfo <?= $style ;?>">
                          <h4><?=  html_escape($user['name']);?></h4>
                            <p><?=  html_escape($user['designation']);?></p>
                        </div>   
                      </div>
			            </div><!-- coverImg -->
		            </div><!-- vcardContent -->
		            <div class="home_profile_bottom style_2 <?= $style ;?> vcardStyle_2" >
             
                 <div class="second_media">
                   <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'] ;?> 
                              <div class="vdetails">
                                <?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 endif ?>
                                <p><?= html_escape($row['label']); ;?></p>
                              </div>
                            </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> <?= html_escape($user['whatsapp']); ;?></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> <?= html_escape($user['phone']); ;?></a></li>
                          <?php endif;?>

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

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

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


<?php endif;?>