<div class="app-menu">
                <ul class="accordion-menu">
                  
                    <li>
                        <a href="index.php"><i class="fa fa-home"></i>Home</a>
                    </li>
                  <li>
                        <a href="?"><i class="fa fa-tachometer-alt"></i>Beranda</a>
                    </li>
                    <li>
                        <a href="?pg=bell"><i class="fa fa-bullhorn"></i>Bell Otomatis</a>
                    </li>
                   <li>
                        <a href="?pg=settingptm"><i class="fa fa-tools"></i>Pengaturan P T M</a>
                    </li>
				 <li>
                        <a href="?pg=jadwalmapel"><i class="fa fa-calendar"></i>Jadwal Mapel</a>
                    </li>
				<?php if($menu['absen_siswa']==1){ ?>
				 <li>
                        <a href="?pg=rfidsiswa"><i class="fa fa-camera"></i>Registrasi RFID Siswa</a>
                    </li>
				<?php } ?>
				<?php if($menu['absen_guru']==1){ ?>
			 <li>
                        <a href="?pg=rfidpeg"><i class="fa fa-camera"></i>Registrasi RFID Pegawai</a>
                    </li>
				<?php }else{ ?>
				<li>
                        <a href="?pg=inputguru"><i class="fa fa-laptop"></i>Input Absen Pegawai</a>
                    </li>
				<?php } ?>
				  <li>
                        <a href=""><i class="fa fa-tachometer-alt"></i> Data Absen <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
                            <li>
                                <a href="?pg=absenmapel">Absen Mapel</a>
                            </li>
                            <li>
                                <a href="?pg=absenkelas">Absen Kelas</a>
                            </li>
                           	 <li>
                                <a href="?pg=absenpeg">Absen Pegawai</a>
                            </li>		
                        </ul>
                    </li>
					 <li>
                        <a href=""><i class="fa fa-users-cog"></i> Data Agenda <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
                            <li>
                                <a href="?pg=agendaguru">Agenda Guru</a>
                            </li>
                            <li>
                                <a href="?pg=jurnalguru">Jurnal Guru</a>
                            </li>
                           		
                        </ul>
                    </li>
					<li>
                        <a href=""><i class="fa fa-edit"></i> Data Nilai <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
                            <li>
                                <a href="?pg=nilaiharianguru">Nilai Harian</a>
                            </li>
                            
                           		
                        </ul>
                    </li>
					<li>
                        <a href=""><i class="fa fa-print"></i>Kartu Pelajar <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
						 <li>
                                <a href="?pg=setlogo">Sett Logo</a>
                            </li>
                            <li>
                                <a href="?pg=tartib">Tata Tertib</a>
                            </li>
                            <li>
                                <a href="?pg=settingkarpel">Background</a>
                            </li>
                           		<li>
                                <a href="?pg=cetakkarpel">Cetak Karpel</a>
                            </li>
                        </ul>
                    </li>
					 <li>
                        <a href=""><i class="fas fa-th-list"></i>K Merdeka <span class="badge rounded-pill badge-light float-end"><i class="fa fa-chevron-down"></i></span></a>
                        <ul class="sub-menu">
					 <?php $query = mysqli_query($koneksi, "select * from jadwal_mapel JOIN kelas ON kelas.id_kelas=jadwal_mapel.kelas GROUP BY kurikulum"); ?>
					  <?php while ($k = mysqli_fetch_array($query)):	?>
					 <?php if($k['kurikulum']=='Merdeka'){ ?>
					 <li>
                        <a href="?pg=tujuan">Tujuan Pembelajaran</a>
                    </li>
				 <li>
                        <a href="?pg=lingkup">Lingkup Materi</a>
                    </li>
					
					<?php } ?>
					 <?php endwhile; ?>
					</ul>
					</li>
					
					<hr style="margin:0px">
					 <li>
                        <a href="logout"><i class="fa fa-sign-in-alt"></i>Logout</a>
                    </li>
					<hr style="margin:0px">
				
					
                 </ul>
            </div>
        </div>