0) { $stmt = db()->prepare('SELECT * FROM kyc_applications WHERE id = :id LIMIT 1'); $stmt->execute([':id' => $id]); $record = $stmt->fetch(); } if ($_SERVER['REQUEST_METHOD'] === 'POST' && $record) { $status = $_POST['status'] ?? 'pending'; $allowed = ['pending', 'approved', 'rejected']; if (!in_array($status, $allowed, true)) { $status = 'pending'; } $stmt = db()->prepare('UPDATE kyc_applications SET status = :status WHERE id = :id'); $stmt->execute([':status' => $status, ':id' => $record['id']]); $notice = 'Status updated.'; $record['status'] = $status; } $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? ''; $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? ''; ?> <?= h(t('admin_detail_title')) ?> · <?= h(t('site_name')) ?>

ID

Record not found.
Name
Email
Phone
ID Number
Address
Document