<nav class="sky-nav">
    <div class="sky-nav-inner">
    <ul class="sky-hmenu">
	<li><a href="<?php echo SITE_URL ?>/index.php"><i class="fa fa-home"></i> Home</a></li>
	<!-- Start Corporate -->
	<li><a href="<?php echo SITE_URL ?>/admin/"><i class="fa fa-briefcase"></i> Corporate</a><ul>
	<li><a href="<?php echo SITE_URL ?>/index.php/Pilots">Pilots</a></li>
	<li><a href="<?php echo SITE_URL ?>/index.php/Rank">Ranks</a></li>
    <li><a href="<?php echo SITE_URL ?>/index.php/Awards/">Awards</a></li>
    <li><a href="<?php echo SITE_URL ?>/index.php/Finances">Finances</a></li>
    <li><a href="<?php echo SITE_URL ?>/index.php/Contact">Contact Us</a></li>
    </ul></li>
     <!-- End Corporate -->

    <!-- Start Operations -->
	<li><a href="<?php echo SITE_URL ?>/admin/"><i class="fa fa-book"></i> Operations</a><ul>
	<li><a href="<?php echo SITE_URL ?>#">Your Link</a></li>
	<li><a href="<?php echo SITE_URL ?>#">Your Link</a></li></ul></li>
    <!-- End Operations -->

    <!-- Start Live Map -->
	<li><a href="<?php echo SITE_URL ?>/index.php/ACARS"><i class="fa fa-globe"></i> Live Map</a></li>
    <!-- End Live Map -->

    <!-- Start Crew Center -->
<?php
if(!Auth::LoggedIn())
{
   // Show these if they haven't logged in yet
?>
<?php
}
else
{
   // Show these items only if they are logged in
?>
    <li><a href="<?php echo SITE_URL ?>/admin/"><i class="fa fa-users"></i> Crew Center</a><ul>
	<li><a href="<?php echo SITE_URL ?>/index.php/pireps/filepirep">File PIREP</a></li>
	<li><a href="<?php echo SITE_URL ?>/index.php/Profile">My Profile</a></li>
	<li><a href="<?php echo SITE_URL ?>/index.php/Pireps/mine">My PIREP's</a></li>
	<li><a href="<?php echo SITE_URL ?>/index.php/Schedules">Schedules</a></li>
	<li><a href="<?php echo SITE_URL ?>/index.php/schedules/bids">My Bids</a></li>
    <li><a href="<?php echo SITE_URL ?>/index.php/profile/editprofile">Edit Profile</a></li>
    </ul></li>
    <?php
  }
 ?>
    <!-- End Crew Center -->

    <!-- Start Admin -->
<?php
if(Auth::LoggedIn())
{
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{ ?>
	<li><a href="<?php echo SITE_URL ?>/admin/"><i class="fa fa-cog fa-spin"></i> Admin</a><ul>

    <li><a href="<?php echo SITE_URL ?>/admin">Admin Center</a></li>
	<li><a href="<?php echo SITE_URL ?>/admin/index.php/pirepadmin/viewpending">PIREPS's Pending<strong>(<?php echo  count(PIREPData::GetAllReportsByAccept(PIREP_PENDING))?>)</strong></a></li>
	<li><a href="<?php echo SITE_URL ?>/admin/index.php/pilotadmin/pendingpilots">Pilots Pending<strong>(<?php echo count(PilotData::GetPendingPilots())?>)</strong></a></li>
	</ul></li>
	<?php } }?>
<?php 
if(Auth::LoggedIn() == false)
{
?>
   <!-- End Admin -->

   <!-- Start Sign In -->
<li><a data-toggle="modal" href="#login"><i class="fa fa-sign-in "></i> Sign in</a></li>
<?php
  }
 ?>

    <!-- End Sign In -->

    <!-- Start Logout -->

 <?php
if(!Auth::LoggedIn())
{
   // Show these if they haven't logged in yet
?>
<?php
}
else
{
   // Show these items only if they are logged in
?>
 <li><a href="<?php echo SITE_URL ?>/index.php/Logout"><i class="fa fa-sign-out "></i> Logout</a></li>
<?php
  }
 ?>
    <!-- End Logout -->
 </div>
 </nav>


