<?php
/*
 * Copyright (c) 2018 Earworks.
 * Codeigniter Project Template Modification
 * Please contact our email for more information :
 * contact@earworks.co.id
 */
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!-- BEGIN HEADER -->
<div class="page-header navbar navbar-fixed-top">
    <!-- BEGIN HEADER INNER -->
    <div class="page-header-inner ">
        <!-- BEGIN LOGO -->
        <div class="page-logo">
            <a href="<?php echo base_url() ?>">
                <img src="<?php echo base_url('../img/logo.png?v=' . $ver) ?>" alt="logo" class="logo-default" style="margin: 0px !important;
                     height: 50px; margin-left: 5px; max-width: 165px;" /> </a>
            <div class="menu-toggler sidebar-toggler">
                <span></span>
            </div>
        </div>
        <!-- END LOGO -->
        <!-- BEGIN RESPONSIVE MENU TOGGLER -->
        <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
            <span></span>
        </a>
        <!-- END RESPONSIVE MENU TOGGLER -->
        <!-- BEGIN TOP NAVIGATION MENU -->
        <div class="top-menu">
            <ul class="nav navbar-nav pull-right">
                <!-- START LANGUAGE BAR -->
                <!--                <li class="dropdown dropdown-language">
                                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                <?php
                $lang = $this->session->userdata('language');
                if (!$lang) {
                    $lang = 'indonesian';
                }
                ?>
                                        <img alt="" src="<?php echo base_url('../img/' . $lang . '.png') ?>">
                                        <span class="langname"> <?php echo lang($lang) ?></span>
                                        <i class="fa fa-angle-down"></i>
                                    </a>
                                    <ul class="dropdown-menu dropdown-menu-default">
                                        <li>
                                            <a href="javascript:void(0)">
                                                <img alt="" src="<?php echo base_url('../img/indonesian.png') ?>"> 
                <?= lang('indonesian') ?>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?php echo base_url('catering/dashboard/language/id') ?>">
                                                <img alt="" src="<?php echo base_url('../img/english.png') ?>"> 
                <?= lang('english') ?>
                                            </a>
                                        </li>
                                    </ul>
                                </li>-->
                <li class="dropdown dropdown-user">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                        <img alt="" class="img-circle" src="<?= base_url('../img/user.png') ?>">
                        <span class="username username-hide-on-mobile"> <?= $login_name ?> </span>
                        <i class="fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-default">
                        <li>
                            <a href="<?php echo base_url('dashboard/change-profile') ?>">
                                <i class="fa fa-lock"></i>
                                <?php echo lang('change_password') ?>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo base_url('login/logout') ?>">
                                <i class="fa fa-sign-out"></i>
                                <?php echo lang('logout') ?>
                            </a>
                        </li>
                    </ul>
                </li>   
                <!-- END QUICK SIDEBAR TOGGLER -->
            </ul>
        </div>
        <!-- END TOP NAVIGATION MENU -->
    </div>
    <!-- END HEADER INNER -->
</div>
<!-- END HEADER -->
