erp / orders.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
22.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ShopSphere - Orders</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>
.order-row:hover {
background-color: #f9fafb;
}
.status-badge {
padding: 0.25rem 0.5rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
text-transform: capitalize;
}
</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-indigo-600 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-gray-600 hover:text-indigo-600 hover: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">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>
<!-- Orders Content -->
<main class="p-6">
<!-- Filters and Actions -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6 gap-4">
<div class="relative w-full md:w-64">
<input type="text" placeholder="Search orders..." class="w-full pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<div class="flex space-x-2 w-full md:w-auto">
<select class="border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>All Status</option>
<option>Pending</option>
<option>Processing</option>
<option>Shipped</option>
<option>Delivered</option>
<option>Cancelled</option>
</select>
<input type="date" class="border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<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>
<!-- Orders Table -->
<div class="bg-white rounded-lg shadow overflow-hidden" data-aos="fade-up">
<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">Customer</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</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-right text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<!-- Order 1 -->
<tr class="order-row">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-indigo-600">#ORD-7689</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-full" src="http://static.photos/people/200x200/2" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">John Smith</div>
<div class="text-sm text-gray-500">john@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">May 16, 2023</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">$129.99</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="status-badge bg-green-100 text-green-800">Completed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="text-gray-600 hover:text-gray-900">
<i data-feather="more-vertical" class="w-4 h-4"></i>
</button>
</td>
</tr>
<!-- Order 2 -->
<tr class="order-row">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-indigo-600">#ORD-7688</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-full" src="http://static.photos/people/200x200/3" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Sarah Johnson</div>
<div class="text-sm text-gray-500">sarah@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">May 15, 2023</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">$89.99</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="status-badge bg-yellow-100 text-yellow-800">Processing</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="text-gray-600 hover:text-gray-900">
<i data-feather="more-vertical" class="w-4 h-4"></i>
</button>
</td>
</tr>
<!-- Order 3 -->
<tr class="order-row">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-indigo-600">#ORD-7687</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-full" src="http://static.photos/people/200x200/4" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Michael Brown</div>
<div class="text-sm text-gray-500">michael@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">May 14, 2023</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">$156.50</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="status-badge bg-blue-100 text-blue-800">Shipped</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="text-gray-600 hover:text-gray-900">
<i data-feather="more-vertical" class="w-4 h-4"></i>
</button>
</td>
</tr>
<!-- Order 4 -->
<tr class="order-row">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-indigo-600">#ORD-7686</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-full" src="http://static.photos/people/200x200/5" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Emily Davis</div>
<div class="text-sm text-gray-500">emily@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">May 14, 2023</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">$245.00</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="status-badge bg-red-100 text-red-800">Cancelled</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="text-gray-600 hover:text-gray-900">
<i data-feather="more-vertical" class="w-4 h-4"></i>
</button>
</td>
</tr>
<!-- Order 5 -->
<tr class="order-row">
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm font-medium text-indigo-600">#ORD-7685</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-full" src="http://static.photos/people/200x200/6" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">David Wilson</div>
<div class="text-sm text-gray-500">david@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">May 13, 2023</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">$189.99</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="status-badge bg-purple-100 text-purple-800">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i data-feather="eye" class="w-4 h-4"></i>
</button>
<button class="text-gray-600 hover:text-gray-900">
<i data-feather="more-vertical" class="w-4 h-4"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Pagination -->
<div class="flex justify-center mt-8" data-aos="fade-up">
<nav class="inline-flex rounded-md shadow">
<a href="#" class="px-3 py-2 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50">
<i data-feather="chevron-left" class="w-4 h-4"></i>
</a>
<a href="#" class="px-4 py-2 border-t border-b border-gray-300 bg-white text-indigo-600 font-medium">1</a>
<a href="#" class="px-4 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50">2</a>
<a href="#" class="px-4 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50">3</a>
<a href="#" class="px-4 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50">4</a>
<a href="#" class="px-4 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50">5</a>
<a href="#" class="px-3 py-2 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50">
<i data-feather="chevron-right" class="w-4 h-4"></i>
</a>
</nav>
</div>
</main>
</div>
</div>
<script>
AOS.init();
feather.replace();
// Sidebar toggle
document.getElementById('sidebar-toggle').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('sidebar-collapsed');
const icon = this.querySelector('i');
if (document.querySelector('.sidebar').classList.contains('sidebar-collapsed')) {
feather.icons['chevron-right'].toSvg().then(svg => {
icon.outerHTML = svg;
});
} else {
feather.icons['chevron-left'].toSvg().then(svg => {
icon.outerHTML = svg;
});
}
});
</script>
</body>
</html>