<div class="profile-cover-wrap overlay-wrap">
    <div class="profile-cover-img" style="background-image:url('<?php echo $profile->cover ? UPLOAD_PATH . 'employee-cover/' . $profile->cover :   IMG_URL . 'bg/cover.jpg'; ?>')"></div>
    <div class="bg-overlay bg-trans-dark-60"></div>
    <div class="container profile-cover-content py-50">
        <div class="hk-row">
            <div class="col-lg-6">
                <div class="media align-items-center">
                    <div class="media-img-wrap  d-flex">
                        <div class="avatar">
                            <?php if ($profile->photo != '') { ?>
                                <img class="avatar-img rounded-circle" src="<?php echo UPLOAD_PATH; ?>employee-photo/<?php echo $profile->photo; ?>" alt="<?php echo $profile->name; ?>" title="<?php echo $profile->name; ?>" />
                            <?php } elseif ($profile->gender == 'male') { ?>
                                <img class="avatar-img rounded-circle" src="<?php echo IMG_URL; ?>male.png" alt="male" />
                            <?php } else { ?>
                                <img class="avatar-img rounded-circle" src="<?php echo IMG_URL; ?>female.png" alt="female" />
                            <?php } ?>
                        </div>
                    </div>
                    <div class="media-body">
                        <div class="text-white text-capitalize display-6 mb-5 font-weight-400"><?php echo $profile->name; ?></div>
                        <div class="font-14 text-white">
                            <?php echo $profile->designation; ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="button-list">
                    <?php if (isset($social->facebook_url) && !empty($social->facebook_url)) { ?>
                        <a href="<?php echo get_http($social->facebook_url); ?>" target="_blank" class="btn btn-icon btn-icon-circle btn-indigo btn-icon-style-2"><span class="btn-icon-wrap"><i class="fa fa-facebook"></i></span></a>
                    <?php } ?>

                    <?php if (isset($social->linkedin_url) && !empty($social->linkedin_url)) { ?>
                        <a href="<?php echo get_http($social->linkedin_url); ?>" target="_blank" target="_blank" class="btn btn-icon btn-icon-circle btn-blue btn-icon-style-2"><span class="btn-icon-wrap"><i class="fa fa-linkedin"></i></span></a>
                    <?php } ?>

                    <?php if (isset($social->twitter_url) && !empty($social->twitter_url)) { ?>
                        <a href="<?php echo get_http($social->twitter_url); ?>" target="_blank" class="btn btn-icon btn-icon-circle btn-sky btn-icon-style-2"><span class="btn-icon-wrap"><i class="fa fa-twitter"></i></span></a>
                    <?php } ?>

                    <?php if (isset($social->instagram_url) && !empty($social->instagram_url)) { ?>
                        <a href="<?php echo get_http($social->instagram_url); ?>" target="_blank" class="btn btn-icon btn-icon-circle btn-purple btn-icon-style-2"><span class="btn-icon-wrap"><i class="fa fa-instagram"></i></span></a>
                    <?php } ?>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="bg-white shadow-bottom">
    <div class="container">
        <ul class="nav nav-light nav-tabs" role="tablist">
            <li class="nav-item">
                <a href="<?php echo site_url('hrm/employee/view/' . $profile->id); ?>" class="d-flex h-60p align-items-center nav-link <?php echo isset($profile_info) ? 'active' : ""; ?>"><?php echo $this->lang->line('profile'); ?></a>
            </li>
            <li class="nav-item">
                <a href="#" class="d-flex h-60p align-items-center nav-link <?php echo isset($photo_info) ? 'active' : ""; ?>"><?php echo $this->lang->line('photo'); ?></a>
            </li>
            <li class="nav-item">
                <a href="#" class="d-flex h-60p align-items-center nav-link <?php echo isset($social_info) ? 'active' : ""; ?>"><?php echo $this->lang->line('social'); ?></a>
            </li>
            <li class="nav-item">
                <a href="#" class="d-flex h-60p align-items-center nav-link <?php echo isset($password_info) ? 'active' : ""; ?>"><?php echo $this->lang->line('password'); ?></a>
            </li>
        </ul>
    </div>
</div>