chipflow-commander / customer_topup.html
Xcronious's picture
oke selesaikan semua modul ini untuk di dashboard admin Role & Akses
de05dab verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ChipFlow Commander - Withdraw</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100">
<div class="container py-8">
<div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6">
<div class="text-center mb-6">
<h1 class="text-2xl font-bold text-gray-800">🏧 Chip Withdrawal</h1>
<p class="text-gray-600">Convert your chips to real money</p>
</div>
<form id="withdrawForm">
<div class="mb-4">
<label class="block text-gray-700 mb-2">Game ID</label>
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Enter your game ID" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Chip Amount</label>
<input type="number" id="chipInput" class="w-full px-3 py-2 border rounded-lg" placeholder="Enter chip amount" min="100" required>
<p class="text-xs text-gray-500 mt-1">Minimum 100 chips</p>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Bank Account</label>
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Account number" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Bank Name</label>
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Bank name" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Account Holder Name</label>
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Name on bank account" required>
</div>
<div class="bg-green-50 p-4 rounded-lg mb-6">
<h3 class="text-lg font-semibold text-green-800 mb-2">You will receive:</h3>
<div class="flex justify-between items-center">
<span class="text-gray-700">Amount (Rp):</span>
<span id="cashResult" class="text-2xl font-bold text-green-600">0</span>
</div>
<div class="text-xs text-gray-500 mt-2">Rate: Rp65,000 per chip</div>
</div>
<button type="submit" class="w-full bg-green-600 hover:bg-green-700 text-white py-3 px-4 rounded-lg font-bold transition">
Request Withdrawal
</button>
</form>
<div class="mt-6 text-center text-sm text-gray-500">
<p>Processing time: 1-3 business days</p>
</div>
</div>
</div>
<script>
document.getElementById('chipInput').addEventListener('input', function() {
const chips = parseInt(this.value) || 0;
const cash = chips * 65000;
document.getElementById('cashResult').textContent = cash.toLocaleString();
});
</script>
</body>
</html>