<?php
 //include "connection.php";
//  session_start();
//  $APP_ID = $_SESSION['id'];

?>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
      <title></title>

      <link rel="shortcut icon" type="image/jpg" href="assets/img/logo.jpg">
      <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css?h=a9a31ec932de3114d9b1ed27688edc60">
      <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css">
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
      <!--
      <link rel="stylesheet"
         href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
      <link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css" />
      <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.7.0/css/buttons.dataTables.min.css" />-->
      <!-- ===== CSS ===== -->
      <!-- <link rel="stylesheet" href="/assets/css/styles.css"> -->
      <!-- Icon link added -->
      <!--<script src="https://kit.fontawesome.com/c598047e8f.js" crossorigin="anonymous"></script>
      <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">-->
      <style>
         /* @media screen and (max-width: 572px) {
         #myInput {
         width: 103% !important;
         margin-bottom: 1rem;
         }
         } */

    

   #sidebar {
      background-color: #1c1f2b !important;
      color: white;
      box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
   }

   .sidebar-brand-icon img {
      border-radius: 50%;
      border: 2px solid #fff;
   }

   .sidebar-brand-text {
      font-weight: bold;
      font-size: 16px;
      color: #ffffff;
   }

   #accordionSidebar a {
      color: #cfd8dc !important;
      font-weight: 500;
      font-size: 15px;
      transition: 0.3s;
      border-radius: 0 50px 50px 0;
   }

   #accordionSidebar a:hover {
      background-color: #fff !important;
      color: #ffffff !important;
   }

   #accordionSidebar a.active {
      background-color: #145ee7 !important;
      color: #ffffff !important;
      font-weight: 600;
   }

   #accordionSidebar .nav-link i {
      width: 20px;
      text-align: center;
      color: #ffa726;
   }

   .nav-item {
      margin: 5px 0;
   }

   .btn-link#sidebarToggleTop {
      margin: 10px;
      background-color: #eeeeee;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.3s;
   }

   .btn-link#sidebarToggleTop:hover {
      background-color: #ddd;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
   }
         

         .sidebar .nav-item .nav-link[data-toggle=collapse]:after {
         width: 1rem;
         text-align: center;
         float: right;
         vertical-align: 0;
         border: 0;
         font-weight: 900;
         content: "\f107";
         font-family: Font Awesome\ 5 Free;
         }
         #collapseA:after,
         #collapseB:after {
         display: block;
         position: absolute;
         top: 50%;
         right: 20px;
         transform: translateY(-50%);
         }
         accordionSidebar {
         padding-right: 0 !important;
         margin-right: 0 !important;
         }
         #accordionSidebar a:hover {
         color: #145ee7 !important;
         }
         #accordionSidebar a {
         color: #ffffffcc !important;
         }
         #accordionSidebar a.active {
         /* background-color: #ccc; */
         color: white !important;
         }
      </style>
   </head>
   <body id="page-top">
      <div id="wrapper">
         <nav class="navbar navbar-dark align-items-start sidebar accordion p-0" id="sidebar"
            style="background-color: rgb(5, 42, 65); transition: 0.5s;">
            <div class="container-fluid d-flex flex-column p-0" style="margin-top: 0rem!important;">
               <a class="navbar-brand d-flex justify-content-center align-items-center sidebar-brand m-0" href="view1.php">
                  <div class="sidebar-brand-icon"><i class=""><img class="border rounded-0 mt-2"
                     src="assets/img/logo.jpg" height="50" alt=""></i></div>
                  <div class="sidebar-brand-text mx-2"><span>NDC Admission</span></div>
               </a>
               <hr class="sidebar-divider my-2">
               <ul class="nav navbar-nav" id="accordionSidebar"
                  style="margin-right: 0 !important; padding-right: 0rem !important;">
                  <li class="nav-item"><a class="nav-link" href="view1.php"><i
                     class="fas fa-user"></i>&nbsp;&nbsp;<span>Hi, <?php echo $_SESSION['STD_NAME']; ?></span></a></li>
                     <!-- <li class="nav-item"><a class="nav-link" href="Admin.php"><i
                     class="fas fa-box-open"></i>&nbsp;&nbsp;<span>Admin</span></a></li> -->
                  
                     <!-- <li class="nav-item"><a class="nav-link" href="payment.php"><i
                        class="fas fa-money-bill-alt"></i>&nbsp;&nbsp;<span> Payment</span></a></li> -->
                        <?php
                        include "connection.php";
                        error_reporting(0);
                        $APP_ID = $_SESSION['id'];
                        $user_sql = "SELECT PAYMENT_STATUS FROM AD_APP WHERE APP_ID = '$APP_ID' ";
                        $result = ociparse($conn, $user_sql);
                        oci_execute($result);
                        $user_rowdy = oci_fetch_assoc($result);

                        if($user_rowdy['PAYMENT_STATUS'] == 'P'){
                           ?>

                              <li class="nav-item"><a class="nav-link" href="admit_card1.php?id=<?php echo $APP_ID; ?>"><i
                           class="fa fa-edit"></i>&nbsp;&nbsp;<span> Admit Card Download</span></a></li> 
                     <?php
                      }  
                      ?> 
                        
                   <li class="nav-item"><a class="nav-link" href="complain.php"><i
                     class="fas fa-book-reader"></i>&nbsp;&nbsp;<span>Complain</span></a></li>
                  <!-- <li class="nav-item"><a class="nav-link" href="admissionview.php"><i
                     class="fas fa-book-reader"></i>&nbsp;&nbsp;<span>Admission Update</span></a></li>    -->

                     <li class="nav-item"><a class="nav-link" href="logout.php"><i
                     class="fas fa-sign-out-alt"></i>&nbsp;&nbsp;<span>Logout</span></a></li>
               </ul>
               <div class="text-center d-none d-md-inline"></div>
            </div>
         </nav>
         
         <div>
            <div id="content">
            <button class="btn btn-link rounded-circle mr-3" data-bs-hover-animate="swing"
                        id="sidebarToggleTop" type="button"><i class="fas fa-bars"
                        style="color: black;"></i></button>
 
         </div>
      </div>



      
      <a class="border rounded d-inline scroll-to-top " href="#page-top "><i class="fas fa-angle-up "></i></a>
      <!--===== MAIN JS =====-->
      <script src="js/main.js "></script>
      <!-- Optional JavaScript; choose one of the two! -->
      <!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
      <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js "
         integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj "
         crossorigin="anonymous "></script>
      <script src="assets/js/script.min.js?h=af3a23ce326fbc8eb447b5418ddb619e "></script>
      <!--<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js "></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/js/bootstrap.bundle.min.js "></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js "></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.js "></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.18/js/bootstrap-select.min.js "
         integrity="sha512-yDlE7vpGDP7o2eftkCiPZ+yuUyEcaBwoJoIhdXv71KZWugFqEphIS3PU60lEkFaz8RxaVsMpSvQxMBaKVwA5xg=="
         crossorigin=" anonymous "></script>-->
      
   </body>
</html>