    <div class="app-header white box-shadow">
        <div class="navbar">
                <img src="assets/images/logo.png" class="pull-left">

                <!-- Open side - Naviation on mobile -->
                <a data-toggle="modal" data-target="#aside" class="navbar-item pull-left hidden-lg-up">
                    <i class="material-icons">&#xe5d2;</i>
                </a>
                <!-- / -->

                <!-- navbar right -->
                <ul class="nav navbar-nav pull-right">
                    <li class="nav-item dropdown pos-stc-xs">
                        <a class="nav-link" href data-toggle="dropdown">
                            <i class="material-icons">&#xe158;</i>
                            <span class="label label-sm up warn">
                                    <?php echo $nMsgs; ?>
                            </span>
                        </a>
                        <!-- dropdown -->
                        <div class="dropdown-menu pull-right w-xl animated fadeInUp no-bg no-border no-shadow">
                                <div class="scrollable" style="max-height: 220px">
                                    <ul class="list-group list-group-gap m-a-0">
                                        <?php
                        				$msgs = recent_msgs($_SESSION['user_login'], '0');
                        				foreach($msgs as $key)
                        				{
                        				echo '
                        				<li class="list-group-item dark-white text-color box-shadow-z0 b">
                                            <span class="clear block">
                                                <a href="'.MESSAGES.'?msgid='.$key['msg_id'].'&acc='.$key['msg_rcvr'].'" class="text-primary">'.$key['msg_subject'].'</a><br>
                                                <small class="text-muted">'.$key['msg_sender'].' | '.date('j/m/Y', strtotime($key['msg_date'])).'</small>
                                            </span>
                        				</li>
                        				';
                        				}
                        			    ?>
                                    </ul>
                                </div>
                        </div>
                        <!-- / dropdown -->
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link clear" href data-toggle="dropdown">
                            <span class="avatar w-32 m-t">
                                <img src="users/<?php echo user_photo($_SESSION['user_login']); ?>" alt="<?php echo user_names($_SESSION['user_login']); ?>">
                                <i class="on b-white bottom"></i>
                            </span>
                        </a>
                        <div class="dropdown-menu pull-right dropdown-menu-scale">
                            <a href="<?php echo DASHBOARD ?>" class="dropdown-item">
                                <span>Dashboard</span>
                            </a>
                            <a href="<?php echo PROFILE ?>" class="dropdown-item">
                                <span>Profile</span>
                            </a>
                            <a href="<?php echo MESSAGES ?>" class="dropdown-item">
                                <span>Messages</span>
                                <span class="label primary m-l-xs"><?php echo $nMsgs; ?></span>
                            </a>
                            <div class="dropdown-divider"></div>
                            <a href="<?php echo SECURITY ?>" class="dropdown-item">
                                <span>Security</span>
                            </a>
                            <a href="<?php echo SIGNOUT ?>" class="dropdown-item">
                                <span>Sign out</span>
                            </a>
                        </div>
                    </li>
                </ul>
                <!-- / navbar right -->
        </div>
    </div>