<?php
include 'config.php';
checkLogin();
include 'layout/header.php';
include 'layout/sidebar.php';
?>


<h3 class="mb-4">Dashboard</h3>

<div class="row g-4">
<div class="col-md-4">
<div class="card p-3">
<h6>Total Models</h6>
<h3><?= $conn->query("SELECT COUNT(*) c FROM laptop_models")->fetch_assoc()['c']; ?></h3>
</div>
</div>

<div class="col-md-4">
<div class="card p-3">
<h6>Total Serials</h6>
<h3><?= $conn->query("SELECT COUNT(*) c FROM laptop_serials")->fetch_assoc()['c']; ?></h3>
</div>
</div>
</div>
<?php include 'layout/footer.php'; ?>

