<?php $user_id = $this->session->userdata('user_id'); ?>

    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <div class="hidden-lg pull-right">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-right">
                        <span class="sr-only">Toggle navigation</span>
                        <i class="fa fa-chevron-down"></i>
                    </button>

                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar">
                        <span class="sr-only">Toggle sidebar</span>
                        <i class="fa fa-bars"></i>
                    </button>
                </div>

                <ul class="nav navbar-nav navbar-left-custom">
                    <li>
                        <a href="javascript:;">
                            <i class="fa fa-home"></i>
                            <span><?php echo $this->main_model->company_name(); ?></span>
                        </a>
                    </li>
                    <li><a class="nav-icon sidebar-toggle"><i class="fa fa-bars"></i></a></li>
                </ul>
            </div>

            <ul class="nav navbar-nav navbar-right collapse" id="navbar-right">
                <li class="user dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown">
                        <img src="<?php echo base_url('assets/images/user.jpg'); ?>" alt="">
                        <span><?php echo $this->main_model->user_name($user_id); ?></span>
                        <i class="caret"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- <li><a href="#"><i class="fa fa-user"></i> Change Password</a></li> --> 
                        <li><a href="<?php echo site_url('login/logout'); ?>"><i class="fa fa-mail-forward"></i> Logout</a></li>
                    </ul>
                </li>                
            </ul>
        </div>
    </div>
	