<?php
require("../../config/koneksi.php");
require("../../config/function.php");
require("../../config/crud.php");
$hadir = mysqli_num_rows(mysqli_query($koneksi, "SELECT * FROM absensi WHERE tanggal='$tanggal' AND ket='H' AND level='siswa'"));
$jumpeg = mysqli_num_rows(mysqli_query($koneksi, "SELECT * FROM users WHERE level<>'admin'"));
$jumsiswa = mysqli_num_rows(mysqli_query($koneksi, "SELECT * FROM siswa"));   
$hadpeg = mysqli_num_rows(mysqli_query($koneksi, "SELECT * FROM absensi WHERE tanggal='$tanggal' AND ket='H' AND level='pegawai'"));            
?>
		
				
				
				
				 <ul class="widget-list-content list-unstyled">
                                            <li class="widget-list-item widget-list-item-green">
                                                <span class="widget-list-item-icon"><i class="material-icons-outlined">article</i></span>
                                                <span class="widget-list-item-description">
                                                    <a href="#" class="widget-list-item-description-title">
                                                        Kehadiran Pegawai <?= $hadpeg ?> dari Total <?= $jumpeg ?>
                                                    </a>
                                                    <span class="widget-list-item-description-progress">
                                                        <div class="progress">
                                                            <div class="progress-bar" role="progressbar" style="width: <?= ($hadpeg/$jumpeg)*100; ?>%;" aria-valuenow="<?= ($hadpeg/$jumpeg)*100; ?>" aria-valuemin="0" aria-valuemax="100"></div>
                                                        </div>
                                                    </span>
                                                </span>
                                            </li>
											 <li class="widget-list-item widget-list-item-blue">
                                                <span class="widget-list-item-icon"><i class="material-icons-outlined">verified_user</i></span>
                                                <span class="widget-list-item-description">
                                                    <a href="#" class="widget-list-item-description-title">
                                                       Kehadiran Siswa <?= $hadir ?> dari Total <?= $jumsiswa ?>
                                                    </a>
                                                    <span class="widget-list-item-description-progress">
                                                        <div class="progress">
                                                            <div class="progress-bar" role="progressbar" style="width: <?= ($hadir/$jumsiswa)*100; ?>%;" aria-valuenow="<?= ($hadir/$jumsiswa)*100; ?>" aria-valuemin="0" aria-valuemax="100"></div>
                                                        </div>
                                                    </span>
                                                </span>
                                            </li>
				
				
							