BBnepal-Accounts/bustracking/application/views/bustracking-admin/common/header.php

52 lines
1.6 KiB
PHP
Raw Normal View History

2024-07-10 12:43:19 +00:00
<!--right-top side-->
<header class="common_margin" id="header">
<div class="search-bar-wrapyy">
<!--<input type="text" name="" placeholder="Search..">-->
</div>
<?php
$yourName = ''; $namesFirstLetter='';
$linSessData = $_SESSION['busAULoginData'];
if(isset($linSessData['bt_lin_name'])){
$yourName = $linSessData['bt_lin_name'];
$namesFirstLetter = substr($yourName, 0, 1);
}
?>
<div class="user-login-section">
<!--<div class="notification-icon-wrap">
<img src="<?php echo base_url();?>assets-bustracking/images/notification.png">
<span></span>
<div class="notifications-wrap">
<div class="notifications">
<h4>Notifications</h4>
<ul>
<li>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor </p>
<i class="fas fa-trash-alt"></i>
</li>
</ul>
</div>
</div>
</div>-->
<div class="user-wrap">
<div class="user-login-head">
<div class="profileImage"><?php echo $namesFirstLetter;?></div>
<h5>
<span class="user-name"><?php echo $yourName;?></span>
<i class="fa fa-caret-down" aria-hidden="true"></i>
<i class="fa fa-caret-up" aria-hidden="true"></i>
</h5>
</div>
<div class="login-wrap-open">
<ul>
<!--<li><a href=""><span><i class="fa fa-user" aria-hidden="true"></i></span>My Profile</a></li>-->
<li><a href="<?php echo base_url().'logout';?>"><span><i class="fas fa-sign-out-alt"></i></span>Sign Out</a></li>
</ul>
</div>
</div>
</div>
<div class="mobileMenu">
<i class="fas fa-bars"></i>
</div>
</header>