Spaces:
Running

undefined / inventory.html
Mkourhany's picture
Promote version 847d985 to main
5dbc8fb verified
Raw History Blame Contribute Delete
9.25 kB
<!DOCTYPE html>
<html lang="en" class="h-full bg-gray-50">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inventory | SkyERP</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="h-full">
<!-- Same sidebar and header structure as index.html -->
<div class="min-h-full flex">
<!-- Sidebar -->
<!-- ... same sidebar code from index.html ... -->
<!-- Main content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Header -->
<!-- ... same header code from index.html with "Inventory" as title ... -->
<!-- Content area -->
<div class="flex-1 overflow-auto focus:outline-none bg-gray-50">
<div class="px-4 py-6 sm:px-6 lg:px-8">
<!-- Inventory summary -->
<div class="mb-6 grid grid-cols-1 gap-5 sm:grid-cols-3">
<div class="bg-white shadow rounded-lg p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-indigo-500 rounded-md p-3">
<i data-feather="box" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Total Products</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">1,245</div>
</dd>
</dl>
</div>
</div>
</div>
<div class="bg-white shadow rounded-lg p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-500 rounded-md p-3">
<i data-feather="check-circle" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">In Stock</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">987</div>
</dd>
</dl>
</div>
</div>
</div>
<div class="bg-white shadow rounded-lg p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-red-500 rounded-md p-3">
<i data-feather="alert-triangle" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Low Stock</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">58</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
<!-- Product list -->
<div class="bg-white shadow rounded-lg overflow-hidden">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200 flex justify-between items-center">
<h3 class="text-lg leading-6 font-medium text-gray-900">Products</h3>
<div class="flex space-x-3">
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i data-feather="search" class="h-5 w-5 text-gray-400"></i>
</div>
<input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm" placeholder="Search products...">
</div>
<button class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700">
<i data-feather="plus" class="mr-2"></i> Add Product
</button>
</div>
</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">Product</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">SKU</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Category</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Stock</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</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">
<!-- Sample product rows -->
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-sm" src="http://static.photos/retail/200x200/1" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Premium Widget</div>
<div class="text-sm text-gray-500">Widgets</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">WID-001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Widgets</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">45</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$29.99</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">In Stock</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-primary-600 hover:text-primary-900 mr-3">Edit</a>
<a href="#" class="text-gray-600 hover:text-gray-900">View</a>
</td>
</tr>
<!-- More rows... -->
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Initialize Feather Icons
feather.replace();
</script>
</body>
</html>