<div class="container-fluid mt-3">

<h4 class="mb-4 fw-bold">
<i class="fa fa-chart-line"></i> Dashboard
</h4>

<div class="row g-3">

<!-- Submissions -->
<div class="col-md-3">
    <div class="card border-0 shadow-sm">
        <div class="card-body text-center">
            <div class="text-muted">Submissions</div>
            <h2><?= (int)($stats['submissions'] ?? 0) ?></h2>
        </div>
    </div>
</div>

<!-- Reviews -->
<div class="col-md-3">
    <div class="card border-0 shadow-sm">
        <div class="card-body text-center">
            <div class="text-muted">Reviews</div>
            <h2><?= (int)($stats['reviews'] ?? 0) ?></h2>
        </div>
    </div>
</div>

<!-- Users -->
<div class="col-md-3">
    <div class="card border-0 shadow-sm">
        <div class="card-body text-center">
            <div class="text-muted">Participants</div>
            <h2><?= (int)($stats['users'] ?? 0) ?></h2>
        </div>
    </div>
</div>

<!-- Tracks -->
<div class="col-md-3">
    <div class="card border-0 shadow-sm">
        <div class="card-body text-center">
            <div class="text-muted">Tracks</div>
            <h2><?= (int)($stats['tracks'] ?? 0) ?></h2>
        </div>
    </div>
</div>

</div>

<hr class="my-4">

<div class="card border-0 shadow-sm">
    <div class="card-body">

        <h5 class="mb-3">Session Info</h5>

        <p>
            <strong>User:</strong>
            <?= htmlspecialchars($_SESSION['user']['first_name'] ?? '') ?>
            <?= htmlspecialchars($_SESSION['user']['last_name'] ?? '') ?>
        </p>

        <p>
            <strong>Role:</strong>
            <?= htmlspecialchars($role ?? '') ?>
        </p>

        <p>
            <strong>Conference ID:</strong>
            <?= (int)$conferenceId ?>
        </p>

        <p>
            <strong>Organization ID:</strong>
            <?= (int)$orgId ?>
        </p>

    </div>
</div>

</div>
