File size: 20,546 Bytes
cc9967f | 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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 | ```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Commands - TransferFlow Pro</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#3B82F6',
secondary: '#10B981',
accent: '#8B5CF6',
dark: '#1F2937',
light: '#F9FAFB'
}
}
}
}
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
.sidebar {
transition: all 0.3s ease;
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
}
</style>
</head>
<body class="bg-gray-100">
<div class="flex h-screen">
<!-- Sidebar -->
<div class="sidebar bg-white w-64 space-y-6 py-7 px-2 absolute inset-y-0 left-0 transform -translate-x-full md:relative md:translate-x-0 transition duration-200 ease-in-out z-30">
<div class="flex items-center space-x-2 px-4">
<i data-feather="send" class="text-primary h-8 w-8"></i>
<span class="text-2xl font-extrabold text-dark">TransferFlow</span>
</div>
<nav>
<a href="dashboard.html" class="block py-2.5 px-4 rounded transition duration-200 hover:bg-gray-100 text-gray-600">
<i data-feather="home" class="inline-block w-5 h-5 mr-2"></i>
Dashboard
</a>
<a href="commands.html" class="block py-2.5 px-4 rounded transition duration-200 bg-primary text-white">
<i data-feather="list" class="inline-block w-5 h-5 mr-2"></i>
Commands
</a>
<a href="devices.html" class="block py-2.5 px-4 rounded transition duration-200 hover:bg-gray-100 text-gray-600">
<i data-feather="smartphone" class="inline-block w-5 h-5 mr-2"></i>
Devices
</a>
<a href="analytics.html" class="block py-2.5 px-4 rounded transition duration-200 hover:bg-gray-100 text-gray-600">
<i data-feather="bar-chart-2" class="inline-block w-5 h-5 mr-2"></i>
Analytics
</a>
<a href="users.html" class="block py-2.5 px-4 rounded transition duration-200 hover:bg-gray-100 text-gray-600">
<i data-feather="users" class="inline-block w-5 h-5 mr-2"></i>
Users
</a>
<a href="settings.html" class="block py-2.5 px-4 rounded transition duration-200 hover:bg-gray-100 text-gray-600">
<i data-feather="settings" class="inline-block w-5 h-5 mr-2"></i>
Settings
</a>
</nav>
</div>
<!-- Main content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Header -->
<header class="flex items-center justify-between px-6 py-4 bg-white border-b">
<div class="flex items-center">
<button class="text-gray-500 focus:outline-none lg:hidden" id="menu-toggle">
<i data-feather="menu" class="h-6 w-6"></i>
</button>
<div class="ml-4">
<h1 class="text-xl font-semibold text-gray-800">Command Management</h1>
</div>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="text-gray-500 focus:outline-none">
<i data-feather="bell" class="h-6 w-6"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
</div>
<div class="relative">
<button class="flex items-center text-sm focus:outline-none">
<div class="h-8 w-8 rounded-full bg-primary flex items-center justify-center text-white font-semibold">S</div>
<span class="ml-2 text-gray-700">stidjani@proconsulting-info.com</span>
<i data-feather="chevron-down" class="ml-1 h-4 w-4 text-gray-500"></i>
</button>
</div>
</div>
</header>
<!-- Main content area -->
<main class="flex-1 overflow-x-hidden overflow-y-auto bg-gray-100 p-6">
<!-- Action Bar -->
<div class="mb-6 flex flex-col sm:flex-row justify-between items-start sm:items-center space-y-4 sm:space-y-0">
<div>
<h2 class="text-2xl font-semibold text-gray-800">Commands</h2>
<p class="text-gray-600">Manage and monitor all transfer commands</p>
</div>
<div class="flex space-x-3">
<!-- Filter Dropdown -->
<select class="border rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary bg-white">
<option>All Status</option>
<option>Pending</option>
<option>Dispatched</option>
<option>In Progress</option>
<option>Completed</option>
<option>Failed</option>
</select>
<!-- Date Filter -->
<div class="flex space-x-2">
<input type="date" class="border rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary">
<input type="date" class="border rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary">
</div>
<!-- Create Command Button -->
<button class="bg-primary text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-primary flex items-center">
<i data-feather="plus" class="h-4 w-4 mr-2"></i>
New Command
</button>
</div>
</div>
<!-- Commands Table -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Beneficiary</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Phone</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Created</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<!-- Command Row 1 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CMD-001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
Transfer
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">John Doe</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$150.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">+1234567890</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
Completed
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-12-01 14:30</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-primary hover:text-blue-700 mr-3">
<i data-feather="eye" class="h-4 w-4"></i>
</button>
<button class="text-yellow-600 hover:text-yellow-800 mr-3">
<i data-feather="edit" class="h-4 w-4"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i data-feather="trash-2" class="h-4 w-4"></i>
</button>
</td>
</tr>
<!-- Command Row 2 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CMD-002</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 text-purple-800">
Bill Payment
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Electricity Company</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$75.50</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">+1234567891</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">
In Progress
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-12-01 14:25</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-primary hover:text-blue-700 mr-3">
<i data-feather="eye" class="h-4 w-4"></i>
</button>
<button class="text-yellow-600 hover:text-yellow-800 mr-3">
<i data-feather="edit" class="h-4 w-4"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i data-feather="trash-2" class="h-4 w-4"></i>
</button>
</td>
</tr>
<!-- Command Row 3 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CMD-003</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
Deposit
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Jane Smith</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$200.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">+1234567892</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800">
Pending
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-12-01 14:20</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-primary hover:text-blue-700 mr-3">
<i data-feather="eye" class="h-4 w-4"></i>
</button>
<button class="text-yellow-600 hover:text-yellow-800 mr-3">
<i data-feather="edit" class="h-4 w-4"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i data-feather="trash-2" class="h-4 w-4"></i>
</button>
</td>
</tr>
<!-- Command Row 4 -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">CMD-004</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">
Transfer
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Bob Johnson</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$300.00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">+1234567893</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">
Failed
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-12-01 14:15</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-primary hover:text-blue-700 mr-3">
<i data-feather="eye" class="h-4 w-4"></i>
</button>
<button class="text-yellow-600 hover:text-yellow-800 mr-3">
<i data-feather="edit" class="h-4 w-4"></i>
</button>
<button class="text-red-600 hover:text-red-800">
<i data-feather="trash-2" class="h-4 w-4"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Pagination -->
<div class="bg-white px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
<div class="flex-1 flex justify-between items-center">
<div>
<p class="text-sm text-gray-700">
Showing
<span class="font-medium">1</span>
to
<span class="font-medium">4</span>
of
<span class="font-medium">12</span>
results
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Previous</span>
<i data-feather="chevron-left" class="h-4 w-4"></i>
</a>
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50">1</a>
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50">2</a>
<a href="#" class="relative inline-flex items |