<nav class="blueIce-nav">
<ul class="blueIce-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 Downloads -->
<?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-download"></i> Downloads</a><ul>
    <li><a href="<?php echo SITE_URL ?>/index.php/MyDownloads/get_category_downloads/1">FSX Planes</a></li>
    <li><a href="<?php echo SITE_URL ?>/index.php/MyDownloads/get_category_downloads/3">ACARS Software</a></li>
    </ul></li>
    <?php
  }
 ?>

  <!-- End Downloads -->
    <!-- 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>
    <li><a href="<?php echo SITE_URL ?>/index.php/Mail">Message Center</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>
    <li><a href="<?php echo SITE_URL ?>/admin/index.php/downloads">Downloads</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 data-toggle="modal" href="#LogoutModal"> <i class="fa fa-sign-out "></i> Logout</a></li>
<?php
  }
 ?>
    <!-- End Logout -->

    </ul> 
    
    </nav>
