<?php

//session_start();
if(!isset($_SESSION['login'],$_SESSION['job_type'],$_SESSION['admin_type'],$_SESSION['user_id']) || $_SESSION['admin_type'] != 1 || $_SESSION['login'] != TRUE || $_SESSION['job_type'] != 1)
{
   header("Location: ".BASE_URL."admin/login");
    exit;
}
?>
<div class="skin-blue sidebar-mini">
    <div class="wrapper ">
      <!-- Main Header -->
      <header class="main-header">

        <!-- Logo -->
        <a  href="<?php echo BASE_URL.'home/index'; ?>" target="_blank" class="logo">
          <!-- mini logo for sidebar mini 50x50 pixels -->
          <span class="logo-mini"><b>Perfect-Health</b>Admin</span>
          <!-- logo for regular state and mobile devices -->
          <span class="logo-lg"><b>Perfect-Health Admin</b></span>
        </a>
        <!-- end Logo -->

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
          </a>
          <!-- Navbar Right Menu -->
          <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <li class="dropdown messages-menu">
                    <a href="<?php echo BASE_URL.'messages/getAll' ?>" title="Users Messages">
                      <i class="fa fa-envelope-o"></i>
                    </a>
                  </li>
              <!-- User Account Menu -->
              <li class="dropdown user user-menu">
                <!-- Menu Toggle Button -->
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <!-- The user image in the navbar-->
                  <img src="<?php echo UPLOAD_LINK.$userData['photo']; ?>" class="user-image" alt="User Image"/>
                  <!-- hidden-xs hides the username on small devices so only the image appears. -->
                  <span class="hidden-xs">
					  <?php
						echo $userData['name'];
					  ?>
					</span>
                </a>
                <ul class="dropdown-menu">
                  <!-- The user image in the menu -->
                  <li class="user-header">
                    <img src="<?php echo UPLOAD_LINK.$userData['photo']; ?>" class="img-circle" alt="User Image" />
                    <p>
                      <?php
						echo $userData['name'];
					  ?>
                    </p>
                  </li>

                  <!-- Menu Footer-->
                  <li class="user-footer">
                    <div class="pull-left">
                      <a href="<?php echo BASE_URL."admin/edit_profile"; ?>" class="btn btn-default btn-flat">Profile</a>
                    </div>
                    <div class="pull-right">
                      <a href="<?php echo BASE_URL."admin/logout"; ?>" class="btn btn-default btn-flat">Sign out</a>
                    </div>
                  </li>
                </ul>
              </li>
              <!-- Control Sidebar Toggle Button -->
<!--               <li>
                <a href="#" data-toggle="control-sidebar"><i class="fa fa-outdent"></i></a>
              </li> -->
            </ul>
          </div>
        </nav>
      </header>
      <!-- Left side column. contains the logo and sidebar -->
