<?php
error_reporting(0);
include_once "./class/beranda.php";
$beranda=new beranda();

$j_testing=$beranda->jmlTesting();
$j_training=$beranda->jmlTraining();
$j_kriteria=$beranda->jmlKriteria();
$j_kriteria_nilai=$beranda->jmlKriteriaNilai();
?>


<div class="row">
	<div class="col-xl-3 col-sm-6 mb-xl-0 mb-4">
		<div class="card">
		<div class="card-body p-3">
			<div class="row">
			<div class="col-8">
				<div class="numbers">
				<p class="text-sm mb-0 text-uppercase font-weight-bold">Data Testing</p>
				<h5 class="font-weight-bolder">
					<?= $j_testing[0]['jml'] ?>
				</h5>
				<p class="mb-0">
					<a href="?p=testing" class="btn btn-danger btn-sm" style="margin-bottom: 0px; padding:5px 10px;"><i class="fa fa-link"></i> Kunjungi</a>
				</p>
				</div>
			</div>
			<div class="col-4 text-end">
				<div class="icon icon-shape bg-gradient-danger shadow-danger text-center rounded-circle">
				<i class="ni ni-folder-17 text-lg opacity-10" aria-hidden="true"></i>
				</div>
			</div>
			</div>
		</div>
		</div>
	</div>
	<div class="col-xl-3 col-sm-6 mb-xl-0 mb-4">
		<div class="card">
		<div class="card-body p-3">
			<div class="row">
			<div class="col-8">
				<div class="numbers">
				<p class="text-sm mb-0 text-uppercase font-weight-bold">Data Training</p>
				<h5 class="font-weight-bolder">
					<?= $j_training[0]['jml'] ?>
				</h5>
				<p class="mb-0">
					<a href="?p=training" class="btn btn-danger btn-sm" style="margin-bottom: 0px; padding:5px 10px;"><i class="fa fa-link"></i> Kunjungi</a>
				</p>
				</div>
			</div>
			<div class="col-4 text-end">
				<div class="icon icon-shape bg-gradient-success shadow-success text-center rounded-circle">
				<i class="ni ni-credit-card text-lg opacity-10" aria-hidden="true"></i>
				</div>
			</div>
			</div>
		</div>
		</div>
	</div>
	<div class="col-xl-3 col-sm-6 mb-xl-0 mb-4">
		<div class="card">
		<div class="card-body p-3">
			<div class="row">
			<div class="col-8">
				<div class="numbers">
				<p class="text-sm mb-0 text-uppercase font-weight-bold">Kriteria</p>
				<h5 class="font-weight-bolder">
					<?= $j_kriteria[0]['jml'] ?>
				</h5>
				<p class="mb-0">
					<a href="?p=kriteria" class="btn btn-danger btn-sm" style="margin-bottom: 0px; padding:5px 10px;"><i class="fa fa-link"></i> Kunjungi</a>
				</p>
				</div>
			</div>
			<div class="col-4 text-end">
				<div class="icon icon-shape bg-gradient-primary shadow-primary text-center rounded-circle">
				<i class="ni ni-box-2 text-lg opacity-10" aria-hidden="true"></i>
				</div>
			</div>
			</div>
		</div>
		</div>
	</div>
	<div class="col-xl-3 col-sm-6">
		<div class="card">
		<div class="card-body p-3">
			<div class="row">
			<div class="col-8">
				<div class="numbers">
				<p class="text-sm mb-0 text-uppercase font-weight-bold">Kriteria Nilai</p>
				<h5 class="font-weight-bolder">
					<?= $j_kriteria_nilai[0]['jml'] ?>
				</h5>
				<p class="mb-0">
					<a href="?p=kriteria-nilai" class="btn btn-danger btn-sm" style="margin-bottom: 0px; padding:5px 10px;"><i class="fa fa-link"></i> Kunjungi</a>
				</p>
				</div>
			</div>
			<div class="col-4 text-end">
				<div class="icon icon-shape bg-gradient-warning shadow-warning text-center rounded-circle">
				<i class="ni ni-single-copy-04 text-lg opacity-10" aria-hidden="true"></i>
				</div>
			</div>
			</div>
		</div>
		</div>
	</div>
	</div>
	

<div class="row mt-4">
	<div class="col-lg-12 mb-lg-0 mb-4">
		<div class="card card-carousel overflow-hidden h-100 p-0">
			<img src="./assets/img/bg_dashboard.png">
		</div>
	</div>
</div>
