      <header class="main-header">
        <!-- Logo -->
        <a href="<?php echo base_url(); ?>" class="logo">
          <!-- mini logo for sidebar mini 50x50 pixels -->
        <!-- <span class="logo-mini"><b>B S</b></span>-->
			<span class="logo-mini"><b><?php echo $this->session->userdata['title']['title_short']; ?></b></span>
          <!-- logo for regular state and mobile devices -->
         <!-- <span class="logo-lg"><b>Bus Solution</b></span>-->
		   <span class="hidden-xs"><?php $title = $this->session->userdata('title');echo $title['title']; ?> </span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">

              <!-- User Account: style can be found in dropdown.less -->
              <li class="dropdown user user-menu">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <?php $ci = &get_instance(); ?>
                  <img src="<?=base_url($this->session->userdata('profile_pic'))?>" onerror="this.src='<?=base_url("assets/images/user_avatar.jpg")?>';" class="user-image" alt="User Image">

				  
                  <span class="hidden-xs"><?php echo $ci->session->userdata('display_name');?></span>
                </a>
                <ul class="dropdown-menu">
                  <!-- User image -->
                  <li class="user-header">
                    <!--<img src="<?php //echo base_url() . $ci->session->userdata('profile_picture'); ?>" class="img-circle" alt="User Image">-->
					<img src="<?=base_url($this->session->userdata('profile_pic'))?>" onerror="this.src='<?=base_url("assets/images/user_avatar.jpg")?>';" class="img-circle" alt="User Image">

                  </li>
                  <!-- Menu Body -->

                  <!-- Menu Footer-->
                  <li class="user-footer">
                    <div class="pull-left">
                         <a href="<?= base_url('User/viewProfile/'.encode_param($this->session->userdata['id'])) ?>" class="btn btn-default btn-flat">Profile</a>
                    </div>
                    <div class="pull-right">
                      <a href="<?php echo base_url(); ?>logout" class="btn btn-default btn-flat">Sign out</a>
                    </div>
                  </li>
                </ul>
              </li>

            </ul>
          </div>
        </nav>
      </header>
