  <div class="app app-default">

<aside class="app-sidebar" id="sidebar">
  <div class="sidebar-header">
    <a class="sidebar-brand" href="#"><span class="highlight">Hostirian</span> Expo</a>
    <button type="button" class="sidebar-toggle">
      <i class="fa fa-times"></i>
    </button>
  </div>
<?php
if ($_SESSION["access_level"] == "Admin"){

?>
  <div class="sidebar-menu">
    <ul class="sidebar-nav">
      <li class="active">
        <a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/index.php">
          <div class="icon">
            <i class="fa fa-dashboard" aria-hidden="true"></i>
          </div>
          <div class="title">Dashboard</div>
        </a>
      </li>
      <li class="@@menu.messaging">
        <a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/tasks.php">
          <div class="icon">
            <i class="fa fa-tasks" aria-hidden="true"></i>
          </div>
          <div class="title">Current Tasks</div>
        </a>
      </li>
      <li class="dropdown ">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
          <div class="icon">
            <i class="fa fa-sliders" aria-hidden="true"></i>
          </div>
          <div class="title">Management</div>
        </a>
        <div class="dropdown-menu">
          <ul>
            <li class="section"><i class="fa fa-tasks" aria-hidden="true"></i> Jobs</li>
            <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/addjob.php">Add Job</a></li>
            <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/editjob.php">Edit Job</a></li>
            <!--<li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/removejob.php">Remove Job</a></li>-->
	    <!--<li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/viewalljobs.php">View All Jobs</a></li>-->
	    <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/assignjob.php">Assign Job to Asset</a></li>
            <li class="line"></li>
            <li class="section"><i class="fa fa-clock-o" aria-hidden="true"></i> Schedule</li>
            <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/addschedule.php">Add Schedule</a></li>
            <!--<li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/editschedule.php">Edit Schedule</a></li>
            <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/removeschedule.php">Remove Schedule</a></li>
	    <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/viewallschedules.php">View All Schedules</a></li>-->
	    <li class="line"></li>
	    <li class="section"><i class="fa fa-server" aria-hidden="true"></i> Assets</li>
	    <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/addasset.php">Add Asset</a></li>
	    <!--<li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/editasset.php">Edit Asset</a></li>
	    <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/removeasset.php">Remove Asset</a></li>
	    <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/viewallassets.php">View All Assets</a></li>-->
	    <li><a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/add-asset-type.php">Add Asset type</a></li>
          </ul>
        </div>
      </li>
    </ul>
  </div>
  <div class="sidebar-footer">
    <ul class="menu">
      <li>
        <a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/settings.php" class="dropdown-toggle" data-toggle="dropdown">
          <i class="fa fa-cogs" aria-hidden="true"></i>
        </a>
      </li>
      <li><a href="#"><span class="flag-icon flag-icon-th flag-icon-squared"></span></a></li>
    </ul>
  </div>
</aside>

<script type="text/ng-template" id="sidebar-dropdown.tpl.html">
  <div class="dropdown-background">
    <div class="bg"></div>
  </div>
  <div class="dropdown-container">
    {{list}}
  </div>
</script>
<?php
}

if ($_SESSION['access_level'] == "User"){

?>
 <div class="sidebar-menu">
    <ul class="sidebar-nav">
      <li class="active">
        <a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/index.php">
          <div class="icon">
            <i class="fa fa-dashboard" aria-hidden="true"></i>
          </div>
          <div class="title">Dashboard</div>
        </a>
      </li>
      <li class="@@menu.messaging">
        <a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/tasks.php">
          <div class="icon">
            <i class="fa fa-tasks" aria-hidden="true"></i>
          </div>
          <div class="title">Current Tasks</div>
        </a>
      </li>
    </ul>
  </div>
  <div class="sidebar-footer">
    <ul class="menu">
      <li>
        <a href="<?php $_SERVER['DOCUMENT_ROOT'];?>/manage/settings.php" class="dropdown-toggle" data-toggle="dropdown">
          <i class="fa fa-cogs" aria-hidden="true"></i>
        </a>
      </li>
      <li><a href="#"><span class="flag-icon flag-icon-th flag-icon-squared"></span></a></li>
    </ul>
  </div>
</aside>

<script type="text/ng-template" id="sidebar-dropdown.tpl.html">
  <div class="dropdown-background">
    <div class="bg"></div>
  </div>
  <div class="dropdown-container">
    {{list}}
  </div>
</script>
<?php
}
?>
