undefined / dashboard.html
Amadian10Bah's picture
Crée une application web complète de gestion commerciale multitenant, moderne et sécurisée.
1742047 verified
Raw
History Blame Contribute Delete
12.6 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard | Djishop Business Cloud</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
500: '#3b82f6',
}
}
}
}
}
</script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body class="bg-gray-50 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-white w-64 border-r border-gray-200 flex flex-col fixed h-full z-40">
<div class="p-4 border-b border-gray-200 flex items-center">
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold">D</div>
<h1 class="ml-2 font-bold text-lg">Djishop Business</h1>
</div>
<div class="p-4">
<div class="flex items-center mb-6">
<div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center">
<i data-feather="user"></i>
</div>
<div class="ml-3">
<p class="font-medium">Admin User</p>
<p class="text-xs text-gray-500">Acme Inc</p>
</div>
</div>
<nav class="space-y-1">
<a href="dashboard.html" class="flex items-center px-3 py-2 bg-blue-50 text-blue-700 rounded-md">
<i data-feather="home" class="w-5 h-5"></i>
<span class="ml-3">Dashboard</span>
</a>
<a href="products.html" class="flex items-center px-3 py-2 text-gray-600 hover:bg-gray-100 rounded-md">
<i data-feather="package" class="w-5 h-5"></i>
<span class="ml-3">Products</span>
</a>
<a href="customers.html" class="flex items-center px-3 py-2 text-gray-600 hover:bg-gray-100 rounded-md">
<i data-feather="users" class="w-5 h-5"></i>
<span class="ml-3">Customers</span>
</a>
<a href="sales.html" class="flex items-center px-3 py-2 text-gray-600 hover:bg-gray-100 rounded-md">
<i data-feather="dollar-sign" class="w-5 h-5"></i>
<span class="ml-3">Sales</span>
</a>
<a href="invoices.html" class="flex items-center px-3 py-2 text-gray-600 hover:bg-gray-100 rounded-md">
<i data-feather="file-text" class="w-5 h-5"></i>
<span class="ml-3">Invoices</span>
</a>
<a href="suppliers.html" class="flex items-center px-3 py-2 text-gray-600 hover:bg-gray-100 rounded-md">
<i data-feather="truck" class="w-5 h-5"></i>
<span class="ml-3">Suppliers</span>
</a>
<a href="inventory.html" class="flex items-center px-3 py-2 text-gray-600 hover:bg-gray-100 rounded-md">
<i data-feather="box" class="w-5 h-5"></i>
<span class="ml-3">Inventory</span>
</a>
<a href="reports.html" class="flex items-center px-3 py-2 text-gray-600 hover:bg-gray-100 rounded-md">
<i data-feather="pie-chart" class="w-5 h-5"></i>
<span class="ml-3">Reports</span>
</a>
</nav>
</div>
<div class="mt-auto p-4 border-t border-gray-200">
<a href="settings.html" class="flex items-center px-3 py-2 text-gray-600 hover:bg-gray-100 rounded-md">
<i data-feather="settings" class="w-5 h-5"></i>
<span class="ml-3">Settings</span>
</a>
<a href="login.html" class="flex items-center px-3 py-2 text-gray-600 hover:bg-gray-100 rounded-md">
<i data-feather="log-out" class="w-5 h-5"></i>
<span class="ml-3">Sign Out</span>
</a>
</div>
</div>
<!-- Main content -->
<div class="flex-1 overflow-auto md:ml-64">
<header class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8 flex justify-between items-center">
<h1 class="text-lg font-semibold text-gray-900">Dashboard</h1>
<div class="flex items-center space-x-4">
<button class="p-2 rounded-full hover:bg-gray-100">
<i data-feather="bell"></i>
</button>
<button class="p-2 rounded-full hover:bg-gray-100">
<i data-feather="help-circle"></i>
</button>
</div>
</div>
</header>
<main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white p-6 rounded-lg shadow border-l-4 border-blue-500">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Monthly Revenue</p>
<p class="text-2xl font-semibold">$24,780</p>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="dollar-sign"></i>
</div>
</div>
<p class="mt-2 text-sm text-green-500">+12% from last month</p>
</div>
<div class="bg-white p-6 rounded-lg shadow border-l-4 border-green-500">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">New Customers</p>
<p class="text-2xl font-semibold">86</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="users"></i>
</div>
</div>
<p class="mt-2 text-sm text-green-500">+15% from last month</p>
</div>
<div class="bg-white p-6 rounded-lg shadow border-l-4 border-purple-500">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Pending Orders</p>
<p class="text-2xl font-semibold">24</p>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i data-feather="shopping-cart"></i>
</div>
</div>
<p class="mt-2 text-sm text-yellow-500">Waiting for processing</p>
</div>
<div class="bg-white p-6 rounded-lg shadow border-l-4 border-red-500">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Low Stock</p>
<p class="text-2xl font-semibold">12</p>
</div>
<div class="p-3 rounded-full bg-red-100 text-red-600">
<i data-feather="alert-circle"></i>
</div>
</div>
<p class="mt-2 text-sm text-red-500">Attention needed</p>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<div class="bg-white p-6 rounded-lg shadow">
<h2 class="text-lg font-semibold mb-4">Revenue Overview</h2>
<canvas id="revenueChart" height="250"></canvas>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<h2 class="text-lg font-semibold mb-4">Top Selling Products</h2>
<canvas id="productsChart" height="250"></canvas>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold">Recent Activity</h2>
<button class="text-sm text-blue-600 hover:text-blue-700">View All</button>
</div>
<div class="space-y-4">
<div class="flex items-start">
<div class="p-2 rounded-full bg-green-100 text-green-600 mr-3">
<i data-feather="dollar-sign" class="w-4 h-4"></i>
</div>
<div>
<p class="text-sm font-medium">New sale #INV-2023-1256</p>
<p class="text-xs text-gray-500">John Doe purchased 3 items</p>
<p class="text-xs text-gray-400">2 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-blue-100 text-blue-600 mr-3">
<i data-feather="user-plus" class="w-4 h-4"></i>
</div>
<div>
<p class="text-sm font-medium">New customer added</p>
<p class="text-xs text-gray-500">Sarah Johnson registered</p>
<p class="text-xs text-gray-400">5 hours ago</p>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
// Revenue Chart
const revenueCtx = document.getElementById('revenueChart').getContext('2d');
new Chart(revenueCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
datasets: [{
label: 'Revenue',
data: [3500, 4200, 3800, 5100, 4900, 6200, 7500],
backgroundColor: 'rgba(59, 130, 246, 0.1)',
borderColor: '#3b82f6',
borderWidth: 2,
tension: 0.3
}]
}
});
// Products Chart
const productsCtx = document.getElementById('productsChart').getContext('2d');
new Chart(productsCtx, {
type: 'bar',
data: {
labels: ['Wireless Headphones', 'Smart Watch', 'Bluetooth Speaker', 'USB Cable', 'Power Bank'],
datasets: [{
label: 'Sales',
data: [120, 90, 75, 60, 45],
backgroundColor: '#3b82f6'
}]
}
});
});
</script>
</body>
</html>