<header class="main-header">
    <a href="home.php" class="logo" >
        <img class="main_logo" style="margin-top: 5px; height: 48px;"  src="../img/axes_logo.svg" />
        <img class="icon_logo" style="    margin-top: 12px;    margin-left:7px;" src="../img/axes_col.png" />
        <p class="axtitle_mobile">
            <span class="span1"><b class="cgold"><?php if(get_fild_data('tbl_setting','1','sval')==0){if(isset($_SESSION['abrid']) && $_SESSION['abrid']!='0'){echo get_fild_data('tbl_company','1','name').' - '.get_fild_data('tbl_branch',$_SESSION['abrid'],'name');}else{echo get_fild_data('tbl_company','1','name');}}else{if(strlen(get_fild_data('tbl_company','1','bname'))<1){echo get_fild_data('tbl_company','1','name');}else{echo get_fild_data('tbl_company','1','bname');}}?></b><br><?php if(get_fild_data('tbl_setting','1','sval')==0){if(get_fild_data('tbl_company','1','dialog')==''){echo 'Welcome To You...';}else{echo get_fild_data('tbl_company','1','dialog');}}else{if(get_fild_data('tbl_company','1','bdialog')==''){echo 'স্বাগতম, আপনাকে...';}else{echo get_fild_data('tbl_company','1','bdialog');}} ?></span>
            <span class="span2"><?php echo 'Today, '.date('d').' '.date('M').' '.date('Y').' || '.'আজ '.bnDayName(date('w')).', '.get_bndate(date('H'),date('d'),date('m'),date('Y'),'F',' '); ?></span>
        </p>
    </a>

    <nav class="navbar navbar-static-top">
        <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button" onclick="toggle_sidebar_menu_call()">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <a class="axtitle" >
            <span><b class="cgold"><?php if(get_fild_data('tbl_setting','1','sval')==0){if(isset($_SESSION['abrid']) && $_SESSION['abrid']!='0'){echo get_fild_data('tbl_company','1','name').' - '.get_fild_data('tbl_branch',$_SESSION['abrid'],'name');}else{echo get_fild_data('tbl_company','1','name');}}else{if(strlen(get_fild_data('tbl_company','1','bname'))<1){echo get_fild_data('tbl_company','1','name');}else{echo get_fild_data('tbl_company','1','bname');}}?></b><br><?php if(get_fild_data('tbl_setting','1','sval')==0){if(get_fild_data('tbl_company','1','dialog')==''){echo 'Welcome To You...';}else{echo get_fild_data('tbl_company','1','dialog');}}else{if(get_fild_data('tbl_company','1','bdialog')==''){echo 'স্বাগতম, আপনাকে...';}else{echo get_fild_data('tbl_company','1','bdialog');}} ?></span>
        </a>

        <div class="navbar-custom-menu ">
            <?php 
            require_once '../vendor/autoload.php';
			use YoHang88\LetterAvatar\LetterAvatar;
            $avatarImage = new LetterAvatar($_SESSION['avname'], '', 256);
            ?>
            <ul class="nav navbar-nav">
                <!-- Messages: style can be found in dropdown.less-->
                <li>                   
                    <div class="calparent">
                        <div class="calchild"><input type="text" style="background-color: #053d7178;border: #053d7178;color: #FFF;" class="form-control" id="txtMenuEval" maxlength="100" placeholder="Calculator"></div>
                        <div class="calchild"><input type="text" class="form-control" style="width: 70px; background-color: #053d7178;border: #053d7178;color: #FFF;" id="txtMenuEvalResult" disabled="yes"></div>
                    </div>
                </li>
                <li class="welmsg">
                <div class="col-md-12"><?php echo get_welmsg().', '. $_SESSION['exname']; ?></div>
                <div class="col-md-12" style="padding-top: 2px;"><?php echo 'Today, '.date('d').' '.date('M').' '.date('Y').' || '.'আজ '.bnDayName(date('w')).', '.get_bndate(date('H'),date('d'),date('m'),date('Y'),'F',' '); ?></div>
                </li>
                <li class="dropdown notifications-menu"></li>
                <li class="dropdown user user-menu menu-myaccount" >
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <?php if(empty($_SESSION['uimage'])){ ?>
                        <img src="<?php echo $avatarImage; ?>" class="user-image" alt="User Image">
                        <?php }else{ ?>
                        <img src="../img/user/<?php echo $_SESSION['uimage'];?>" class="user-image" alt="User Image">
                        <?php } ?>
                        <span class="hidden-xs"><?php //echo $_SESSION['exname']; ?></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header" style="background-image:url(<?php echo $avatarImage; ?>)">
                            <p><b><?php echo $_SESSION['exname']; ?></b><small>Admin<br></small>
                                <span style="font-size: 10px; color: #ddd;" id="profile_last_active"></span>
                            </p>
                        </li>


                        <li class="submenus">
                            <ul class="text-center">
                                <li><a href="axe_profile.php" class="btn btn-default bg-purple btn-flat btn-sm"><i class="fa fa-user"></i> Profile</a></li>
                                <li><a href="axe_chpassword.php" class="btn btn-default bg-purple btn-flat btn-sm"><i class="fa fa-refresh" ></i> Password</a></li>
                                <li><a href="../inc/logout.php" class="btn btn-default bg-purple btn-flat btn-sm"><i class="fa fa-sign-out" ></i> Sign Out</a></li>
                            </ul>
                        </li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" onclick="window.location = window.location" title="Refresh Page" >
                        <i class="fa fa-refresh"></i>
                    </a>

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