<?php
require_once '../classes/Auth.php';
$auth = new Auth();
$user = $auth->guard();
if (!$user) { header('Location: ../login.php'); exit; }
include 'partials/header.php';
include 'partials/sidebar.php';
?>
<div class="container-fluid">
  <h1 class="h3 mb-4 text-gray-800">Welcome, <?= htmlspecialchars($user['name']) ?></h1>
  <div class="row">
    <div class="col-md-4 mb-3">
      <div class="card border-left-primary shadow h-100 py-2">
        <div class="card-body">
          <div class="row no-gutters align-items-center">
            <div class="col mr-2">
              <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Total Users</div>
              <div class="h5 mb-0 font-weight-bold text-gray-800">--</div>
            </div>
            <div class="col-auto"><i class="fas fa-users fa-2x text-gray-300"></i></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php include 'partials/footer.php'; ?>