Spaces:
Running
Running
Manual changes saved
Browse files- admin_dashboard.html +71 -196
- customer_topup.html +26 -52
- withdraw.html +29 -69
admin_dashboard.html
CHANGED
|
@@ -3,220 +3,95 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>ChipFlow Commander -
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
-
<
|
| 9 |
-
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
</head>
|
| 11 |
<body class="bg-gray-100">
|
| 12 |
-
<div class="
|
| 13 |
-
<
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
<
|
| 17 |
-
<p class="text-sm text-gray-400">Admin Dashboard</p>
|
| 18 |
</div>
|
| 19 |
-
<nav class="mt-4">
|
| 20 |
-
<a href="#" class="block py-2 px-4 bg-gray-700 text-white">Dashboard</a>
|
| 21 |
-
<a href="#" class="block py-2 px-4 text-gray-300 hover:bg-gray-700">Users</a>
|
| 22 |
-
<a href="#" class="block py-2 px-4 text-gray-300 hover:bg-gray-700">Transactions</a>
|
| 23 |
-
<a href="#" class="block py-2 px-4 text-gray-300 hover:bg-gray-700">Chips Management</a>
|
| 24 |
-
<a href="#" class="block py-2 px-4 text-gray-300 hover:bg-gray-700">Settings</a>
|
| 25 |
-
<a href="/index.html" class="block py-2 px-4 text-gray-300 hover:bg-gray-700 mt-8">Back to Home</a>
|
| 26 |
-
</nav>
|
| 27 |
-
</div>
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
<h2 class="text-xl font-semibold text-gray-800">Dashboard Overview</h2>
|
| 34 |
-
<div class="flex items-center space-x-4">
|
| 35 |
-
<span class="text-gray-600">Admin</span>
|
| 36 |
-
<div class="w-8 h-8 bg-blue-500 rounded-full"></div>
|
| 37 |
-
</div>
|
| 38 |
</div>
|
| 39 |
-
</header>
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
<div class="bg-white rounded-lg shadow p-6">
|
| 45 |
-
<div class="flex items-center">
|
| 46 |
-
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
|
| 47 |
-
<i data-feather="users"></i>
|
| 48 |
-
</div>
|
| 49 |
-
<div class="ml-4">
|
| 50 |
-
<p class="text-sm font-medium text-gray-500">Total Users</p>
|
| 51 |
-
<p class="text-2xl font-semibold text-gray-800">1,248</p>
|
| 52 |
-
</div>
|
| 53 |
-
</div>
|
| 54 |
-
</div>
|
| 55 |
-
<div class="bg-white rounded-lg shadow p-6">
|
| 56 |
-
<div class="flex items-center">
|
| 57 |
-
<div class="p-3 rounded-full bg-green-100 text-green-600">
|
| 58 |
-
<i data-feather="dollar-sign"></i>
|
| 59 |
-
</div>
|
| 60 |
-
<div class="ml-4">
|
| 61 |
-
<p class="text-sm font-medium text-gray-500">Today's Revenue</p>
|
| 62 |
-
<p class="text-2xl font-semibold text-gray-800">$12,846</p>
|
| 63 |
-
</div>
|
| 64 |
-
</div>
|
| 65 |
-
</div>
|
| 66 |
-
<div class="bg-white rounded-lg shadow p-6">
|
| 67 |
-
<div class="flex items-center">
|
| 68 |
-
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
|
| 69 |
-
<i data-feather="activity"></i>
|
| 70 |
-
</div>
|
| 71 |
-
<div class="ml-4">
|
| 72 |
-
<p class="text-sm font-medium text-gray-500">Active Sessions</p>
|
| 73 |
-
<p class="text-2xl font-semibold text-gray-800">342</p>
|
| 74 |
-
</div>
|
| 75 |
-
</div>
|
| 76 |
-
</div>
|
| 77 |
-
<div class="bg-white rounded-lg shadow p-6">
|
| 78 |
-
<div class="flex items-center">
|
| 79 |
-
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
|
| 80 |
-
<i data-feather="alert-circle"></i>
|
| 81 |
-
</div>
|
| 82 |
-
<div class="ml-4">
|
| 83 |
-
<p class="text-sm font-medium text-gray-500">Pending Issues</p>
|
| 84 |
-
<p class="text-2xl font-semibold text-gray-800">8</p>
|
| 85 |
-
</div>
|
| 86 |
-
</div>
|
| 87 |
-
</div>
|
| 88 |
</div>
|
| 89 |
|
| 90 |
-
<
|
| 91 |
-
|
| 92 |
-
<
|
| 93 |
-
<h3 class="text-lg font-medium text-gray-800 mb-4">Revenue Overview</h3>
|
| 94 |
-
<canvas id="revenueChart" height="250"></canvas>
|
| 95 |
-
</div>
|
| 96 |
-
<div class="bg-white rounded-lg shadow p-6">
|
| 97 |
-
<h3 class="text-lg font-medium text-gray-800 mb-4">User Activity</h3>
|
| 98 |
-
<canvas id="activityChart" height="250"></canvas>
|
| 99 |
-
</div>
|
| 100 |
</div>
|
| 101 |
|
| 102 |
-
<
|
| 103 |
-
|
| 104 |
-
<
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
<td class="px-6 py-4 whitespace-nowrap">Top Up</td>
|
| 124 |
-
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span></td>
|
| 125 |
-
</tr>
|
| 126 |
-
<tr>
|
| 127 |
-
<td class="px-6 py-4 whitespace-nowrap">#TRX-78944</td>
|
| 128 |
-
<td class="px-6 py-4 whitespace-nowrap">Jane Smith</td>
|
| 129 |
-
<td class="px-6 py-4 whitespace-nowrap">$75.00</td>
|
| 130 |
-
<td class="px-6 py-4 whitespace-nowrap">Withdrawal</td>
|
| 131 |
-
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pending</span></td>
|
| 132 |
-
</tr>
|
| 133 |
-
<tr>
|
| 134 |
-
<td class="px-6 py-4 whitespace-nowrap">#TRX-78943</td>
|
| 135 |
-
<td class="px-6 py-4 whitespace-nowrap">Robert Johnson</td>
|
| 136 |
-
<td class="px-6 py-4 whitespace-nowrap">$200.00</td>
|
| 137 |
-
<td class="px-6 py-4 whitespace-nowrap">Top Up</td>
|
| 138 |
-
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span></td>
|
| 139 |
-
</tr>
|
| 140 |
-
<tr>
|
| 141 |
-
<td class="px-6 py-4 whitespace-nowrap">#TRX-78942</td>
|
| 142 |
-
<td class="px-6 py-4 whitespace-nowrap">Emily Davis</td>
|
| 143 |
-
<td class="px-6 py-4 whitespace-nowrap">$150.00</td>
|
| 144 |
-
<td class="px-6 py-4 whitespace-nowrap">Withdrawal</td>
|
| 145 |
-
<td class="px-6 py-4 whitespace-nowrap"><span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Rejected</span></td>
|
| 146 |
-
</tr>
|
| 147 |
-
</tbody>
|
| 148 |
-
</table>
|
| 149 |
</div>
|
|
|
|
| 150 |
</div>
|
| 151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
</div>
|
| 153 |
</div>
|
| 154 |
|
| 155 |
<script>
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
}]
|
| 176 |
-
},
|
| 177 |
-
options: {
|
| 178 |
-
responsive: true,
|
| 179 |
-
plugins: {
|
| 180 |
-
legend: {
|
| 181 |
-
display: false
|
| 182 |
-
}
|
| 183 |
-
},
|
| 184 |
-
scales: {
|
| 185 |
-
y: {
|
| 186 |
-
beginAtZero: true
|
| 187 |
-
}
|
| 188 |
-
}
|
| 189 |
-
}
|
| 190 |
-
});
|
| 191 |
-
|
| 192 |
-
// Activity Chart
|
| 193 |
-
const activityCtx = document.getElementById('activityChart').getContext('2d');
|
| 194 |
-
new Chart(activityCtx, {
|
| 195 |
-
type: 'bar',
|
| 196 |
-
data: {
|
| 197 |
-
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
| 198 |
-
datasets: [{
|
| 199 |
-
label: 'Active Users',
|
| 200 |
-
data: [320, 150, 280, 400, 350, 420, 380],
|
| 201 |
-
backgroundColor: 'rgba(124, 58, 237, 0.7)',
|
| 202 |
-
borderColor: 'rgba(124, 58, 237, 1)',
|
| 203 |
-
borderWidth: 1
|
| 204 |
-
}]
|
| 205 |
-
},
|
| 206 |
-
options: {
|
| 207 |
-
responsive: true,
|
| 208 |
-
plugins: {
|
| 209 |
-
legend: {
|
| 210 |
-
display: false
|
| 211 |
-
}
|
| 212 |
-
},
|
| 213 |
-
scales: {
|
| 214 |
-
y: {
|
| 215 |
-
beginAtZero: true
|
| 216 |
-
}
|
| 217 |
-
}
|
| 218 |
}
|
| 219 |
-
}
|
|
|
|
|
|
|
|
|
|
| 220 |
});
|
| 221 |
</script>
|
| 222 |
</body>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>ChipFlow Commander - Top Up</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
| 9 |
</head>
|
| 10 |
<body class="bg-gray-100">
|
| 11 |
+
<div class="container py-8">
|
| 12 |
+
<div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6">
|
| 13 |
+
<div class="text-center mb-6">
|
| 14 |
+
<h1 class="text-2xl font-bold text-gray-800">π Chip Top Up</h1>
|
| 15 |
+
<p class="text-gray-600">Fill the form below to recharge your chips</p>
|
|
|
|
| 16 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
<form id="topupForm">
|
| 19 |
+
<div class="mb-4">
|
| 20 |
+
<label class="block text-gray-700 mb-2">Game ID</label>
|
| 21 |
+
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Enter your game ID" required>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
</div>
|
|
|
|
| 23 |
|
| 24 |
+
<div class="mb-4">
|
| 25 |
+
<label class="block text-gray-700 mb-2">Player Name</label>
|
| 26 |
+
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Your in-game name" required>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
</div>
|
| 28 |
|
| 29 |
+
<div class="mb-4">
|
| 30 |
+
<label class="block text-gray-700 mb-2">WhatsApp Number</label>
|
| 31 |
+
<input type="tel" class="w-full px-3 py-2 border rounded-lg" placeholder="+62..." required>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
</div>
|
| 33 |
|
| 34 |
+
<div class="mb-4">
|
| 35 |
+
<label class="block text-gray-700 mb-2">Amount (Rp)</label>
|
| 36 |
+
<input type="number" id="amountInput" class="w-full px-3 py-2 border rounded-lg" placeholder="Enter amount" min="10000" required>
|
| 37 |
+
<p class="text-xs text-gray-500 mt-1">Minimum Rp10,000</p>
|
| 38 |
+
</div>
|
| 39 |
+
|
| 40 |
+
<div class="mb-6">
|
| 41 |
+
<label class="block text-gray-700 mb-2">Payment Method</label>
|
| 42 |
+
<select class="w-full px-3 py-2 border rounded-lg" required>
|
| 43 |
+
<option value="">Select payment</option>
|
| 44 |
+
<option>Bank Transfer</option>
|
| 45 |
+
<option>QRIS</option>
|
| 46 |
+
<option>E-Wallet</option>
|
| 47 |
+
</select>
|
| 48 |
+
</div>
|
| 49 |
+
|
| 50 |
+
<div class="bg-blue-50 p-4 rounded-lg mb-6">
|
| 51 |
+
<h3 class="text-lg font-semibold text-blue-800 mb-2">You will receive:</h3>
|
| 52 |
+
<div class="flex justify-between items-center">
|
| 53 |
+
<span class="text-gray-700">Chips:</span>
|
| 54 |
+
<span id="chipResult" class="text-2xl font-bold text-blue-600">0.00</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
</div>
|
| 56 |
+
<div class="text-xs text-gray-500 mt-2" id="rateInfo"></div>
|
| 57 |
</div>
|
| 58 |
+
|
| 59 |
+
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-3 px-4 rounded-lg font-bold transition">
|
| 60 |
+
Proceed to Payment
|
| 61 |
+
</button>
|
| 62 |
+
</form>
|
| 63 |
+
|
| 64 |
+
<div class="mt-6 text-center text-sm text-gray-500">
|
| 65 |
+
<p>Need help? <a href="#" class="text-blue-600">Contact Support</a></p>
|
| 66 |
+
</div>
|
| 67 |
</div>
|
| 68 |
</div>
|
| 69 |
|
| 70 |
<script>
|
| 71 |
+
document.getElementById('amountInput').addEventListener('input', function() {
|
| 72 |
+
const amount = parseFloat(this.value) || 0;
|
| 73 |
+
let chips = 0;
|
| 74 |
+
let rateText = '';
|
| 75 |
+
|
| 76 |
+
if (amount >= 1300000) {
|
| 77 |
+
chips = amount / 63000;
|
| 78 |
+
rateText = 'Wholesale rate: Rp63,000/chip';
|
| 79 |
+
} else if (amount >= 650000) {
|
| 80 |
+
chips = amount / 64500;
|
| 81 |
+
rateText = 'Wholesale rate: Rp64,500/chip';
|
| 82 |
+
} else if (amount >= 65000) {
|
| 83 |
+
chips = amount / 65000;
|
| 84 |
+
rateText = 'Wholesale rate: Rp65,000/chip';
|
| 85 |
+
} else {
|
| 86 |
+
// Fractional calculation
|
| 87 |
+
if (amount >= 10000) {
|
| 88 |
+
chips = amount * 0.000012; // Example fractional rate
|
| 89 |
+
rateText = 'Fractional chip rate applied';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
}
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
document.getElementById('chipResult').textContent = chips.toFixed(2);
|
| 94 |
+
document.getElementById('rateInfo').textContent = rateText;
|
| 95 |
});
|
| 96 |
</script>
|
| 97 |
</body>
|
customer_topup.html
CHANGED
|
@@ -3,95 +3,69 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>ChipFlow Commander -
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
| 9 |
</head>
|
| 10 |
<body class="bg-gray-100">
|
| 11 |
<div class="container py-8">
|
| 12 |
<div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6">
|
| 13 |
<div class="text-center mb-6">
|
| 14 |
-
<h1 class="text-2xl font-bold text-gray-800">
|
| 15 |
-
<p class="text-gray-600">
|
| 16 |
</div>
|
| 17 |
|
| 18 |
-
<form id="
|
| 19 |
<div class="mb-4">
|
| 20 |
<label class="block text-gray-700 mb-2">Game ID</label>
|
| 21 |
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Enter your game ID" required>
|
| 22 |
</div>
|
| 23 |
|
| 24 |
<div class="mb-4">
|
| 25 |
-
<label class="block text-gray-700 mb-2">
|
| 26 |
-
<input type="
|
|
|
|
| 27 |
</div>
|
| 28 |
|
| 29 |
<div class="mb-4">
|
| 30 |
-
<label class="block text-gray-700 mb-2">
|
| 31 |
-
<input type="
|
| 32 |
</div>
|
| 33 |
|
| 34 |
<div class="mb-4">
|
| 35 |
-
<label class="block text-gray-700 mb-2">
|
| 36 |
-
<input type="
|
| 37 |
-
<p class="text-xs text-gray-500 mt-1">Minimum Rp10,000</p>
|
| 38 |
</div>
|
| 39 |
|
| 40 |
-
<div class="mb-
|
| 41 |
-
<label class="block text-gray-700 mb-2">
|
| 42 |
-
<
|
| 43 |
-
<option value="">Select payment</option>
|
| 44 |
-
<option>Bank Transfer</option>
|
| 45 |
-
<option>QRIS</option>
|
| 46 |
-
<option>E-Wallet</option>
|
| 47 |
-
</select>
|
| 48 |
</div>
|
| 49 |
|
| 50 |
-
<div class="bg-
|
| 51 |
-
<h3 class="text-lg font-semibold text-
|
| 52 |
<div class="flex justify-between items-center">
|
| 53 |
-
<span class="text-gray-700">
|
| 54 |
-
<span id="
|
| 55 |
</div>
|
| 56 |
-
<div class="text-xs text-gray-500 mt-2"
|
| 57 |
</div>
|
| 58 |
|
| 59 |
-
<button type="submit" class="w-full bg-
|
| 60 |
-
|
| 61 |
</button>
|
| 62 |
</form>
|
| 63 |
|
| 64 |
<div class="mt-6 text-center text-sm text-gray-500">
|
| 65 |
-
<p>
|
| 66 |
</div>
|
| 67 |
</div>
|
| 68 |
</div>
|
| 69 |
|
| 70 |
<script>
|
| 71 |
-
document.getElementById('
|
| 72 |
-
const
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
if (amount >= 1300000) {
|
| 77 |
-
chips = amount / 63000;
|
| 78 |
-
rateText = 'Wholesale rate: Rp63,000/chip';
|
| 79 |
-
} else if (amount >= 650000) {
|
| 80 |
-
chips = amount / 64500;
|
| 81 |
-
rateText = 'Wholesale rate: Rp64,500/chip';
|
| 82 |
-
} else if (amount >= 65000) {
|
| 83 |
-
chips = amount / 65000;
|
| 84 |
-
rateText = 'Wholesale rate: Rp65,000/chip';
|
| 85 |
-
} else {
|
| 86 |
-
// Fractional calculation
|
| 87 |
-
if (amount >= 10000) {
|
| 88 |
-
chips = amount * 0.000012; // Example fractional rate
|
| 89 |
-
rateText = 'Fractional chip rate applied';
|
| 90 |
-
}
|
| 91 |
-
}
|
| 92 |
-
|
| 93 |
-
document.getElementById('chipResult').textContent = chips.toFixed(2);
|
| 94 |
-
document.getElementById('rateInfo').textContent = rateText;
|
| 95 |
});
|
| 96 |
</script>
|
| 97 |
</body>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>ChipFlow Commander - Withdraw</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
| 8 |
</head>
|
| 9 |
<body class="bg-gray-100">
|
| 10 |
<div class="container py-8">
|
| 11 |
<div class="max-w-md mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6">
|
| 12 |
<div class="text-center mb-6">
|
| 13 |
+
<h1 class="text-2xl font-bold text-gray-800">π§ Chip Withdrawal</h1>
|
| 14 |
+
<p class="text-gray-600">Convert your chips to real money</p>
|
| 15 |
</div>
|
| 16 |
|
| 17 |
+
<form id="withdrawForm">
|
| 18 |
<div class="mb-4">
|
| 19 |
<label class="block text-gray-700 mb-2">Game ID</label>
|
| 20 |
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Enter your game ID" required>
|
| 21 |
</div>
|
| 22 |
|
| 23 |
<div class="mb-4">
|
| 24 |
+
<label class="block text-gray-700 mb-2">Chip Amount</label>
|
| 25 |
+
<input type="number" id="chipInput" class="w-full px-3 py-2 border rounded-lg" placeholder="Enter chip amount" min="100" required>
|
| 26 |
+
<p class="text-xs text-gray-500 mt-1">Minimum 100 chips</p>
|
| 27 |
</div>
|
| 28 |
|
| 29 |
<div class="mb-4">
|
| 30 |
+
<label class="block text-gray-700 mb-2">Bank Account</label>
|
| 31 |
+
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Account number" required>
|
| 32 |
</div>
|
| 33 |
|
| 34 |
<div class="mb-4">
|
| 35 |
+
<label class="block text-gray-700 mb-2">Bank Name</label>
|
| 36 |
+
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Bank name" required>
|
|
|
|
| 37 |
</div>
|
| 38 |
|
| 39 |
+
<div class="mb-4">
|
| 40 |
+
<label class="block text-gray-700 mb-2">Account Holder Name</label>
|
| 41 |
+
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Name on bank account" required>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
</div>
|
| 43 |
|
| 44 |
+
<div class="bg-green-50 p-4 rounded-lg mb-6">
|
| 45 |
+
<h3 class="text-lg font-semibold text-green-800 mb-2">You will receive:</h3>
|
| 46 |
<div class="flex justify-between items-center">
|
| 47 |
+
<span class="text-gray-700">Amount (Rp):</span>
|
| 48 |
+
<span id="cashResult" class="text-2xl font-bold text-green-600">0</span>
|
| 49 |
</div>
|
| 50 |
+
<div class="text-xs text-gray-500 mt-2">Rate: Rp65,000 per chip</div>
|
| 51 |
</div>
|
| 52 |
|
| 53 |
+
<button type="submit" class="w-full bg-green-600 hover:bg-green-700 text-white py-3 px-4 rounded-lg font-bold transition">
|
| 54 |
+
Request Withdrawal
|
| 55 |
</button>
|
| 56 |
</form>
|
| 57 |
|
| 58 |
<div class="mt-6 text-center text-sm text-gray-500">
|
| 59 |
+
<p>Processing time: 1-3 business days</p>
|
| 60 |
</div>
|
| 61 |
</div>
|
| 62 |
</div>
|
| 63 |
|
| 64 |
<script>
|
| 65 |
+
document.getElementById('chipInput').addEventListener('input', function() {
|
| 66 |
+
const chips = parseInt(this.value) || 0;
|
| 67 |
+
const cash = chips * 65000;
|
| 68 |
+
document.getElementById('cashResult').textContent = cash.toLocaleString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
});
|
| 70 |
</script>
|
| 71 |
</body>
|
withdraw.html
CHANGED
|
@@ -1,72 +1,32 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html
|
| 3 |
-
<head>
|
| 4 |
-
<
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
-
</head>
|
| 9 |
-
<body class="bg-
|
| 10 |
-
<div class="
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
<div class="mb-4">
|
| 30 |
-
<label class="block text-gray-700 mb-2">Bank Account</label>
|
| 31 |
-
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Account number" required>
|
| 32 |
-
</div>
|
| 33 |
-
|
| 34 |
-
<div class="mb-4">
|
| 35 |
-
<label class="block text-gray-700 mb-2">Bank Name</label>
|
| 36 |
-
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Bank name" required>
|
| 37 |
-
</div>
|
| 38 |
-
|
| 39 |
-
<div class="mb-4">
|
| 40 |
-
<label class="block text-gray-700 mb-2">Account Holder Name</label>
|
| 41 |
-
<input type="text" class="w-full px-3 py-2 border rounded-lg" placeholder="Name on bank account" required>
|
| 42 |
-
</div>
|
| 43 |
-
|
| 44 |
-
<div class="bg-green-50 p-4 rounded-lg mb-6">
|
| 45 |
-
<h3 class="text-lg font-semibold text-green-800 mb-2">You will receive:</h3>
|
| 46 |
-
<div class="flex justify-between items-center">
|
| 47 |
-
<span class="text-gray-700">Amount (Rp):</span>
|
| 48 |
-
<span id="cashResult" class="text-2xl font-bold text-green-600">0</span>
|
| 49 |
-
</div>
|
| 50 |
-
<div class="text-xs text-gray-500 mt-2">Rate: Rp65,000 per chip</div>
|
| 51 |
-
</div>
|
| 52 |
-
|
| 53 |
-
<button type="submit" class="w-full bg-green-600 hover:bg-green-700 text-white py-3 px-4 rounded-lg font-bold transition">
|
| 54 |
-
Request Withdrawal
|
| 55 |
-
</button>
|
| 56 |
-
</form>
|
| 57 |
-
|
| 58 |
-
<div class="mt-6 text-center text-sm text-gray-500">
|
| 59 |
-
<p>Processing time: 1-3 business days</p>
|
| 60 |
-
</div>
|
| 61 |
-
</div>
|
| 62 |
</div>
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
const chips = parseInt(this.value) || 0;
|
| 67 |
-
const cash = chips * 65000;
|
| 68 |
-
document.getElementById('cashResult').textContent = cash.toLocaleString();
|
| 69 |
-
});
|
| 70 |
-
</script>
|
| 71 |
-
</body>
|
| 72 |
-
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>My app</title>
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<meta charset="utf-8">
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
</head>
|
| 9 |
+
<body class="flex justify-center items-center h-screen overflow-hidden bg-white font-sans text-center px-6">
|
| 10 |
+
<div class="w-full max-w-md mx-auto bg-white rounded-xl shadow-md p-8">
|
| 11 |
+
<h1 class="text-3xl font-bold text-center text-gray-800 mb-6">ChipFlow Commander</h1>
|
| 12 |
+
|
| 13 |
+
<div class="space-y-4">
|
| 14 |
+
<a href="/customer_topup.html" class="block w-full bg-blue-600 hover:bg-blue-700 text-white text-center py-3 px-6 rounded-lg font-bold transition">
|
| 15 |
+
π° Top Up Chips
|
| 16 |
+
</a>
|
| 17 |
+
<a href="/withdraw.html" class="block w-full bg-green-600 hover:bg-green-700 text-white text-center py-3 px-6 rounded-lg font-bold transition">
|
| 18 |
+
π§ Withdraw Chips
|
| 19 |
+
</a>
|
| 20 |
+
<a href="/transactions.html" class="block w-full bg-purple-600 hover:bg-purple-700 text-white text-center py-3 px-6 rounded-lg font-bold transition">
|
| 21 |
+
π Check Transaction
|
| 22 |
+
</a>
|
| 23 |
+
<div class="pt-4 border-t border-gray-200">
|
| 24 |
+
<a href="/admin_login.html" class="block w-full bg-gray-800 hover:bg-gray-900 text-white text-center py-3 px-6 rounded-lg font-bold transition">
|
| 25 |
+
π Admin Login
|
| 26 |
+
</a>
|
| 27 |
+
</div>
|
| 28 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
</div>
|
| 30 |
+
<script></script>
|
| 31 |
+
</body>
|
| 32 |
+
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|