<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?php echo base_url(); ?>app/profile" style="text-transform:uppercase; color:#FFF">Mass Lift Solution</a>
            </div>
            <!-- Top Menu Items -->
            <ul class="nav navbar-right top-nav">
                <li>
                    <a href="#" target="_tab"><i class="fa fa-user"></i> View Site</a>
                   
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <?php echo $username; ?> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="<?php echo base_url(); ?>app/logout"><i class="fa fa-fw fa-power-off"></i> Log Out</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <ul class="nav navbar-nav side-nav">
                    <li <?php if($page == 'Profile') {echo 'class="active"'; }?>>
                        <a href="<?php echo base_url(); ?>app/profile"><i class="fa fa-fw fa-user"></i>Company Profile</a>
                    </li>
                    <li <?php if($page == 'Articles') {echo 'class="active"'; }?>>
                       <a href="javascript:;" data-toggle="collapse" data-target="#demo1"><i class="fa fa-fw fa-edit"></i> Pages / Articles <i class="fa fa-fw fa-caret-down"></i></a>
                        <ul id="demo1" class="collapse">
                            <li>
                                <a href="<?php echo base_url(); ?>app/about">About Us</a>
                            </li>
                            <li>
                                <a href="<?php echo base_url(); ?>app/technology">Techonology</a>
                            </li>
                            <li>
                                <a href="<?php echo base_url(); ?>app/services_amc">Services & AMC</a>
                            </li>
                        </ul>
                    </li>
                      <li <?php if($page == 'products') {echo 'class="active"'; }?>>
                        <a href="<?php echo base_url(); ?>app/products"><i class="fa fa-fw fa-user"></i>Products</a>
                    </li>
                    <li <?php if($page == 'Slider') {echo 'class="active"'; }?>>
                        <a href="<?php echo base_url();?>app/slider"><i class="fa fa-fw fa-bar-chart-o"></i> Index Slider</a>
                    </li>
                   <!-- <li <?php if($page == 'Gallery') {echo 'class="active"'; }?>>
                        <a href="<?php echo base_url(); ?>app/gallery"><i class="fa fa-fw fa-table"></i> Portfolio/Gallery</a>
                    </li>-->
                   
                    <li>
                        <a href="<?php echo base_url(); ?>app/logout"><i class="fa fa-fw fa-power-off"></i> Logout</a>
                    </li>
                   
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </nav>