Spaces:
Running
Running
File size: 15,572 Bytes
9076e9b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Orders | KitchenFlow Commander</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-50 min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<main class="flex-1 container mx-auto px-4 py-8">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
<h1 class="text-2xl font-bold text-gray-800 mb-4 md:mb-0">Order Management</h1>
<div class="flex flex-col sm:flex-row gap-3 w-full md:w-auto">
<div class="relative w-full sm:w-64">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i data-feather="search" class="text-gray-400"></i>
</div>
<input type="text" class="pl-10 w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500" placeholder="Search orders...">
</div>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md shadow-sm flex items-center justify-center gap-2 transition-colors">
<i data-feather="plus" class="w-4 h-4"></i>
<span>New Order</span>
</button>
</div>
</div>
<div class="bg-white rounded-xl shadow-sm overflow-hidden mb-6">
<div class="border-b border-gray-200">
<nav class="flex -mb-px">
<a href="#" class="whitespace-nowrap py-4 px-6 border-b-2 border-blue-500 font-medium text-sm text-blue-600">Active (24)</a>
<a href="#" class="whitespace-nowrap py-4 px-6 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">Completed</a>
<a href="#" class="whitespace-nowrap py-4 px-6 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">Cancelled</a>
<a href="#" class="whitespace-nowrap py-4 px-6 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300">All Orders</a>
</nav>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Order #</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Items</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time</th>
<th scope="col" 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">
<tr class="hover:bg-gray-50 transition-colors">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#1245</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">John Smith</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Preparing</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12:45 PM</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3"><i data-feather="eye" class="w-4 h-4 inline"></i></a>
<a href="#" class="text-green-600 hover:text-green-900"><i data-feather="check" class="w-4 h-4 inline"></i></a>
</td>
</tr>
<tr class="hover:bg-gray-50 transition-colors">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#1244</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarah Johnson</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12:30 PM</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3"><i data-feather="eye" class="w-4 h-4 inline"></i></a>
<a href="#" class="text-green-600 hover:text-green-900"><i data-feather="check" class="w-4 h-4 inline"></i></a>
</td>
</tr>
<tr class="hover:bg-gray-50 transition-colors">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#1243</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Table 7</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Ready</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12:15 PM</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-blue-600 hover:text-blue-900 mr-3"><i data-feather="eye" class="w-4 h-4 inline"></i></a>
<a href="#" class="text-green-600 hover:text-green-900"><i data-feather="check" class="w-4 h-4 inline"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="bg-gray-50 px-6 py-3 flex items-center justify-between border-t border-gray-200">
<div class="flex-1 flex justify-between sm:hidden">
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Previous</a>
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Next</a>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Showing <span class="font-medium">1</span> to <span class="font-medium">3</span> of <span class="font-medium">24</span> results
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Previous</span>
<i data-feather="chevron-left" class="h-4 w-4"></i>
</a>
<a href="#" aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a>
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Next</span>
<i data-feather="chevron-right" class="h-4 w-4"></i>
</a>
</nav>
</div>
</div>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-white p-6 rounded-xl shadow-sm">
<h3 class="text-lg font-medium text-gray-900 mb-4">Order Statistics</h3>
<div class="space-y-4">
<div>
<div class="flex justify-between mb-1">
<span class="text-sm font-medium text-gray-700">Pending</span>
<span class="text-sm text-gray-500">8 orders</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-yellow-500 h-2 rounded-full" style="width: 33%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm font-medium text-gray-700">Preparing</span>
<span class="text-sm text-gray-500">14 orders</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 58%"></div>
</div>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm font-medium text-gray-700">Ready</span>
<span class="text-sm text-gray-500">2 orders</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-blue-500 h-2 rounded-full" style="width: 8%"></div>
</div>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm">
<h3 class="text-lg font-medium text-gray-900 mb-4">Popular Items</h3>
<div class="space-y-3">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-10 h-10 bg-gray-100 rounded-lg mr-3"></div>
<div>
<p class="text-sm font-medium text-gray-900">Margherita Pizza</p>
<p class="text-xs text-gray-500">12 orders</p>
</div>
</div>
<span class="text-sm text-gray-700">35%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-10 h-10 bg-gray-100 rounded-lg mr-3"></div>
<div>
<p class="text-sm font-medium text-gray-900">Caesar Salad</p>
<p class="text-xs text-gray-500">8 orders</p>
</div>
</div>
<span class="text-sm text-gray-700">23%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-10 h-10 bg-gray-100 rounded-lg mr-3"></div>
<div>
<p class="text-sm font-medium text-gray-900">Pasta Carbonara</p>
<p class="text-xs text-gray-500">6 orders</p>
</div>
</div>
<span class="text-sm text-gray-700">17%</span>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm">
<h3 class="text-lg font-medium text-gray-900 mb-4">Recent Activity</h3>
<div class="space-y-4">
<div class="flex items-start">
<div class="flex-shrink-0 bg-blue-100 rounded-full p-1 mr-3">
<i data-feather="check-circle" class="w-4 h-4 text-blue-600"></i>
</div>
<p class="text-sm text-gray-600">Order #1242 completed by <span class="font-medium">Chef Michael</span></p>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 bg-yellow-100 rounded-full p-1 mr-3">
<i data-feather="alert-circle" class="w-4 h-4 text-yellow-600"></i>
</div>
<p class="text-sm text-gray-600">Order #1241 cancelled - item unavailable</p>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 bg-green-100 rounded-full p-1 mr-3">
<i data-feather="plus-circle" class="w-4 h-4 text-green-600"></i>
</div>
<p class="text-sm text-gray-600">New order received from <span class="font-medium">Table 5</span></p>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>feather.replace();</script>
</body>
</html> |