File size: 3,336 Bytes
21c0d65
 
 
 
 
de05dab
21c0d65
 
 
 
 
 
de05dab
 
21c0d65
 
de05dab
21c0d65
 
 
 
 
 
de05dab
 
 
21c0d65
 
 
de05dab
 
21c0d65
 
 
de05dab
 
21c0d65
 
de05dab
 
 
21c0d65
 
de05dab
 
21c0d65
de05dab
 
21c0d65
de05dab
21c0d65
 
de05dab
 
21c0d65
 
 
 
de05dab
21c0d65
 
 
 
 
de05dab
 
 
 
21c0d65
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!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>