this is dashboard.php window.location.href = "bvn-verification";'; exit; } function truncate($text, $length) { return strlen($text) > $length ? substr($text, 0, $length) . '...' : $text; } $display_name = $user["acc_type"] === "wallet" ? $user["fname"] : $user["bs_name"]; $display_name = truncate($display_name, 13); $notif_count = 0; $nq = mysqli_query($conn, "SELECT COUNT(*) AS nots FROM notification"); if ($nq) { $notif_count = mysqli_fetch_assoc($nq)['nots']; } function showTransaction($trans_type, $trans_date, $trans_status, $trans_amount, $trans_reference, $trans_des) { $icon_map = [ "Airtime" => "bx bxs-mobile", "Data" => "ri-arrow-up-down-line", "Account Credited" => "bi bi-arrow-down-circle", "Transfer" => "bi bi-send", "Cable TV" => "ri-tv-line", "Cable Tv" => "ri-tv-line", "Electricity" => "ri-lightbulb-line", "Airtime Pin" => "bi bi-printer", "Bulk Sms" => "bi bi-chat-right-text", "Sms Subscription" => "bi bi-chat-right-text", "QR payment" => "bi bi-qr-code", "Rewards" => "bi bi-gift", "Bvn verification" => "ri-user-line", "Card Withdrawal" => "bi bi-credit-card", "Bank-Transfer" => "bi bi-bank", ]; $icon = $icon_map[$trans_type] ?? "bi bi-arrow-up-circle"; $stat_colors = [ "success" => ["bg" => "rgba(0,170,68,0.12)", "clr" => "#00aa44"], "pending" => ["bg" => "rgba(255,138,0,0.12)", "clr" => "#ff8a00"], "reversed" => ["bg" => "rgba(255,138,0,0.12)", "clr" => "#ff8a00"], "failed" => ["bg" => "rgba(220,38,38,0.12)", "clr" => "#dc2626"], "declined" => ["bg" => "rgba(220,38,38,0.12)", "clr" => "#dc2626"], ]; $sc = $stat_colors[$trans_status] ?? ["bg" => "rgba(150,150,150,0.1)", "clr" => "#999"]; return '
'.htmlspecialchars($trans_type).'
'.htmlspecialchars($trans_date).'
₦'.number_format($trans_amount).'
'.htmlspecialchars($trans_status).'
'; } ?> Dashboard || Cidapay ">
C
Cidapay
User

Hi,

Good day! ☀️

Available Balance
****
Transaction History
Recent Transactions View All
prepare($sql); $stmt->bind_param("s", $user["unique_id"]); $stmt->execute(); $txn_result = $stmt->get_result(); if ($txn_result->num_rows > 0) { while ($row = $txn_result->fetch_assoc()) { echo showTransaction($row["type"],$row["date"],$row["status"],$row["amount"],$row["reference"],$row["description"]); } } else { echo '
No Transactions Yet
'; } ?>

Fund Account

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 '
'.htmlspecialchars($arow["bank_name"]).' — '.htmlspecialchars($arow["acc_name"]).'
'.htmlspecialchars($arow["acc_no"]).'
Bank transfer into this account. 0.5% charge per deposit.
'; } } else { echo '
No virtual account generated yet.
'; } ?>
Fund with Card
3% charge on every deposit.
Fund via QR
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): ?>

Your Accounts

num_rows > 0): while($row = $paga_res->fetch_assoc()): ?> num_rows > 0): while($row = $res->fetch_assoc()): ?>

No accounts yet

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
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

Choose a Savings Plan

months lock period

No lock period

0): ?>

% interest rate

0): ?>

% charge for withdrawal

No charges on withdrawals

Minimum:

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
Set Limits
Delete Card
Details of the CIDAPAY merchant who linked your card

Manage your Cards

Activate Card
PAN
SET CARD PIN
CVV
prepare("SELECT status, customer_id, card_number, card_name, cvv, pin, exp_date FROM card WHERE unique_id = ? AND currency = ?"); $sql2->bind_param("ss", $user_id ,$currency); $sql2->execute(); $res2 = $sql2->get_result(); $row = $res2->fetch_assoc(); if($row && $row["status"] =="active"){ echo '
        
        
**** ******** **** ****
Card Holder'.$row["card_name"].'
CVV'.$row["cvv"].'

Card details View your card details
Card Settings Set limits, block, change PIN etc.
'; } else if($row && $row['status'] ==="blocked"){ echo '
CARD BLOCKED
 
    
    
'.chunk_split($row["card_number"], 4, ' ').'
Card Holder'.$row["card_name"].'
CVV'.$row["cvv"].'

Card Settings Set limits, block, change PIN etc.
'; } else { $stmt = $conn->prepare("SELECT customer_id FROM regtable WHERE unique_id = ?"); $stmt->bind_param("s", $user_id); $stmt->execute(); $result = $stmt->get_result(); $row = $result->fetch_assoc(); if ($row['customer_id']) { echo '
Congratulations on your first Card 🎉. Please request your Card to complete the process and atart using.
'; }else{ echo '
You don\'t have any CIDAPAY expense card yet.
'; } } ?>
Transactions View Recent Card Transactions
   
   
    
    
time() + 900, // 15 minutes 'path' => '/', 'domain' => $_SERVER['HTTP_HOST'], 'sameSite' => 'Strict', 'secure' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on'), 'httponly' => true, ])) { // Store the CSRF token in the session $_SESSION['csrf_token'] = $csrfToken; } else { // Handle cookie setting error exit('Error setting CSRF cookie'); }*/ ?> Request card 0) { $row = mysqli_fetch_assoc($result); if ($row["status"] == "pending") { echo '
Card Request

Request Pending

Your Card is on the way to your door step this may take 7days.

'; } elseif ($row["status"] == "delivered") { echo '
Card Request

Delivered

Congratulation, your Card was delievered.

'; } } else { ?> ">
Card Request
verve card

Get expense cards

Proceed

Kindly fill in your address and card customisation

CHOOSE CARD DESIGN

Full Name " name="name" placeholder="Business Name" readonly>
Phone " name="name" placeholder="Phone number" readonly>
Address " name="location" placeholder="12 abak road uyo" required>
LGA " name="lga" placeholder="essien udim" required>
Compound name " name="compound_name" placeholder="" required>

Amount Paid
now for me this are teh codes but on the buttom of the me put logout button Account Settings ">
Account Settings

Account

Transactions
Profile
Legal
5 star rating
Reset Transaction PIN
Fingerprint Authentication
SMS services

and remove settinggs like finger print
Transactions
Profile
Legal
then there be a menu in the me secction that says view profile ">
Profile
My Profile
" alt="user profile">
Full Name
Mobile Number
Nick Name
Enter Nickname
Gender
Date of Birth
prepare("SELECT * FROM verification WHERE unique_id = ? ORDER BY id DESC"); $sql->bind_param("s", $user_id); $sql->execute(); $res = $sql->get_result(); $count = 0; if($res->num_rows > 0){ while($row = $res->fetch_assoc()){ $count++; echo ' '.$row["dob"].' '; } }else{ echo '

N/A

'; } ?>
Email
onclick="window.location.href='email-verification.php';" > Verify
Address
view this in a pop up modal