bytebilling-blaster / dashboard.html
logeshragul21's picture
build on software billing
5d03453 verified
Raw History Blame Contribute Delete
11.1 kB
<!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>