File size: 11,064 Bytes
5d03453 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard | ByteBilling Blaster</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body class="bg-gray-100">
<div class="flex h-screen">
<!-- Sidebar -->
<div class="w-64 bg-gray-800 text-white">
<div class="p-6">
<h1 class="text-2xl font-bold">ByteBilling Blaster</h1>
</div>
<nav class="mt-8">
<ul class="space-y-2 px-4">
<li>
<a href="index.html" class="flex items-center px-4 py-3 rounded-lg hover:bg-gray-700">
<i data-feather="home" class="w-5 h-5 mr-3"></i>
<span>Home</span>
</a>
</li>
<li>
<a href="dashboard.html" class="flex items-center px-4 py-3 rounded-lg bg-gray-700">
<i data-feather="activity" class="w-5 h-5 mr-3"></i>
<span>Dashboard</span>
</a>
</li>
<li>
<a href="#" class="flex items-center px-4 py-3 rounded-lg hover:bg-gray-700">
<i data-feather="users" class="w-5 h-5 mr-3"></i>
<span>Customers</span>
</a>
</li>
<li>
<a href="#" class="flex items-center px-4 py-3 rounded-lg hover:bg-gray-700">
<i data-feather="credit-card" class="w-5 h-5 mr-3"></i>
<span>Subscriptions</span>
</a>
</li>
<li>
<a href="#" class="flex items-center px-4 py-3 rounded-lg hover:bg-gray-700">
<i data-feather="file-text" class="w-5 h-5 mr-3"></i>
<span>Invoices</span>
</a>
</li>
<li>
<a href="#" class="flex items-center px-4 py-3 rounded-lg hover:bg-gray-700">
<i data-feather="settings" class="w-5 h-5 mr-3"></i>
<span>Settings</span>
</a>
</li>
</ul>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<header class="bg-white shadow-sm p-4">
<div class="flex justify-between items-center">
<h2 class="text-xl font-semibold">Dashboard</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
<i data-feather="search" class="absolute left-3 top-2.5 w-5 h-5 text-gray-400"></i>
</div>
<div class="flex items-center">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-8 h-8 rounded-full mr-2">
<span class="font-medium">Admin</span>
</div>
</div>
</div>
</header>
<main class="p-6">
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Monthly Recurring Revenue</p>
<h3 class="text-3xl font-bold mt-2">$24,589</h3>
<p class="text-green-500 flex items-center mt-2">
<i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
<span>12.5% from last month</span>
</p>
</div>
<div class="bg-blue-100 p-3 rounded-lg">
<i data-feather="dollar-sign" class="w-6 h-6 text-blue-600"></i>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Active Customers</p>
<h3 class="text-3xl font-bold mt-2">1,246</h3>
<p class="text-green-500 flex items-center mt-2">
<i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
<span>8.3% from last month</span>
</p>
</div>
<div class="bg-green-100 p-3 rounded-lg">
<i data-feather="users" class="w-6 h-6 text-green-600"></i>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500">Churn Rate</p>
<h3 class="text-3xl font-bold mt-2">2.1%</h3>
<p class="text-red-500 flex items-center mt-2">
<i data-feather="trending-down" class="w-4 h-4 mr-1"></i>
<span>0.4% from last month</span>
</p>
</div>
<div class="bg-red-100 p-3 rounded-lg">
<i data-feather="arrow-down-right" class="w-6 h-6 text-red-600"></i>
</div>
</div>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
<div class="bg-white p-6 rounded-lg shadow lg:col-span-2">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Revenue Overview</h3>
<select class="border rounded-lg px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>Last 7 days</option>
<option selected>Last 30 days</option>
<option>Last 90 days</option>
<option>Last year</option>
</select>
</div>
<div class="h-64">
<canvas id="revenueChart"></canvas>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<h3 class="text-lg font-semibold mb-4">Recent Transactions</h3>
<div class="space-y-4">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="bg-blue-100 p-2 rounded-lg mr-3">
<i data-feather="credit-card" class="w-4 h-4 text-blue-600"></i>
</div>
<div>
<p class="font-medium">Acme Corp</p>
<p class="text-gray-500 text-sm">Subscription renewal</p>
</div>
</div>
<span class="font-medium">$499.00</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="bg-green-100 p-2 rounded-lg mr-3">
<i data-feather="user-plus" class="w-4 h-4 text-green-600"></i>
</div>
<div>
<p class="font-medium">Beta LLC</p>
<p class="text-gray-500 text-sm">New customer</p>
</div>
</div>
<span class="font-medium">$199.00</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="bg-purple-100 p-2 rounded-lg mr-3">
<i data-feather="refresh-cw" class="w-4 h-4 text-purple-600"></i>
</div>
<div>
<p class="font-medium">Gamma Inc</p>
<p class="text-gray-500 text-sm">Plan upgrade</p>
</div>
</div>
<span class="font-medium">+$150.00</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="bg-yellow-100 p-2 rounded-lg mr-3">
<i data-feather="alert-circle" class="w-4 h-4 text-yellow-600"></i>
</div>
<div>
<p class="font-medium">Delta Co</p>
<p class="text-gray-500 text-sm">Failed payment</p>
</div>
</div>
<span class="font-medium text-red-500">-$99.00</span>
</div>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow mb-8">
<h3 class="text-lg font-semibold mb-4">Customer Growth</h3>
<div class="h-64">
<canvas id="customersChart"></canvas>
</div>
</div>
</main>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
// Revenue Chart
const revenueCtx = document.getElementById('revenueChart').getContext('2d');
const revenueChart = new Chart(revenueCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'MRR',
data: [12000, 15000, 17000, 18500, 19500, 21000, 22500, 23000, 23500, 24000, 24500, 25000],
borderColor: '#3B82F6',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
borderWidth: 2,
fill: true,
tension: 0.3
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: false,
grid: {
drawBorder: false
}
},
x: {
grid: {
display: false
}
}
}
}
});
// Customers Chart
const customersCtx = document.getElementById('customersChart').getContext('2d');
const customersChart = new Chart(customersCtx, {
type: 'bar',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'New Customers',
data: [45, 60, 75, 90, 110, 130, 145, 160, 175, 190, 210, 230],
backgroundColor: '#10B981',
borderRadius: 4
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
grid: {
drawBorder: false
}
},
x: {
grid: {
display: false
}
}
}
}
});
});
</script>
</body>
</html> |