<?php
require("../../config/koneksi.php");
require("../../config/function.php");
require("../../config/crud.php");
$hadir = mysqli_num_rows(mysqli_query($koneksi, "SELECT * FROM absen_daring WHERE tanggal='$tanggal' AND ket='H'"));
$jumsiswa = mysqli_num_rows(mysqli_query($koneksi, "SELECT * FROM siswa"));   
$jmateri = mysqli_num_rows(mysqli_query($koneksi, "SELECT * FROM materi WHERE tgl='$tanggal'"));
$jmap =  mysqli_num_rows(mysqli_query($koneksi, "SELECT * FROM mata_pelajaran"));
?>
		
				
				
				
				 <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">
                                                        Jumlah Materi <?= $jmateri ?> dari Total <?= $jmap ?>
                                                    </a>
                                                    <span class="widget-list-item-description-progress">
                                                        <div class="progress">
                                                            <div class="progress-bar" role="progressbar" style="width: <?= ($materi/$jmap)*100; ?>%;" aria-valuenow="<?= ($jmateri/$jmap)*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>
				
				
							