
            <div class="header">
                <div class="logo logo-dark">
                    <a href="<?php echo $dir; ?>">
                        <img style="height:auto; margin:0px auto; margin-top:15px;"  src="<?php echo $dir; ?>j_files/j_img/logo/logo-nav.png" alt="Logo">
                        <img style="height:auto; margin:0px auto; margin-top:5px;" class="logo-fold" src="<?php echo $dir; ?>j_files/j_img/logo/favicon.png" alt="Logo">
                    </a>
                </div>
                <?php 
                /*
                <div class="logo logo-white">
                    <a href="index.html">
                        <img src="assets/images/logo/logo-white.png" alt="Logo">
                        <img class="logo-fold" src="assets/images/logo/logo-fold-white.png" alt="Logo">
                    </a>
                </div>
                */
                ?>
                <div class="nav-wrap">
                    <ul class="nav-left">
                        <li class="desktop-toggle">
                            <a href="javascript:void(0);">
                                <i class="anticon"></i>
                            </a>
                        </li>
                        <li class="mobile-toggle">
                            <a href="javascript:void(0);">
                                <i class="anticon"></i>
                            </a>
                        </li>
                        <li class="logo-center">
                            <div class="logo-dark">
                                <a href="<?php echo $dir; ?>">
                                    <img style="height:auto; margin:0px auto; margin-top:0px;"  src="<?php echo $dir; ?>j_files/j_img/logo/logo-nav.png" alt="Logo">
                                 </a>
                            </div>
                        </li>
                    </ul>
                    <ul class="nav-right">
                        
                        
                         <?php if(isset($_SESSION['j_admin']) || isset($_SESSION['j_admin'])){ 
                        $read_id = RMC("'".$id."'");
                        $sql25="SELECT * from j_notifications WHERE 
                        j_deleted < 1 AND j_user_id='".$id."' AND j_read NOT LIKE '%$read_id%'
                        || j_deleted < 1 AND j_user_id='*' AND j_read NOT LIKE '%$read_id%'
                        order by j_id desc limit 5
                        "; //  
                        $result25 = runSQL($sql25);
                        $total_notify = mysqli_num_rows($result25);
                        ?>
                        <li class="dropdown dropdown-animated scale-left">
                            <a href="javascript:void(0);" data-toggle="dropdown">
                                <i class="anticon anticon-bell notification-badge"></i>
                                <?php 
                                if($total_notify > 0){ 
                                ?>
                                <sup><span class="badge badge-indicator badge-success"></span></sup>
                                <?php } ?>
                            </a>
                            <div class="dropdown-menu pop-notification j_notify">
                                <div class="p-v-15 p-h-25 border-bottom d-flex justify-content-between align-items-center">
                                    <p class="text-dark font-weight-semibold m-b-0">
                                        <i class="anticon anticon-bell"></i>
                                        <span class="m-l-10">Notification</span>
                                    </p>
                                    <a class="btn-sm btn-default btn" href="<?php echo $dir; ?>notifications/">
                                        <small>View All</small>
                                    </a>
                                </div>
                                <div class="relative">
                                    <div class="overflow-y-auto relative scrollable" style="max-height: 300px">
                                        
                                        <?php 
                                        while($row = mysqli_fetch_array($result25)){
                                        ?>
                                        <a href="<?php echo $dir; ?>notifications/" class="dropdown-item d-block p-15 border-bottom">
                                            <div class="d-flex">
                                                <div class="avatar avatar-blue avatar-icon">
                                                    <i class="anticon anticon-mail"></i>
                                                </div>
                                                <div class="m-l-15">
                                                    <p class="m-b-0 text-dark"><?php echo $row['j_subject']; ?></p>
                                                    <p class="m-b-0"><small><?php echo time_ago($row['j_date']); ?></small></p>
                                                </div>
                                            </div>
                                        </a>
                                        <?php } ?>
                                        
                                    </div>
                                </div>
                            </div>
                        </li>
                        <?php } ?>
                        
                        <?php if(isset($_SESSION['j_admin']) || isset($_SESSION['j_admin'])){ ?>
                        <li class="dropdown dropdown-animated scale-left">
                            <div class="pointer" data-toggle="dropdown">
                                <!--
                                <div class="avatar avatar-image  m-h-10 m-r-15">
                                    <img src="assets/images/avatars/thumb-3.jpg" alt="">
                                </div>
                                -->
                                <div class="avatar avatar-text m-h-10 m-r-15" style="background-color: #AF1C2A;">
                                    <span style="color: #fff;"><?php echo $short_name; ?></span>
                                </div>
                            </div>
                            <div class="p-b-15 p-t-20 dropdown-menu pop-profile">
                                <div class="p-h-20 p-b-15 m-b-10 border-bottom">
                                    <div class="d-flex m-r-50">
                                        <!--
                                        <div class="avatar avatar-lg avatar-image">
                                            <img src="assets/images/avatars/thumb-3.jpg" alt="">
                                        </div>
                                        -->
                                        <div class="avatar avatar-lg" style="background-color: #AF1C2A;">
                                            <span style="color: #fff;">
                                            <?php echo $short_name; ?>
                                            </span>
                                        </div>
                                        <div class="m-l-10">
                                            <p class="m-b-0 text-dark font-weight-semibold">
                                                <?php if(!empty($firstname)){ echo $username; }else{ echo $username; } ?>
                                            </p>
                                            <p class="m-b-0 opacity-07">
                                                 <?php if(!empty($firstname)){ echo $country; }else{ echo "..."; } ?>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                <a href="<?php echo $dir; ?>profile-edit/" class="dropdown-item d-block p-h-15 p-v-10">
                                    <div class="d-flex align-items-center justify-content-between">
                                        <div>
                                            <i class="anticon opacity-04 font-size-16 anticon-user-add"></i>
                                            <span class="m-l-10">Edit Profile</span>
                                        </div>
                                        <i class="anticon font-size-10 anticon-right"></i>
                                    </div>
                                </a>
                                <a href="<?php echo $dir; ?>profile-picture/" class="dropdown-item d-block p-h-15 p-v-10">
                                    <div class="d-flex align-items-center justify-content-between">
                                        <div>
                                            <i class="anticon opacity-04 font-size-16 anticon-camera"></i>
                                            <span class="m-l-10">Update Profile Picture</span>
                                        </div>
                                        <i class="anticon font-size-10 anticon-right"></i>
                                    </div>
                                </a>
                                <a href="<?php echo $dir; ?>profile/" class="dropdown-item d-block p-h-15 p-v-10">
                                    <div class="d-flex align-items-center justify-content-between">
                                        <div>
                                            <i class="anticon opacity-04 font-size-16 anticon-user"></i>
                                            <span class="m-l-10">View Profile</span>
                                        </div>
                                        <i class="anticon font-size-10 anticon-right"></i>
                                    </div>
                                </a>
                                <a href="<?php echo $dir; ?>change-password/" class="dropdown-item d-block p-h-15 p-v-10">
                                    <div class="d-flex align-items-center justify-content-between">
                                        <div>
                                            <i class="anticon opacity-04 font-size-16 anticon-lock"></i>
                                            <span class="m-l-10">Change Password</span>
                                        </div>
                                        <i class="anticon font-size-10 anticon-right"></i>
                                    </div>
                                </a>
                                
                                <a href="<?php echo $dir; ?>logout/" class="dropdown-item d-block p-h-15 p-v-10">
                                    <div class="d-flex align-items-center justify-content-between">
                                        <div>
                                            <i class="anticon opacity-04 font-size-16 anticon-logout"></i>
                                            <span class="m-l-10">Logout</span>
                                        </div>
                                        <i class="anticon font-size-10 anticon-right"></i>
                                    </div>
                                </a>
                            </div>
                        </li>
                        
                        
                        <?php }else{ ?>
                        
                        
                        <li class="dropdown dropdown-animated scale-left">
                            <div class="pointer" data-toggle="dropdown">
                                <div class="avatar avatar-image  m-h-10 m-r-15">
                                    <img src="<?php echo $dir; ?>j_files/j_img/logo/favicon.png" alt="">
                                </div>
                            </div>
                            <div class="p-b-15 p-t-20 dropdown-menu pop-profile">
                                
                                <a href="<?php echo $dir; ?>register/" class="dropdown-item d-block p-h-15 p-v-10">
                                    <div class="d-flex align-items-center justify-content-between">
                                        <div>
                                            <i class="anticon opacity-04 font-size-16 anticon-usergroup-add"></i>
                                            <span class="m-l-10">Create Account </span>
                                        </div>
                                        <i class="anticon font-size-10 anticon-right"></i>
                                    </div>
                                </a>
                                
                                <a href="<?php echo $dir; ?>login/" class="dropdown-item d-block p-h-15 p-v-10">
                                    <div class="d-flex align-items-center justify-content-between">
                                        <div>
                                            <i class="anticon opacity-04 font-size-16 anticon-login"></i>
                                            <span class="m-l-10">Log In</span>
                                        </div>
                                        <i class="anticon font-size-10 anticon-right"></i>
                                    </div>
                                </a>
                                
                                
                            </div>
                        </li>
                        
                        <?php } ?>
                  
                    </ul>
                </div>
            </div>  