query("SELECT COUNT(*) FROM users")->fetchColumn(); $lpas_count = $db->query("SELECT COUNT(*) FROM lpa_applications")->fetchColumn(); // Get all users $users = $db->query("SELECT * FROM users ORDER BY created_at DESC LIMIT 50")->fetchAll(); // Get all LPAs $lpas = $db->query("SELECT * FROM lpa_applications ORDER BY created_at DESC LIMIT 50")->fetchAll(); // Get migration history try { $migration_history = $db->query("SELECT * FROM migration_history ORDER BY executed_at DESC")->fetchAll(); } catch (PDOException $e) { // migration_history might not exist yet if installer hasn't run or table not created $migration_history = []; } } catch (PDOException $e) { error_log($e->getMessage()); } ?> Admin Dashboard — <?php echo htmlspecialchars($project_name); ?>

System Administration

Overview of all users and applications in the system.

Total Users

Total Applications

Recent Users
Name Email Role Verified Joined
Yes No
Recent Applications
0): ?>
Type Donor Progress Status Actions
ID: #
%
PDF
No applications found.
Migration History
0): ?>
File Name Executed At
No migration history found. Run migrations to initialize.