fefo / index.html
derygre's picture
undefined - Initial Deployment
66fe0d2 verified
Raw History Blame Contribute Delete
39.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FEFO Stock System</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.sidebar {
transition: all 0.3s ease;
}
.sidebar.collapsed {
width: 80px;
}
.sidebar.collapsed .nav-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.sidebar.collapsed .nav-item {
justify-content: center;
}
.content {
transition: all 0.3s ease;
}
.content.expanded {
margin-left: 80px;
}
.kpi-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.expiry-critical {
background-color: rgba(239, 68, 68, 0.1);
border-left: 4px solid rgba(239, 68, 68, 1);
}
.expiry-warning {
background-color: rgba(234, 179, 8, 0.1);
border-left: 4px solid rgba(234, 179, 8, 1);
}
.expiry-normal {
background-color: rgba(16, 185, 129, 0.1);
border-left: 4px solid rgba(16, 185, 129, 1);
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div id="sidebar" class="sidebar bg-white shadow-lg flex flex-col h-full fixed z-10">
<div class="p-4 flex items-center border-b border-gray-200">
<div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold">
F
</div>
<span class="logo-text ml-3 text-xl font-semibold text-gray-800">FEFO Stock</span>
</div>
<div class="flex-1 overflow-y-auto">
<nav class="mt-6 px-2">
<div class="space-y-1">
<a href="#" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-md text-white bg-blue-600">
<i class="fas fa-tachometer-alt text-lg"></i>
<span class="nav-text ml-3">Dashboard</span>
</a>
<a href="#" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
<i class="fas fa-boxes text-lg"></i>
<span class="nav-text ml-3">Products</span>
</a>
<a href="#" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
<i class="fas fa-warehouse text-lg"></i>
<span class="nav-text ml-3">Warehouses</span>
</a>
<a href="#" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
<i class="fas fa-exchange-alt text-lg"></i>
<span class="nav-text ml-3">Stock Movements</span>
</a>
<a href="#" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
<i class="fas fa-file-alt text-lg"></i>
<span class="nav-text ml-3">Reports</span>
</a>
<a href="#" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
<i class="fas fa-cog text-lg"></i>
<span class="nav-text ml-3">Settings</span>
</a>
</div>
<div class="mt-10">
<p class="px-4 text-xs font-semibold text-gray-500 uppercase tracking-wider nav-text">
Admin
</p>
<div class="mt-2 space-y-1">
<a href="#" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
<i class="fas fa-users text-lg"></i>
<span class="nav-text ml-3">Users</span>
</a>
<a href="#" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-100">
<i class="fas fa-shield-alt text-lg"></i>
<span class="nav-text ml-3">Roles</span>
</a>
</div>
</div>
</nav>
</div>
<div class="p-4 border-t border-gray-200">
<div class="flex items-center">
<div class="flex-shrink-0">
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
</div>
<div class="ml-3 nav-text">
<p class="text-sm font-medium text-gray-700">John Doe</p>
<p class="text-xs font-medium text-gray-500">Admin</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div id="content" class="content flex-1 flex flex-col h-full ml-64">
<!-- Top Navigation -->
<header class="bg-white shadow-sm z-10">
<div class="px-4 py-3 flex items-center justify-between">
<div class="flex items-center">
<button id="sidebarToggle" class="text-gray-500 focus:outline-none">
<i class="fas fa-bars text-xl"></i>
</button>
<h1 class="ml-4 text-xl font-semibold text-gray-800">Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="text-gray-500 focus:outline-none">
<i class="fas fa-bell text-xl"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
</div>
<div class="relative">
<button class="text-gray-500 focus:outline-none">
<i class="fas fa-envelope text-xl"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-blue-500"></span>
</button>
</div>
<div class="relative">
<button id="userMenuButton" class="flex items-center text-sm rounded-full focus:outline-none">
<span class="sr-only">Open user menu</span>
<img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
</button>
<div id="userMenu" class="hidden absolute right-0 mt-2 w-48 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 py-1">
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Your Profile</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-4 bg-gray-50">
<!-- KPI Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<div class="kpi-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500 truncate">Total Products</p>
<p class="mt-1 text-3xl font-semibold text-gray-900">1,248</p>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-boxes text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-green-600 text-sm font-semibold">
<i class="fas fa-arrow-up"></i> 12.5%
</span>
<span class="text-gray-500 text-sm ml-2">vs last month</span>
</div>
</div>
<div class="kpi-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500 truncate">Total Warehouses</p>
<p class="mt-1 text-3xl font-semibold text-gray-900">8</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-warehouse text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-green-600 text-sm font-semibold">
<i class="fas fa-arrow-up"></i> 14.3%
</span>
<span class="text-gray-500 text-sm ml-2">vs last quarter</span>
</div>
</div>
<div class="kpi-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500 truncate">Expiring Soon</p>
<p class="mt-1 text-3xl font-semibold text-gray-900">47</p>
</div>
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
<i class="fas fa-clock text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-red-600 text-sm font-semibold">
<i class="fas fa-arrow-up"></i> 8.2%
</span>
<span class="text-gray-500 text-sm ml-2">vs last week</span>
</div>
</div>
<div class="kpi-card bg-white rounded-lg shadow p-6 transition duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500 truncate">Today's Movements</p>
<p class="mt-1 text-3xl font-semibold text-gray-900">124</p>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-exchange-alt text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-green-600 text-sm font-semibold">
<i class="fas fa-arrow-up"></i> 5.8%
</span>
<span class="text-gray-500 text-sm ml-2">vs yesterday</span>
</div>
</div>
</div>
<!-- Expiring Stock Table -->
<div class="bg-white shadow rounded-lg mb-6">
<div class="px-6 py-4 border-b border-gray-200">
<div class="flex items-center justify-between">
<h2 class="text-lg font-semibold text-gray-900">Expiring Stock (Next 30 Days)</h2>
<button class="text-sm font-medium text-blue-600 hover:text-blue-500 focus:outline-none">
View All
</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 scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Product</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Batch</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Warehouse</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Quantity</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Expiry Date</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Days Left</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="expiry-critical">
<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" src="https://via.placeholder.com/40" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Vitamin C 500mg</div>
<div class="text-sm text-gray-500">PH-12345</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">B-2023-06-001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Main Warehouse</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1,200</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-30</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">2 days</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Release</button>
<button class="text-gray-600 hover:text-gray-900">Details</button>
</td>
</tr>
<tr class="expiry-warning">
<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" src="https://via.placeholder.com/40" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Paracetamol 500mg</div>
<div class="text-sm text-gray-500">PH-12346</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">B-2023-07-001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">East Warehouse</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3,500</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-07-15</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">17 days</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Release</button>
<button class="text-gray-600 hover:text-gray-900">Details</button>
</td>
</tr>
<tr class="expiry-warning">
<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" src="https://via.placeholder.com/40" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Amoxicillin 250mg</div>
<div class="text-sm text-gray-500">PH-12347</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">B-2023-07-002</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">North Warehouse</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2,100</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-07-20</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">22 days</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Release</button>
<button class="text-gray-600 hover:text-gray-900">Details</button>
</td>
</tr>
<tr class="expiry-normal">
<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" src="https://via.placeholder.com/40" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Ibuprofen 200mg</div>
<div class="text-sm text-gray-500">PH-12348</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">B-2023-08-001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Main Warehouse</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4,800</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-08-10</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">43 days</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Release</button>
<button class="text-gray-600 hover:text-gray-900">Details</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 border-t border-gray-200">
<div class="flex items-center justify-between">
<div class="text-sm text-gray-500">
Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">47</span> results
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
Previous
</button>
<button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">
Next
</button>
</div>
</div>
</div>
</div>
<!-- Recent Activity and Stock Chart -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<!-- Recent Stock Movements -->
<div class="bg-white shadow rounded-lg">
<div class="px-6 py-4 border-b border-gray-200">
<h2 class="text-lg font-semibold text-gray-900">Recent Stock Movements</h2>
</div>
<div class="divide-y divide-gray-200">
<div class="px-6 py-4">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-arrow-down"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Stock In - Vitamin C 500mg</div>
<div class="text-sm text-gray-500">Main Warehouse • 500 units • 10:30 AM</div>
</div>
<div class="ml-auto text-sm text-gray-500">Just now</div>
</div>
</div>
<div class="px-6 py-4">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 flex items-center justify-center text-red-600">
<i class="fas fa-arrow-up"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Stock Out - Paracetamol 500mg</div>
<div class="text-sm text-gray-500">East Warehouse • 120 units • 9:45 AM</div>
</div>
<div class="ml-auto text-sm text-gray-500">45 mins ago</div>
</div>
</div>
<div class="px-6 py-4">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-exchange-alt"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Transfer - Amoxicillin 250mg</div>
<div class="text-sm text-gray-500">Main → North Warehouse • 300 units • 9:15 AM</div>
</div>
<div class="ml-auto text-sm text-gray-500">1 hour ago</div>
</div>
</div>
<div class="px-6 py-4">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
<i class="fas fa-adjust"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Adjustment - Ibuprofen 200mg</div>
<div class="text-sm text-gray-500">Main Warehouse • +50 units • 8:30 AM</div>
</div>
<div class="ml-auto text-sm text-gray-500">2 hours ago</div>
</div>
</div>
<div class="px-6 py-4">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-arrow-down"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Stock In - Vitamin B Complex</div>
<div class="text-sm text-gray-500">West Warehouse • 1,000 units • 8:00 AM</div>
</div>
<div class="ml-auto text-sm text-gray-500">2.5 hours ago</div>
</div>
</div>
</div>
<div class="px-6 py-4 border-t border-gray-200">
<button class="text-sm font-medium text-blue-600 hover:text-blue-500 focus:outline-none">
View All Activity
</button>
</div>
</div>
<!-- Stock Level Chart -->
<div class="bg-white shadow rounded-lg">
<div class="px-6 py-4 border-b border-gray-200">
<div class="flex items-center justify-between">
<h2 class="text-lg font-semibold text-gray-900">Stock Levels</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs font-medium rounded-md bg-blue-100 text-blue-800">
Daily
</button>
<button class="px-3 py-1 text-xs font-medium rounded-md bg-white text-gray-600 hover:bg-gray-100">
Weekly
</button>
<button class="px-3 py-1 text-xs font-medium rounded-md bg-white text-gray-600 hover:bg-gray-100">
Monthly
</button>
</div>
</div>
</div>
<div class="px-6 py-4">
<div class="h-64">
<!-- Chart Placeholder -->
<div class="flex items-center justify-center h-full bg-gray-50 rounded-lg">
<div class="text-center">
<i class="fas fa-chart-line text-4xl text-gray-400 mb-2"></i>
<p class="text-gray-500">Stock level chart will be displayed here</p>
</div>
</div>
</div>
</div>
<div class="px-6 py-4 border-t border-gray-200">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-4">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-blue-500 mr-2"></div>
<span class="text-xs text-gray-600">Vitamin C</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
<span class="text-xs text-gray-600">Paracetamol</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
<span class="text-xs text-gray-600">Amoxicillin</span>
</div>
</div>
<button class="text-sm font-medium text-blue-600 hover:text-blue-500 focus:outline-none">
Export Data
</button>
</div>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="bg-white shadow rounded-lg p-6 mb-6">
<h2 class="text-lg font-semibold text-gray-900 mb-4">Quick Actions</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
<button class="flex items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition duration-300">
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-3">
<i class="fas fa-plus text-lg"></i>
</div>
<div class="text-left">
<p class="text-sm font-medium text-gray-900">Add Stock</p>
<p class="text-xs text-gray-500">Record new inventory</p>
</div>
</button>
<button class="flex items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition duration-300">
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-3">
<i class="fas fa-minus text-lg"></i>
</div>
<div class="text-left">
<p class="text-sm font-medium text-gray-900">Release Stock</p>
<p class="text-xs text-gray-500">FEFO-based distribution</p>
</div>
</button>
<button class="flex items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition duration-300">
<div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-3">
<i class="fas fa-exchange-alt text-lg"></i>
</div>
<div class="text-left">
<p class="text-sm font-medium text-gray-900">Transfer Stock</p>
<p class="text-xs text-gray-500">Move between warehouses</p>
</div>
</button>
<button class="flex items-center justify-center p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition duration-300">
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-3">
<i class="fas fa-adjust text-lg"></i>
</div>
<div class="text-left">
<p class="text-sm font-medium text-gray-900">Adjust Stock</p>
<p class="text-xs text-gray-500">Correct inventory levels</p>
</div>
</button>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t border-gray-200 py-4 px-6">
<div class="flex items-center justify-between">
<p class="text-sm text-gray-500">
&copy; 2023 FEFO Stock System. All rights reserved.
</p>
<div class="flex space-x-6">
<a href="#" class="text-sm text-gray-500 hover:text-gray-700">Privacy</a>
<a href="#" class="text-sm text-gray-500 hover:text-gray-700">Terms</a>
<a href="#" class="text-sm text-gray-500 hover:text-gray-700">Help</a>
</div>
</div>
</footer>
</div>
</div>
<script>
// Toggle sidebar
document.getElementById('sidebarToggle').addEventListener('click', function() {
const sidebar = document.getElementById('sidebar');
const content = document.getElementById('content');
sidebar.classList.toggle('collapsed');
content.classList.toggle('expanded');
});
// Toggle user menu
document.getElementById('userMenuButton').addEventListener('click', function() {
document.getElementById('userMenu').classList.toggle('hidden');
});
// Close user menu when clicking outside
document.addEventListener('click', function(event) {
const userMenu = document.getElementById('userMenu');
const userMenuButton = document.getElementById('userMenuButton');
if (!userMenu.contains(event.target) && event.target !== userMenuButton) {
userMenu.classList.add('hidden');
}
});
// Simulate real-time updates
setInterval(function() {
const movements = document.querySelectorAll('.animate-pulse');
movements.forEach(movement => {
movement.classList.toggle('animate-pulse');
});
}, 5000);
// Responsive adjustments
function handleResize() {
const sidebar = document.getElementById('sidebar');
const content = document.getElementById('content');
if (window.innerWidth < 768) {
sidebar.classList.add('collapsed');
content.classList.add('expanded');
} else {
sidebar.classList.remove('collapsed');
content.classList.remove('expanded');
}
}
window.addEventListener('resize', handleResize);
handleResize(); // Initial check
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=derygre/fefo" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>