<?php
 $target = 'profileimages/';
	  $img = $dat['image'];
	  $photo= $target.$img; 
?>

<!-- top navigation -->
        <div class="top_nav">

          <div class="nav_menu">
            <nav class="" role="navigation">
              <div class="nav toggle">
                <a id="menu_toggle"><i class="fa fa-bars"></i></a>
              </div>
        <?php include('checkbalance.php'); ?>
              <ul class="nav navbar-nav navbar-right">
			 <div style="margin-top:30px;font-size:22px;"> <label class="btn btn-danger" > Account Balance: <?php echo " "."Ksh. ".$bal;    ?> </label> </div>
               <div style="margin-top:-30px;margin-right:20px;">
			   <li class="">
                  <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
				 
                      
							<img src="images/loggeduser.png" alt="">
					<?php $fname = $dat['fname']; $lname = $dat['lname']; echo ucwords($fname." ".$lname); ?> 
					
                    <span class=" fa fa-angle-down"></span>
                  </a>
                  <ul class="dropdown-menu dropdown-usermenu pull-right">
                    <li><a href="profile.php">  Profile</a>
                    </li>
                    <li><a href="logout.php"><i class="fa fa-sign-out pull-right"></i> Logout</a>
                    </li>
                  </ul>
                </li>
				</div>

              </ul>
            </nav>
          </div>

        </div>
		
   