erp / factory.html
Enquzer's picture
continue to build the remaing pages lile profile, factory, reports and settings - Initial Deployment
84985f2 verified
Raw History Blame Contribute Delete
14.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ShopSphere - Factory</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>
.factory-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.factory-card {
transition: all 0.3s ease;
}
.progress-bar {
height: 8px;
border-radius: 4px;
background-color: #e5e7eb;
overflow: hidden;
}
.progress-fill {
height: 100%;
border-radius: 4px;
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar (same as index.html) -->
<div class="sidebar bg-white shadow-lg w-64 flex flex-col">
<div class="p-4 flex items-center justify-between border-b">
<div class="flex items-center">
<i data-feather="shopping-bag" class="text-indigo-600 w-6 h-6"></i>
<span class="ml-2 font-bold text-xl text-indigo-600">ShopSphere</span>
</div>
<button id="sidebar-toggle" class="text-gray-500 hover:text-gray-700">
<i data-feather="chevron-left"></i>
</button>
</div>
<div class="flex-grow overflow-y-auto py-4">
<nav>
<div class="px-4 mb-2">
<p class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Main</p>
</div>
<a href="index.html" class="flex items-center px-4 py-3 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50">
<i data-feather="home" class="w-5 h-5"></i>
<span class="nav-text ml-3">Dashboard</span>
</a>
<a href="products.html" class="flex items-center px-4 py-3 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50">
<i data-feather="package" class="w-5 h-5"></i>
<span class="nav-text ml-3">Products</span>
</a>
<a href="orders.html" class="flex items-center px-4 py-3 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50">
<i data-feather="shopping-cart" class="w-5 h-5"></i>
<span class="nav-text ml-3">Orders</span>
</a>
<a href="factory.html" class="flex items-center px-4 py-3 text-indigo-600 bg-indigo-50">
<i data-feather="factory" class="w-5 h-5"></i>
<span class="nav-text ml-3">Factory</span>
</a>
<a href="reports.html" class="flex items-center px-4 py-3 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50">
<i data-feather="bar-chart-2" class="w-5 h-5"></i>
<span class="nav-text ml-3">Reports</span>
</a>
<div class="px-4 mt-4 mb-2">
<p class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Settings</p>
</div>
<a href="profile.html" class="flex items-center px-4 py-3 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50">
<i data-feather="user" class="w-5 h-5"></i>
<span class="nav-text ml-3">Profile</span>
</a>
<a href="settings.html" class="flex items-center px-4 py-3 text-gray-600 hover:text-indigo-600 hover:bg-indigo-50">
<i data-feather="settings" class="w-5 h-5"></i>
<span class="nav-text ml-3">Settings</span>
</a>
</nav>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between px-6 py-4">
<h1 class="text-2xl font-semibold text-gray-800">Factory Orders</h1>
<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 w-4 h-4 flex items-center justify-center">3</span>
</div>
<div class="flex items-center">
<img src="http://static.photos/people/200x200/1" class="w-8 h-8 rounded-full" alt="Profile">
<span class="ml-2 text-sm font-medium text-gray-700">Admin</span>
</div>
</div>
</div>
</header>
<!-- Factory Content -->
<main class="p-6">
<!-- Stats Overview -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6" data-aos="fade-up">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Pending Orders</p>
<p class="mt-1 text-2xl font-semibold text-gray-900">24</p>
</div>
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
<i data-feather="clock" class="w-6 h-6"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6" data-aos="fade-up" data-aos-delay="100">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">In Production</p>
<p class="mt-1 text-2xl font-semibold text-gray-900">56</p>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="settings" class="w-6 h-6"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6" data-aos="fade-up" data-aos-delay="200">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Completed Today</p>
<p class="mt-1 text-2xl font-semibold text-gray-900">18</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="check-circle" class="w-6 h-6"></i>
</div>
</div>
</div>
</div>
<!-- Factory Orders Table -->
<div class="bg-white rounded-lg shadow overflow-hidden mb-6" data-aos="fade-up">
<div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="text-lg font-semibold text-gray-800">Current Production</h2>
<button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 flex items-center">
<i data-feather="plus" class="w-4 h-4 mr-2"></i>
Create Order
</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 ID</th>
<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">Quantity</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Progress</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">Due Date</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<!-- Order 1 -->
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-indigo-600">#FAC-9876</div>
</td>
<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="http://static.photos/technology/200x200/1" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Wireless Headphones</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">500</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="w-full">
<div class="progress-bar">
<div class="progress-fill bg-blue-500" style="width: 75%"></div>
</div>
<div class="text-right text-xs text-gray-500 mt-1">75%</div>
</div>
</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">In Production</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
May 20, 2023
</td>
</tr>
<!-- Order 2 -->
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-indigo-600">#FAC-9875</div>
</td>
<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="http://static.photos/technology/200x200/2" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Smart Watch</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">300</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="w-full">
<div class="progress-bar">
<div class="progress-fill bg-yellow-500" style="width: 25%"></div>
</div>
<div class="text-right text-xs text-gray-500 mt-1">25%</div>
</div>
</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">
May 22, 2023
</td>
</tr>
<!-- Order 3 -->
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-indigo-600">#FAC-9874</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div
</body>
</html>