| | <!DOCTYPE html> |
| | <html lang="en"> |
| | <head> |
| | <meta charset="UTF-8"> |
| | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | <title>Orders - Hotel Management</title> |
| | <script src="https://cdn.tailwindcss.com"></script> |
| | <script src="https://unpkg.com/feather-icons"></script> |
| | </head> |
| | <body class="bg-gray-50 font-sans"> |
| | <div class="flex h-screen overflow-hidden"> |
| | |
| | <div class="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="index.html" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-indigo-700 text-indigo-100 hover:text-white"> |
| | <i data-feather="grid"></i> |
| | <span>Dashboard</span> |
| | </a> |
| | <a href="orders.html" class="flex items-center space-x-3 p-3 rounded-lg bg-indigo-700 text-white"> |
| | <i data-feather="clipboard"></i> |
| | <span>Orders</span> |
| | </a> |
| | <a href="tables.html" 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="menu.html" 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="billing.html" 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="reports.html" 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> |
| | </nav> |
| | </div> |
| |
|
| | |
| | <div class="flex-1 overflow-auto"> |
| | |
| | <header class="bg-white shadow-sm p-4 flex justify-between items-center"> |
| | <h2 class="text-xl font-semibold text-gray-800">Order Management</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> |
| | </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> |
| |
|
| | |
| | <main class="p-6"> |
| | <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">Active Orders</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>New Order</span> |
| | </button> |
| | </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">Actions</th> |
| | </tr> |
| | </thead> |
| | <tbody class="bg-white divide-y divide-gray-200" id="ordersTable"> |
| | |
| | </tbody> |
| | </table> |
| | </div> |
| | </div> |
| | </main> |
| | </div> |
| | </div> |
| |
|
| | <script> |
| | feather.replace(); |
| | |
| | |
| | const orders = [ |
| | { id: 128, table: "Table 3", items: 2, amount: "₹450", status: "Completed" }, |
| | { id: 127, table: "Table 6", items: 3, amount: "₹780", status: "Preparing" }, |
| | { id: 126, table: "Table 4", items: 2, amount: "₹520", status: "Ready" }, |
| | { id: 125, table: "Table 1", items: 2, amount: "₹1,250", status: "Served" } |
| | ]; |
| | |
| | |
| | const ordersTable = document.getElementById('ordersTable'); |
| | orders.forEach(order => { |
| | const row = document.createElement('tr'); |
| | row.innerHTML = ` |
| | <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#${order.id}</td> |
| | <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${order.table}</td> |
| | <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${order.items} items</td> |
| | <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${order.amount}</td> |
| | <td class="px-6 py-4 whitespace-nowrap"> |
| | <span class="px-2 py-1 text-xs rounded-full ${ |
| | order.status === 'Completed' ? 'bg-green-100 text-green-800' : |
| | order.status === 'Preparing' ? 'bg-yellow-100 text-yellow-800' : |
| | order.status === 'Ready' ? 'bg-blue-100 text-blue-800' : 'bg-gray-100 text-gray-800' |
| | }">${order.status}</span> |
| | </td> |
| | <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> |
| | <button class="text-indigo-600 hover:text-indigo-900 mr-3">Edit</button> |
| | <button class="text-red-600 hover:text-red-900">Cancel</button> |
| | </td> |
| | `; |
| | ordersTable.appendChild(row); |
| | }); |
| | </script> |
| | </body> |
| | </html> |