<?php
declare(strict_types=1);

require_once '../includes/auth.php';
require_once '../includes/security.php';
require_once '../includes/functions.php';

$pageTitle = "Dashboard";

require_once '../includes/header.php';
?>

<section class="content-header">

    <div class="container-fluid">

        <div class="row mb-2">

            <div class="col-sm-6">

                <h1>Dashboard</h1>

            </div>

        </div>

    </div>

</section>

<section class="content">

<div class="container-fluid">

<div class="row">

<div class="col-lg-3 col-md-6 col-12">

<div class="small-box bg-primary">

<div class="inner">

<h3><?= totalUniversities(); ?></h3>

<p>Total Universities</p>

</div>

<div class="icon">

<i class="fas fa-university"></i>

</div>

</div>

</div>

<div class="col-lg-3 col-md-6 col-12">

<div class="small-box bg-success">

<div class="inner">

<h3><?= totalEntries(); ?></h3>

<p>Total Entries</p>

</div>

<div class="icon">

<i class="fas fa-file-pdf"></i>

</div>

</div>

</div>

<div class="col-lg-3 col-md-6 col-12">

<div class="small-box bg-warning">

<div class="inner">

<h3><?= date('d'); ?></h3>

<p><?= date('F Y'); ?></p>

</div>

<div class="icon">

<i class="fas fa-user-shield"></i>

</div>

</div>

</div>

</div>

<div class="card">

<div class="card-header">

<h3 class="card-title">

</h3>

</div>

<div class="card-body">

<p>

Welcome to the secure Res Site  Admin Panel.

</p>

</div>

</div>

</div>

</section>

<?php require_once '../includes/footer.php'; ?>