prepare("SELECT COUNT(id) " . $base_sql); $count_stmt->execute($params); $total_subscriptions = $count_stmt->fetchColumn(); $total_pages = ceil($total_subscriptions / $limit); // --- Get Subscriptions for Current Page --- $subscriptions_sql = "SELECT id, fullName, email, insuranceType, status, created_at " . $base_sql . " ORDER BY created_at DESC LIMIT :limit OFFSET :offset"; $stmt = $pdo->prepare($subscriptions_sql); $stmt->bindParam(':limit', $limit, PDO::PARAM_INT); $stmt->bindParam(':offset', $offset, PDO::PARAM_INT); foreach ($params as $key => &$val) { $stmt->bindParam($key, $val); } $stmt->execute(); $subscriptions = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { die("Database error: " . $e->getMessage()); } ?>
New applications over the last 30 days.
Manage all insurance applications.
| ID | Full Name | Insurance Type | Status | Date | Actions | |
|---|---|---|---|---|---|---|
| No applications found. | ||||||
|
|
||||||