prepare("SELECT * FROM account WHERE unique_id = ? ORDER BY id DESC");
$sql2->bind_param("s", $user_id);
$sql2->execute();
$acc_result = $sql2->get_result();
if ($acc_result->num_rows > 0) {
while ($arow = $acc_result->fetch_assoc()) {
echo '
Share your code with another Cidapay user to receive funds.
Complete Your KYC
CBN regulations require identity verification for full, unrestricted access to Cidapay services.
';
} elseif ($user["acc_type"] == 'business') {
$bq = "SELECT status FROM merchants WHERE unique_id = '$user_id'";
$br = mysqli_query($conn, $bq);
$brow = mysqli_fetch_assoc($br);
$bst = $brow["status"] ?? 'not_submitted';
if (in_array($bst, ["pending","rejected","not_submitted"])) {
echo '
Complete Your KYB
Provide valid business documents to continue using Cidapay without restrictions.
';
}
}
?>
now i want you to do the following on add moeny button remove any other means of deposit leave only viertual account now
Deposit Portal
Deposit Funds
prepare("SELECT * FROM account WHERE unique_id = ? ORDER BY id DESC");
$sql->bind_param("s", $user_id);
$sql->execute();
$res = $sql->get_result();
// Fetch Paga accounts
$paga_sql = $conn->prepare("SELECT * FROM paga_account WHERE unique_id = ? ORDER BY id DESC");
$paga_sql->bind_param("s", $user_id);
$paga_sql->execute();
$paga_res = $paga_sql->get_result();
if($res->num_rows > 0 || $paga_res->num_rows > 0): ?>
Generate a virtual account to start receiving deposits
Deposit Methods
Card Payment
Instant deposit with debit/credit card
QR Code
Share your code for others to scan
Generate Virtual Account
this code use to be seperately but i wan you to interget this into the dashabord.php so it would be one code so eerting woul d be like mobile app , 2. savings button when the tab is clicked switch to this savings 1800) {
session_regenerate_id(true);
$_SESSION['last_regeneration'] = time();
}
$userId = $_SESSION['user_id'];
$csbin2hex(random_bytes(32));
$_SESSION['csrf_token'] = $csrfToken;
// Get savings plans for display
$savingsPlans = [];
$stmt = $conn->prepare("SELECT * FROM cida_savings_plans");
if ($stmt) {
$stmt->execute();
$result = $stmt->get_result();
while ($row = $result->fetch_assoc()) {
$savingsPlans[] = $row;
}
$stmt->close();
}
?>
CIDA Save - Savings Platform
CIDA Save
CIDA Save
Choose a Savings Plan
months lock period
No lock period
0): ?>
% interest rate
0): ?>
% charge for withdrawal
No charges on withdrawals
Minimum: ₦
Withdraw from Savings
Add Money to Savings
Create Savings Account
Plan Details
use same ui so eveting would feel app like now for cards this are the codes
Card Settings
">
Manage Card
Reset PIN
Block / Unblock card
Unblock / block card
Set Limits
Card Daily Limits
Dispute transaction
Delete Card
Terminate Card
Card Activator
Details of the CIDAPAY merchant who linked your card
Manage your Cards
prepare("SELECT * FROM cards WHERE unique_id = ? AND currency = ?");
$sql2->bind_param("ss", $user_id, $sts_two);
$sql2->execute();
$res2 = $sql2->get_result();
if($res2->num_rows > 0){
$row = $res2->fetch_assoc();
echo '