Enter password to manage licenses
| License Key | Owner & Notes | Machines | Counters | Status | Created | Actions |
|---|---|---|---|---|---|---|
| = htmlspecialchars($l['license_key']) ?> |
= htmlspecialchars($l['owner'] ?: 'Unknown Client') ?>
= htmlspecialchars($l['address'] ?: 'No notes') ?>
|
prepare("SELECT COUNT(*) FROM activations WHERE license_id = ?");
$stmt->execute([$l['id']]);
$count = $stmt->fetchColumn();
} catch (Exception $e) { $count = 0; }
$max = $l['max_activations'] ?: 1;
$percent = ($count / $max) * 100;
$bar_color = $percent >= 100 ? 'bg-danger' : ($percent >= 80 ? 'bg-warning' : 'bg-success');
?>
= $count ?> / = $max ?>
|
= $l['max_counters'] ?? 0 ?> Limit | = ucfirst($l['status']) ?> | = date('M d, Y', strtotime($l['created_at'])) ?> |
|
| No licenses found in the database. | ||||||