
      <?php
      
      
                $prosselectschoolplanconetentnew = mysqli_query($link,"SELECT * FROM `institution` WHERE InstitutionID='$GroupOfSchoolID'");
                $prosselectschoolplanconetentcntnew = mysqli_num_rows($prosselectschoolplanconetentnew);
                
                $prosselectschoolplanconetentcntrownew = mysqli_fetch_assoc($prosselectschoolplanconetentnew);
                
                $NoDaysToCountnew = $prosselectschoolplanconetentcntrownew['NoDaysToCount'];
                $SubscriptionStatusnew = $prosselectschoolplanconetentcntrownew['SubscriptionStatus'];
                
                $StartCountDatenew = $prosselectschoolplanconetentcntrownew['StartCountDate'];
                
                if($SubscriptionStatusnew == '1')
                {
                    
                          $prosdisabledmenu = "pros-disabled-menu";
                          
                          $proslockedicons = '<span style="float: right; margin-right: 5px;"><i class="bx bxs-lock prosremovealllock " style="font-size: 15px; font-weight: 600; color: #ffd700;"></i></span>';
                    
                }else
                {
                    
                    
                         $prosdisabledmenu = "";
                         
                         $proslockedicons = '';
                    
                }
                
               
      
    

        if($UType == 'admin')
        {

           
   ?>
 
    <!-- Sidebar -->
        <aside id="sidebar">
                <div class="sidebar-title">
                    <div class="sidebar-brand">
                        <img src="../../assets/images/adminImg/favicon.png" style="width: 15%;" alt=""> <span>EduMESS  </span>
                    </div>
                    <div class="close-icon" style="cursor: pointer;" onclick="closeSidebar()">
                        <span class="material-icons-sharp">close</span>
                    </div>
                </div>
                
                <ul class="sidebar-List">
                   
                    <li class="sidebar-list-item">
                        <a href="../../admin/home/">
                            <i class='bx bx-grid-alt' style="margin-right: 10px;"></i>
                            <span >Dashboard </span>
                        </a>
                        <span style="float: right; margin-right: 5px;"></span>
                    </li>

                     <?php

                           $select_main_menucontnt = mysqli_query($link,"SELECT * FROM `mainmenu` WHERE `MainMenuID` != '8'"); 
                           $select_main_menucontntrow = mysqli_num_rows($select_main_menucontnt);
                           $select_main_menucontntrowcnt = mysqli_fetch_assoc($select_main_menucontnt);

                           $select_main_menucontnt_settings = mysqli_query($link,"SELECT * FROM `mainmenu` WHERE MainMenuID='8'"); 
                           $select_main_menucontntrow_settings = mysqli_num_rows( $select_main_menucontnt_settings);
                           $select_main_menucontntrowcnt_settings = mysqli_fetch_assoc( $select_main_menucontnt_settings);



                                if($select_main_menucontntrow > 0)
                                {



                                       do{

                                              $MainMenuName =  $select_main_menucontntrowcnt['MainMenuName'];
                                              $MenuLink =  $select_main_menucontntrowcnt['MenuLink'];
                                              $MenuIcon =  $select_main_menucontntrowcnt['MenuIcon'];
                                              $MainMenuID =  $select_main_menucontntrowcnt['MainMenuID'];
                                              
                                            //   if($MainMenuName == 'Finance'){
                                                  
                                            //   }
                                            //   else
                                            //   {
                                                  
                                            //   }

                                            
                                             
                                    echo '<li class="sidebar-list-item prosdisabledlist'.$MainMenuID .' prosgerallismenu-disable" '.$prosdisabledmenu.'>
                                              <a  href="../../admin/'.$MenuLink.'" class="pros-generalmenubtnclick  '.$prosdisabledmenu.'" data-id="'.$MainMenuID.'">  
                                                  <i class="'.$MenuIcon.' sideicon" style="margin-right: 10px;"></i>
                                                  <span class="links_name">'.$MainMenuName.'</span>
                                              </a>
                                              <span style="float: right; margin-right: 5px;"><i class="bx bxs-lock prosremovealllock pros-removemenuall-expos'.$MainMenuID.'" style="font-size: 15px; font-weight: 600; color: #ffd700;"></i></span>
                                              '.$proslockedicons.'
                                          </li>';
                                         
                                       }while($select_main_menucontntrowcnt = mysqli_fetch_assoc($select_main_menucontnt)); 



                                 echo '<div class="upgrades">
                                       <span class="material-icons-sharp">update</span>
                                       <h6>Upgrade your plan here</h6>
                                       <button type="button" style="font-size: 12px;" class="btn btn-sm btn-primary">
                                           Upgrade Plan
                                       </button>
                                    </div>';



                                    $MainMenuNamesettings = $select_main_menucontntrowcnt_settings['MainMenuName'];
                                    $MenuLinksettings = $select_main_menucontntrowcnt_settings['MenuLink'];
                                    $MenuIconsettings = $select_main_menucontntrowcnt_settings['MenuIcon'];
                                    $MainMenuIDsettings =  $select_main_menucontntrowcnt_settings['MainMenuID'];



                                echo '<small style="margin-left: 30%; cursor: pointer; font-size: 15px;" class="prosdisabledlist'.$MainMenuIDsettings .' prosgerallismenu-disable" data-bs-toggle="modal" data-bs-target="#exampleModal">
                                        <i class="'.$MenuIconsettings.'" ></i>
                                       '.$MainMenuNamesettings.'
                                       <span style="float: right; margin-right: 5px;"><i class="bx bxs-lock prosremovealllock pros-removemenuall-expos'.$MainMenuIDsettings.'" style="font-size: 15px; font-weight: 600; color: #ffd700;"></i></span>
                                  </small>';



                                }else
                                {

                                }

                     ?>

                   
                   
                </ul>
            </aside>

    <!-- End Sidebar -->

<?php
       
    }else if($UType == 'schoolhead')

    {

               
       ?>
     
        <!-- Sidebar -->
            <aside id="sidebar">
                    <div class="sidebar-title">
                        <div class="sidebar-brand">
                            <img src="../../assets/images/adminImg/favicon.png" style="width: 15%;" alt=""> <span>EduMESS  </span>
                        </div>
                        <div class="close-icon" style="cursor: pointer;" onclick="closeSidebar()">
                            <span class="material-icons-sharp">close</span>
                        </div>
                    </div>
                    
                    <ul class="sidebar-List">
                       
                        <li class="sidebar-list-item">
                            <a href="../../school-head/home/">
                                <i class='bx bx-grid-alt' style="margin-right: 10px;"></i>
                                <span >Dashboard </span>
                            </a>
                            <span style="float: right; margin-right: 5px;"></span>
                        </li>

                         <?php

                               $select_main_menucontnt = mysqli_query($link,"SELECT * FROM `mainmenu` WHERE `MainMenuID` != '8'"); 
                               $select_main_menucontntrow = mysqli_num_rows($select_main_menucontnt);
                               $select_main_menucontntrowcnt = mysqli_fetch_assoc($select_main_menucontnt);

                               $select_main_menucontnt_settings = mysqli_query($link,"SELECT * FROM `mainmenu` WHERE MainMenuID='8'"); 
                               $select_main_menucontntrow_settings = mysqli_num_rows( $select_main_menucontnt_settings);
                               $select_main_menucontntrowcnt_settings = mysqli_fetch_assoc( $select_main_menucontnt_settings);



                                    if($select_main_menucontntrow > 0)
                                    {



                                           do{

                                                  $MainMenuName =  $select_main_menucontntrowcnt['MainMenuName'];
                                                  $MenuLink =  $select_main_menucontntrowcnt['MenuLink'];
                                                  $MenuIcon =  $select_main_menucontntrowcnt['MenuIcon'];
                                                  $MainMenuID =  $select_main_menucontntrowcnt['MainMenuID'];
                                                  
                                                  if($MainMenuName == 'Finance' || $MainMenuName == 'My School'){
                                                      
                                                  }
                                                  else
                                                  {
                                                      echo '<li class="sidebar-list-item prosdisabledlist'.$MainMenuID .' '.$prosdisabledmenu.'" >
                                                          <a  href="../../school-head/'.$MenuLink.'" class="pros-generalmenubtnclick  '.$prosdisabledmenu.'" data-id="'.$MainMenuID.'">  
                                                              <i class="'.$MenuIcon.' sideicon" style="margin-right: 10px;"></i>
                                                              <span class="links_name">'.$MainMenuName.'</span>
                                                          </a>
                                                          '.$proslockedicons.'
                                                      </li>';
                                                  }
                                                   
                
                
                                                    
                                        
                                             
                                           }while($select_main_menucontntrowcnt = mysqli_fetch_assoc($select_main_menucontnt)); 



                                     echo '<div class="upgrades">
                                           <span class="material-icons-sharp">update</span>
                                           <h6>Upgrade your plan here</h6>
                                           <button type="button" style="font-size: 12px;" class="btn btn-sm btn-primary">
                                               Upgrade Plan
                                           </button>
                                        </div>';



                                        $MainMenuNamesettings = $select_main_menucontntrowcnt_settings['MainMenuName'];
                                        $MenuLinksettings = $select_main_menucontntrowcnt_settings['MenuLink'];
                                        $MenuIconsettings = $select_main_menucontntrowcnt_settings['MenuIcon'];
                                        $MainMenuIDsettings =  $select_main_menucontntrowcnt_settings['MainMenuID'];



                                    echo '<small style="margin-left: 30%; cursor: pointer; font-size: 15px;" class="prosdisabledlist'.$MainMenuIDsettings .' " data-bs-toggle="modal" data-bs-target="#exampleModal">
                                            <i class="'.$MenuIconsettings.'" ></i>
                                           '.$MainMenuNamesettings.'
                                      </small>';



                                    }else
                                    {

                                    }

                         ?>

                       
                       
                    </ul>
                </aside>

        <!-- End Sidebar -->

    <?php
           
        }else if($UType == 'parent')
        {
    ?>




            <!-- Sidebar -->
            <aside id="sidebar">
            <div class="sidebar-title">
                <div class="sidebar-brand">
                    <img src="favicon.png" style="width: 15%;" alt=""> <span>EduMESS </span>
                </div>
                <div class="close-icon" style="cursor: pointer;" onclick="closeSidebar()">
                    <span class="material-icons-sharp">close</span>
                </div>
            </div>
            
            <ul class="sidebar-List">
                
                
  
                <li class="sidebar-list-item ">
                    <a href="../home">
                        <i class='bx bx-grid-alt' style="margin-right: 10px;"></i>
                        <span >Dashboard</span>
                    </a
                   
                </li>
                <li class="sidebar-list-item <?php echo  $prosdisabledmenu; ?>">
                    <a href="../wallet" class="<?php echo  $prosdisabledmenu; ?>">
                        <i class='fa fa-institution sideicon' style="margin-right: 10px;"></i>
                        <span class="links_name">Fees</span>
                    </a>
                     <?php echo  $proslockedicons; ?>
                </li>
                
                
                <!--<li class="sidebar-list-item <?php echo  $prosdisabledmenu; ?>">-->
                <!--    <a href="#">-->
                <!--       <i class='bx bx-receipt' style="margin-right: 10px;"></i>-->
                <!--        <span class="links_name">Assessment</span>-->
                <!--    </a>-->
                    <?php echo  $proslockedicons; ?>
                <!--</li>-->
                <li class="sidebar-list-item <?php echo  $prosdisabledmenu; ?>">
                    <a href="../result" class="<?php echo  $prosdisabledmenu; ?>">
                        <i class='bx bxs-network-chart' style="margin-right: 10px;"></i>
                        <span class="links_name">Result</span>
                    </a>
                     <?php echo  $proslockedicons; ?>
                </li>



                <li>
                    <div class="upgrades <?php echo  $prosdisabledmenu; ?>">
                        <a href="../wallet" class="<?php echo  $prosdisabledmenu; ?>" style="color:#666666;text-decoration:none;">
                            <span class="bx bx-wallet"></span>
                            <h6>Wallet</h6>
                            <button type="button" style="font-size: 10px;" class="btn btn-sm btn-primary">
                                    Pay Fees
                            </button>
                        </a>
                        <?php echo  $proslockedicons; ?>
                    </div>
                    

                    <!-- <small style="margin-left: 30%; cursor: pointer; font-size: 14px;" data-bs-toggle="modal"
                        data-bs-target="#exampleModal">
                        <i class="fa fa-cog fa-spin"></i>
                        Settings
                    </small> -->
        </li>
                
                
               
            </ul>
        </aside>
        <!-- End Sidebar -->





<?php
        }
        
        else if($UType == 'student')
        {
   ?> 
                
                
                  <!-- Sidebar -->
        <aside id="sidebar">
            <div class="sidebar-title">
                <div class="sidebar-brand">
                    <img src="favicon.png" style="width: 15%;" alt=""> <span>EduMESS </span>
                </div>
                <div class="close-icon" style="cursor: pointer;" onclick="closeSidebar()">
                    <span class="material-icons-sharp">close</span>
                </div>
            </div>
            
            <ul class="sidebar-List">
  
                <li class="sidebar-list-item">
                    <a href="../home">
                        <i class='bx bx-grid-alt' style="margin-right: 10px;"></i>
                        <span >Dashboard</span>
                    </a>
                </li>
                <li class="sidebar-list-item <?php echo  $prosdisabledmenu; ?>">
                    <a href="../../student/my-class/" class="<?php echo  $prosdisabledmenu; ?>">
                        <i class='fa fa-institution sideicon' style="margin-right: 10px;"></i>
                        <span class="links_name">My Class</span>
                    </a>
                    <?php echo  $proslockedicons; ?>
                </li>
                <li class="sidebar-list-item <?php echo  $prosdisabledmenu; ?>">
                    <a href="../../student/assesement/" class="<?php echo  $prosdisabledmenu; ?>">
                       <i class='bx bx-receipt' style="margin-right: 10px;"></i>
                        <span class="links_name">CBT</span>
                    </a>
                    <?php echo  $proslockedicons; ?>
                    
                </li>
                
            </ul>
        </aside>
        <!-- End Sidebar -->
   
       
       
            
    <?php
    
      }
      
      else
        {
   ?> 
                
                
                  <!-- Sidebar -->
        <aside id="sidebar">
            <div class="sidebar-title">
                <div class="sidebar-brand">
                    <img src="favicon.png" style="width: 15%;" alt=""> <span>EduMESS </span>
                </div>
                <div class="close-icon" style="cursor: pointer;" onclick="closeSidebar()">
                    <span class="material-icons-sharp">close</span>
                </div>
            </div>
            
            <ul class="sidebar-List">
  
                <li class="sidebar-list-item ">
                    <a href="../../teacher/home/">
                        <i class='bx bx-grid-alt' style="margin-right: 10px;"></i>
                        <span >Dashboard</span>
                    </a>
                     
                </li>
                <li class="sidebar-list-item <?php echo  $prosdisabledmenu; ?>">
                    <a href="../../teacher/my-class/" class="<?php echo  $prosdisabledmenu; ?>">
                        <i class='fa fa-institution sideicon' style="margin-right: 10px;"></i>
                        <span class="links_name">My Class</span>
                    </a>
                    <?php echo  $proslockedicons; ?>
                </li>
                
                
                
                
                    
                <li>
                    <div class="upgrades <?php echo  $prosdisabledmenu; ?>">
                        <a href="../wallet" class="<?php echo  $prosdisabledmenu; ?>" style="color:#666666;text-decoration:none;">
                            <span class="bx bx-wallet"></span>
                            <h6>Wallet</h6>
                            <button type="button" style="font-size: 10px;" class="btn btn-sm btn-primary">
                                    Wallet Page
                            </button>
                        </a>
                        <?php echo  $proslockedicons; ?>
                    </div>
                    
                  
                    

                      <small style="margin-left: 30%; cursor: pointer; font-size: 14px;" data-bs-toggle="modal"
                        data-bs-target="#ekene_progress_report">
                        <i class="fa fa-cog fa-spin"></i>
                         Progress 
                    </small> 
                </li>
                
                
               

                <!--<li class="sidebar-list-item">-->
                <!--    <a href="#">-->
                <!--       <i class='bx bx-receipt' style="margin-right: 10px;"></i>-->
                <!--        <span class="links_name">CBT</span>-->
                <!--    </a>-->
                <!--</li>-->
                
                
            </ul>
        </aside>
        <!-- End Sidebar -->
   
       
       
            
    <?php
    
      }

     ?>

     
<?php include('../../controller/js/admin/admin-menupreviledge.php'); ?>
