<?= $this->extend('layouts/superadmin') ?>

<?= $this->section('content') ?>
<h2 class="mb-4">Dashboard</h2>

<div class="row">
    <div class="col-md-4">
        <div class="card text-center mb-4">
            <div class="card-body">
                <h3 class="text-primary"><?= $totalLicenses ?></h3>
                <p class="mb-0">Total Licenses</p>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="card text-center mb-4">
            <div class="card-body">
                <h3 class="text-success"><?= $activeLicenses ?></h3>
                <p class="mb-0">Active Licenses</p>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="card text-center mb-4">
            <div class="card-body">
                <h3 class="text-danger"><?= $expiredLicenses ?></h3>
                <p class="mb-0">Expired Licenses</p>
            </div>
        </div>
    </div>
</div>

<div class="card">
    <div class="card-header d-flex justify-content-between align-items-center">
        <h5 class="mb-0">Quick Actions</h5>
    </div>
    <div class="card-body">
        <a href="/superadmin/licenses/create" class="btn btn-primary me-2">
            <i class="bi bi-plus-circle"></i> Create New License
        </a>
        <a href="/superadmin/licenses" class="btn btn-outline-primary">
            <i class="bi bi-list"></i> View All Licenses
        </a>
    </div>
</div>
<?= $this->endSection() ?>
