lunchbox-commander-pro / admin /dashboard.html
sktechnology's picture
Build a full CRM web application for Home-Based Lunch Delivery Order Management using Laravel or Next.js.
6bdd29e verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard | LunchBox Commander</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="../style.css">
</head>
<body>
<admin-navbar></admin-navbar>
<div class="container mx-auto p-4">
<h1 class="text-2xl font-bold mb-6">Dashboard Overview</h1>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8">
<div class="bg-white p-6 rounded-lg shadow">
<h3 class="text-gray-500">Total Orders</h3>
<p class="text-3xl font-bold">142</p>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<h3 class="text-gray-500">Pending Orders</h3>
<p class="text-3xl font-bold text-yellow-500">23</p>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<h3 class="text-gray-500">Completed Orders</h3>
<p class="text-3xl font-bold text-green-500">119</p>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<h3 class="text-gray-500">Monthly Profit</h3>
<p class="text-3xl font-bold text-indigo-500">₹42,850</p>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow mb-8">
<h2 class="text-xl font-bold mb-4">Monthly Progress</h2>
<div class="h-64" id="chart"></div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<div class="bg-white p-6 rounded-lg shadow">
<h2 class="text-xl font-bold mb-4">Recent Orders</h2>
<order-card
id="142"
customer="Rahul Sharma"
items="2x Veg Thali, 1x Chicken Biryani"
total="450"
date="Today, 12:45 PM"
status="progress">
</order-card>
<order-card
id="141"
customer="Priya Patel"
items="3x Jain Thali"
total="600"
date="Today, 12:30 PM"
status="delivered">
</order-card>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<h2 class="text-xl font-bold mb-4">Quick Actions</h2>
<div class="grid grid-cols-2 gap-4">
<a href="../admin/orders.html" class="p-4 bg-indigo-100 text-indigo-800 rounded-lg text-center hover:bg-indigo-200 transition">
<i class="fas fa-list-alt text-2xl mb-2"></i>
<div>Manage Orders</div>
</a>
<a href="../admin/products.html" class="p-4 bg-green-100 text-green-800 rounded-lg text-center hover:bg-green-200 transition">
<i class="fas fa-utensils text-2xl mb-2"></i>
<div>Manage Menu</div>
</a>
<a href="../admin/reports.html" class="p-4 bg-purple-100 text-purple-800 rounded-lg text-center hover:bg-purple-200 transition">
<i class="fas fa-chart-pie text-2xl mb-2"></i>
<div>View Reports</div>
</a>
<a href="../admin/settings.html" class="p-4 bg-yellow-100 text-yellow-800 rounded-lg text-center hover:bg-yellow-200 transition">
<i class="fas fa-cog text-2xl mb-2"></i>
<div>Settings</div>
</a>
</div>
</div>
</div>
</div>
<script src="../components/admin-navbar.js"></script>
<script src="../components/order-card.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Chart initialization
const ctx = document.getElementById('chart').getContext('2d');
new Chart(ctx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Orders',
data: [120, 190, 170, 220, 210, 240],
borderColor: '#4f46e5',
tension: 0.1
}, {
label: 'Revenue (₹)',
data: [35000, 42000, 38000, 45000, 43000, 48000],
borderColor: '#10b981',
tension: 0.1
}]
},
options: {
responsive: true,
maintainAspectRatio: false
}
});
</script>
</body>
</html>