hotel / index.html
emeraj24's picture
Developing a **Hotel Management System** with the specified features involves backend development using PHP and MySQL, and frontend/user interface design for usability and real-time operations, particularly focusing on the **Kitchen Order Ticket (KOT)** functionality, table management, sales tracking, billing, and reporting.
1281522 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hotel Management System</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.table-card {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.table-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.kot-item {
border-left: 4px solid;
transition: background-color 0.2s ease;
}
.kot-item:hover {
background-color: #f8fafc;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-indigo-800 text-white w-64 flex-shrink-0">
<div class="p-4 flex items-center space-x-3 border-b border-indigo-700">
<div class="bg-white p-2 rounded-lg">
<i data-feather="home" class="text-indigo-800"></i>
</div>
<h1 class="text-xl font-bold">Hotel Manager</h1>
</div>
<nav class="p-4 space-y-2">
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg bg-indigo-700 text-white">
<i data-feather="grid"></i>
<span>Dashboard</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-700 text-indigo-100 hover:text-white">
<i data-feather="clipboard"></i>
<span>Orders</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-700 text-indigo-100 hover:text-white">
<i data-feather="users"></i>
<span>Tables</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-700 text-indigo-100 hover:text-white">
<i data-feather="book-open"></i>
<span>Menu</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-700 text-indigo-100 hover:text-white">
<i data-feather="dollar-sign"></i>
<span>Billing</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-700 text-indigo-100 hover:text-white">
<i data-feather="pie-chart"></i>
<span>Reports</span>
</a>
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-700 text-indigo-100 hover:text-white">
<i data-feather="settings"></i>
<span>Settings</span>
</a>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Header -->
<header class="bg-white shadow-sm p-4 flex justify-between items-center">
<h2 class="text-xl font-semibold text-gray-800">Dashboard Overview</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<i data-feather="bell" class="text-gray-500 hover:text-indigo-600 cursor-pointer"></i>
<span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
</div>
<div class="flex items-center space-x-2">
<img src="http://static.photos/people/40x40/1" alt="User" class="h-8 w-8 rounded-full">
<span class="text-sm font-medium">Admin</span>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Total Orders</p>
<h3 class="text-2xl font-bold">124</h3>
</div>
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
<i data-feather="shopping-cart"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2">↑ 12% from yesterday</p>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Active Tables</p>
<h3 class="text-2xl font-bold">8</h3>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="users"></i>
</div>
</div>
<p class="text-gray-500 text-sm mt-2">3 available</p>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Today's Revenue</p>
<h3 class="text-2xl font-bold">₹24,560</h3>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="dollar-sign"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2">↑ 8% from yesterday</p>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Kitchen Orders</p>
<h3 class="text-2xl font-bold">15</h3>
</div>
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
<i data-feather="clock"></i>
</div>
</div>
<p class="text-gray-500 text-sm mt-2">5 pending</p>
</div>
</div>
<!-- Tables and KOT Section -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Tables Section -->
<div class="lg:col-span-2">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-4 border-b flex justify-between items-center">
<h3 class="font-semibold text-lg">Table Status</h3>
<button class="bg-indigo-600 text-white px-4 py-2 rounded-md text-sm flex items-center space-x-2">
<i data-feather="plus" class="w-4 h-4"></i>
<span>Add Table</span>
</button>
</div>
<div class="p-4 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-4 gap-4">
<!-- Table Cards -->
<div class="table-card bg-white border rounded-lg p-4 text-center cursor-pointer" data-status="occupied">
<div class="h-16 w-16 mx-auto bg-red-100 rounded-full flex items-center justify-center mb-2">
<i data-feather="user" class="text-red-600"></i>
</div>
<h4 class="font-medium">Table 1</h4>
<p class="text-sm text-red-600">Occupied</p>
<p class="text-xs text-gray-500">₹1,250</p>
</div>
<div class="table-card bg-white border rounded-lg p-4 text-center cursor-pointer" data-status="reserved">
<div class="h-16 w-16 mx-auto bg-yellow-100 rounded-full flex items-center justify-center mb-2">
<i data-feather="clock" class="text-yellow-600"></i>
</div>
<h4 class="font-medium">Table 2</h4>
<p class="text-sm text-yellow-600">Reserved</p>
<p class="text-xs text-gray-500">4 seats</p>
</div>
<div class="table-card bg-white border rounded-lg p-4 text-center cursor-pointer" data-status="available">
<div class="h-16 w-16 mx-auto bg-green-100 rounded-full flex items-center justify-center mb-2">
<i data-feather="check" class="text-green-600"></i>
</div>
<h4 class="font-medium">Table 3</h4>
<p class="text-sm text-green-600">Available</p>
<p class="text-xs text-gray-500">2 seats</p>
</div>
<div class="table-card bg-white border rounded-lg p-4 text-center cursor-pointer" data-status="occupied">
<div class="h-16 w-16 mx-auto bg-red-100 rounded-full flex items-center justify-center mb-2">
<i data-feather="user" class="text-red-600"></i>
</div>
<h4 class="font-medium">Table 4</h4>
<p class="text-sm text-red-600">Occupied</p>
<p class="text-xs text-gray-500">₹2,340</p>
</div>
<div class="table-card bg-white border rounded-lg p-4 text-center cursor-pointer" data-status="available">
<div class="h-16 w-16 mx-auto bg-green-100 rounded-full flex items-center justify-center mb-2">
<i data-feather="check" class="text-green-600"></i>
</div>
<h4 class="font-medium">Table 5</h4>
<p class="text-sm text-green-600">Available</p>
<p class="text-xs text-gray-500">6 seats</p>
</div>
<div class="table-card bg-white border rounded-lg p-4 text-center cursor-pointer" data-status="occupied">
<div class="h-16 w-16 mx-auto bg-red-100 rounded-full flex items-center justify-center mb-2">
<i data-feather="user" class="text-red-600"></i>
</div>
<h4 class="font-medium">Table 6</h4>
<p class="text-sm text-red-600">Occupied</p>
<p class="text-xs text-gray-500">₹1,780</p>
</div>
<div class="table-card bg-white border rounded-lg p-4 text-center cursor-pointer" data-status="available">
<div class="h-16 w-16 mx-auto bg-green-100 rounded-full flex items-center justify-center mb-2">
<i data-feather="check" class="text-green-600"></i>
</div>
<h4 class="font-medium">Table 7</h4>
<p class="text-sm text-green-600">Available</p>
<p class="text-xs text-gray-500">4 seats</p>
</div>
<div class="table-card bg-white border rounded-lg p-4 text-center cursor-pointer" data-status="reserved">
<div class="h-16 w-16 mx-auto bg-yellow-100 rounded-full flex items-center justify-center mb-2">
<i data-feather="clock" class="text-yellow-600"></i>
</div>
<h4 class="font-medium">Table 8</h4>
<p class="text-sm text-yellow-600">Reserved</p>
<p class="text-xs text-gray-500">7:30 PM</p>
</div>
</div>
</div>
</div>
<!-- KOT Section -->
<div>
<div class="bg-white rounded-lg shadow overflow-hidden h-full">
<div class="p-4 border-b">
<h3 class="font-semibold text-lg">Kitchen Orders (KOT)</h3>
</div>
<div class="divide-y">
<!-- KOT Items -->
<div class="kot-item p-4 border-l-green-500">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Table 1</h4>
<p class="text-sm text-gray-500">Order #125</p>
</div>
<span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">Ready</span>
</div>
<div class="mt-2 space-y-1">
<div class="flex justify-between text-sm">
<span>2 × Butter Chicken</span>
<span class="text-gray-500">Note: Less spicy</span>
</div>
<div class="flex justify-between text-sm">
<span>3 × Garlic Naan</span>
<span></span>
</div>
</div>
<div class="mt-3 flex justify-end space-x-2">
<button class="text-xs px-2 py-1 bg-gray-100 rounded">Print</button>
<button class="text-xs px-2 py-1 bg-indigo-100 text-indigo-700 rounded">Served</button>
</div>
</div>
<div class="kot-item p-4 border-l-yellow-500">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Table 4</h4>
<p class="text-sm text-gray-500">Order #126</p>
</div>
<span class="px-2 py-1 bg-yellow-100 text-yellow-800 text-xs rounded-full">Preparing</span>
</div>
<div class="mt-2 space-y-1">
<div class="flex justify-between text-sm">
<span>1 × Veg Biryani</span>
<span class="text-gray-500">Note: Extra raita</span>
</div>
<div class="flex justify-between text-sm">
<span>2 × Coke</span>
<span></span>
</div>
</div>
<div class="mt-3 flex justify-end space-x-2">
<button class="text-xs px-2 py-1 bg-gray-100 rounded">Print</button>
<button class="text-xs px-2 py-1 bg-green-100 text-green-700 rounded">Ready</button>
</div>
</div>
<div class="kot-item p-4 border-l-red-500">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Table 6</h4>
<p class="text-sm text-gray-500">Order #127</p>
</div>
<span class="px-2 py-1 bg-red-100 text-red-800 text-xs rounded-full">Pending</span>
</div>
<div class="mt-2 space-y-1">
<div class="flex justify-between text-sm">
<span>1 × Paneer Tikka</span>
<span></span>
</div>
<div class="flex justify-between text-sm">
<span>1 × Dal Makhani</span>
<span class="text-gray-500">Note: No cream</span>
</div>
<div class="flex justify-between text-sm">
<span>2 × Roti</span>
<span></span>
</div>
</div>
<div class="mt-3 flex justify-end space-x-2">
<button class="text-xs px-2 py-1 bg-gray-100 rounded">Print</button>
<button class="text-xs px-2 py-1 bg-yellow-100 text-yellow-700 rounded">Start Prep</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Recent Orders Section -->
<div class="mt-8 bg-white rounded-lg shadow overflow-hidden">
<div class="p-4 border-b">
<h3 class="font-semibold text-lg">Recent Orders</h3>
</div>
<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">Order #</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Table</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Items</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">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#128</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Table 3</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 items</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₹450</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Completed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12:45 PM</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#127</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Table 6</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3 items</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₹780</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Preparing</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12:30 PM</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#126</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Table 4</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 items</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₹520</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Ready</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12:15 PM</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#125</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Table 1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 items</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₹1,250</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Served</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">11:45 AM</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</div>
</div>
<script>
AOS.init();
feather.replace();
// Simple interaction for table cards
document.querySelectorAll('.table-card').forEach(card => {
card.addEventListener('click', function() {
const status = this.getAttribute('data-status');
let tableNumber = this.querySelector('h4').textContent;
alert(`Opening ${tableNumber} details (Status: ${status})`);
});
});
</script>
</body>
</html>