totaliser / index.html
bicben1's picture
Add 3 files
49893f6 verified
Raw History Blame Contribute Delete
66.5 kB
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Totaliser - Control de Inventario</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>
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.sidebar {
transition: all 0.3s ease;
}
.inventory-item:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.chart-container {
height: 300px;
}
@media (max-width: 768px) {
.sidebar {
position: absolute;
left: -100%;
z-index: 50;
}
.sidebar.active {
left: 0;
}
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<!-- Login Page -->
<div id="login-page" class="min-h-screen flex items-center justify-center gradient-bg p-4">
<div class="bg-white rounded-lg shadow-xl overflow-hidden w-full max-w-md">
<div class="p-8">
<div class="text-center mb-8">
<img src="https://via.placeholder.com/150x50?text=Totaliser" alt="Totaliser Logo" class="h-12 mx-auto">
<h1 class="text-2xl font-bold text-gray-800 mt-4">Control de Inventario</h1>
<p class="text-gray-600">Ingresa tus credenciales para acceder</p>
</div>
<form id="login-form" class="space-y-6">
<div>
<label for="username" class="block text-sm font-medium text-gray-700 mb-1">Usuario</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-user text-gray-400"></i>
</div>
<input type="text" id="username" name="username" required
class="pl-10 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border"
placeholder="admin" value="admin">
</div>
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Contraseña</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-lock text-gray-400"></i>
</div>
<input type="password" id="password" name="password" required
class="pl-10 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border"
placeholder="123456" value="123456">
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<input id="remember-me" name="remember-me" type="checkbox"
class="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<label for="remember-me" class="ml-2 block text-sm text-gray-700">Recordarme</label>
</div>
<div class="text-sm">
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">¿Olvidaste tu contraseña?</a>
</div>
</div>
<div>
<button type="submit"
class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
Iniciar Sesión
</button>
</div>
</form>
<div class="mt-6 text-center">
<p class="text-sm text-gray-600">
¿No tienes una cuenta?
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">Contacta al administrador</a>
</p>
</div>
</div>
<div class="bg-gray-50 px-8 py-4">
<div class="text-center text-xs text-gray-600">
&copy; 2023 Totaliser. Todos los derechos reservados.
</div>
</div>
</div>
</div>
<!-- Main Application (hidden by default) -->
<div id="app" class="hidden">
<!-- Sidebar -->
<div class="sidebar fixed top-0 left-0 h-screen w-64 bg-white shadow-lg z-40">
<div class="flex items-center justify-center h-16 px-4 bg-indigo-600">
<h1 class="text-white font-bold text-xl">Totaliser</h1>
<button id="close-sidebar" class="md:hidden absolute right-4 text-white">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-4">
<div class="flex items-center space-x-4 p-3 bg-indigo-50 rounded-lg">
<div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
<i class="fas fa-user text-indigo-600"></i>
</div>
<div>
<p class="font-medium" id="logged-user">Admin</p>
<p class="text-xs text-gray-500">Administrador</p>
</div>
</div>
</div>
<nav class="mt-2">
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100" id="dashboard-link">
<i class="fas fa-tachometer-alt mr-3 text-gray-500"></i>
<span>Dashboard</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100" id="inventory-link">
<i class="fas fa-boxes mr-3 text-gray-500"></i>
<span>Inventario</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100" id="reports-link">
<i class="fas fa-chart-bar mr-3 text-gray-500"></i>
<span>Reportes</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100" id="suppliers-link">
<i class="fas fa-truck mr-3 text-gray-500"></i>
<span>Proveedores</span>
</a>
<a href="#" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100" id="settings-link">
<i class="fas fa-cog mr-3 text-gray-500"></i>
<span>Configuración</span>
</a>
</nav>
<div class="absolute bottom-0 w-full p-4">
<button id="logout-btn" class="w-full flex items-center justify-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-lg">
<i class="fas fa-sign-out-alt mr-2 text-gray-500"></i>
<span>Cerrar Sesión</span>
</button>
</div>
</div>
<!-- Main Content -->
<div class="ml-0 md:ml-64 transition-all duration-300">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between px-4 py-3">
<div class="flex items-center">
<button id="menu-toggle" class="md:hidden text-gray-600">
<i class="fas fa-bars text-xl"></i>
</button>
<h2 class="ml-4 text-xl font-semibold text-gray-800" id="page-title">Dashboard</h2>
</div>
<div class="flex items-center space-x-4">
<button class="text-gray-600 hover:text-gray-800">
<i class="fas fa-bell"></i>
</button>
<button class="text-gray-600 hover:text-gray-800">
<i class="fas fa-question-circle"></i>
</button>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main id="main-content" class="p-4">
<!-- Dashboard Page -->
<div id="dashboard-page">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Productos Totales</p>
<h3 class="text-2xl font-bold">1,248</h3>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-box-open text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-green-500 text-sm font-medium">+12%</span>
<span class="text-gray-500 text-sm ml-2">vs mes pasado</span>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Stock Bajo</p>
<h3 class="text-2xl font-bold">36</h3>
</div>
<div class="p-3 rounded-full bg-red-100 text-red-600">
<i class="fas fa-exclamation-triangle text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-red-500 text-sm font-medium">-5%</span>
<span class="text-gray-500 text-sm ml-2">vs mes pasado</span>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Ventas Mes</p>
<h3 class="text-2xl font-bold">$24,580</h3>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-dollar-sign text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-green-500 text-sm font-medium">+18%</span>
<span class="text-gray-500 text-sm ml-2">vs mes pasado</span>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Proveedores</p>
<h3 class="text-2xl font-bold">24</h3>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-truck text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-green-500 text-sm font-medium">+2</span>
<span class="text-gray-500 text-sm ml-2">nuevos este mes</span>
</div>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6 lg:col-span-2">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">Movimiento de Inventario</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-sm bg-indigo-100 text-indigo-700 rounded">Mes</button>
<button class="px-3 py-1 text-sm bg-gray-100 text-gray-700 rounded">Año</button>
</div>
</div>
<div class="chart-container">
<canvas id="inventory-chart"></canvas>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<h3 class="font-semibold text-lg mb-4">Productos con Stock Bajo</h3>
<div class="space-y-4">
<div class="flex items-center justify-between p-3 bg-red-50 rounded-lg">
<div class="flex items-center">
<div class="w-10 h-10 bg-red-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-box text-red-600"></i>
</div>
<div>
<p class="font-medium">Baterías AA</p>
<p class="text-xs text-gray-500">Código: BAT-AA-001</p>
</div>
</div>
<span class="text-red-600 font-bold">5</span>
</div>
<div class="flex items-center justify-between p-3 bg-red-50 rounded-lg">
<div class="flex items-center">
<div class="w-10 h-10 bg-red-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-box text-red-600"></i>
</div>
<div>
<p class="font-medium">Teclados Inalámbricos</p>
<p class="text-xs text-gray-500">Código: TEC-WL-002</p>
</div>
</极速
<span class="text-red-600 font-bold">3</span>
</div>
<div class="flex items-center justify-between p-3 bg-yellow-50 rounded-lg">
<div class="flex items-center">
<div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-box text-yellow-600"></i>
</div>
<div>
<p class="font-medium">Mouse Gamer</p>
<p class="text-xs text-gray-500">Código: MOU-GM-003</p>
</div>
</div>
<span class="text-yellow-600 font-bold">8</span>
</div>
</div>
</div>
</div>
</div>
<!-- Inventory Page (hidden by default) -->
<div id="inventory-page" class="hidden">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Gestión de Inventario</h2>
<button class="bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 flex items-center">
<i class="fas fa-plus mr-2"></i> Agregar Producto
</button>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-4 border-b flex justify-between items-center">
<div class="relative w-64">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-search text-gray-400"></i>
</div>
<input type="text" class="pl-10 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border" placeholder="Buscar producto...">
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 border rounded-md text-sm flex items-center">
<i class="fas fa-filter mr-2"></i> Filtros
</button>
<button class="px-3 py-1 border rounded-md text-sm flex items-center">
<i class="fas fa-download mr-2"></i> Exportar
</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">Código</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Producto</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Categoría</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Stock</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Precio</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Estado</th>
<th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Acciones</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50 inventory-item transition">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">PROD-001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Teclado Mecánico RGB</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Periféricos</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">42</td>
<td class="px-极速
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$89.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">Disponible</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 class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
</td>
</tr>
<tr class="hover:bg-gray-50 inventory-item transition">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">PROD-002</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Mouse Inalámbrico</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Periféricos</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15</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">Disponible</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 class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
</td>
</tr>
<tr class="hover:bg-gray-50 inventory-item transition">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">PROD-003</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Monitor 24" Full HD</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Monitores</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$179.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-yellow-100 text-yellow-800">Últimas unidades</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 class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
</td>
</tr>
<tr class="hover:bg-gray-50 inventory-item transition">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">PROD-004</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Disco SSD 500GB</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Almacenamiento</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">0</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$59.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-red-100 text-red-800">Agotado</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 class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="bg-gray-50 px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
<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">Anterior</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">Siguiente</a>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Mostrando
<span class="font-medium">1</span>
a
<span class="font-medium">4</span>
de
<span class="font-medium">12</span>
resultados
</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">Anterior</span>
<i class="fas fa-chevron-left"></i>
</a>
<a href="#" aria-current="page" class="z-10 bg-indigo-50 border-indigo-500 text-indigo-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">Siguiente</span>
<i class="fas fa-chevron-right"></i>
</a>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- Reports Page (hidden by default) -->
<div id="reports-page" class="hidden">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Reportes y Estadísticas</h2>
<div class="flex space-x-2">
<button class="border border-indigo-600 text-indigo-600 px-4 py-2 rounded-md hover:bg-indigo-50 flex items-center">
<i class="fas fa-download mr-2"></i> Exportar
</button>
<button class="bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 flex items-center">
<i class="fas fa-calendar-alt mr-2"></i> Seleccionar Periodo
</button>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6">
<h3 class="font-semibold text-lg mb-4">Ventas por Categoría</h3>
<div class="chart-container">
<canvas id="sales-chart"></canvas>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<h3 class="font-semibold text-lg mb-4">Productos Más Vendidos</h3>
<div class="space-y-4">
<div class="flex items-center">
<div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-box text-blue-600"></i>
</div>
<div class="flex-1">
<p class="font-medium">Teclado Mecánico RGB</p>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-blue-600 h-2 rounded-full" style="width: 75%"></div>
</div>
</div>
<span class="ml-2 text-sm font-medium">120 unidades</span>
</div>
<div class="flex items-center">
<div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-box text-green-600"></i>
</div>
<div class="flex-1">
<p class="font-medium">Mouse Inalámbrico</p>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-green-600 h-2 rounded-full" style="width: 60%"></div>
</div>
</div>
<span class="ml-2 text-sm font-medium">95 unidades</span>
</div>
<div class="flex items-center">
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-box text-purple-600"></i>
</div>
<div class="flex-1">
<p class="font-medium">Monitor 24" Full HD</p>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-purple-600 h-2 rounded-full" style="width: 45%"></div>
</div>
</div>
<span class="ml-2 text-sm font-medium">72 unidades</span>
</div>
<div class="flex items-center">
<div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-box text-yellow-600"></i>
</div>
<div class="flex-1">
<p class="font-medium">Disco SSD 500GB</p>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-yellow-600 h-2 rounded-full" style="width: 30%"></div>
</div>
</div>
<span class="ml-2 text-sm font-medium">48 unidades</span>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6 mb-6">
<h3 class="font-semibold text-lg mb-4">Histórico de Ventas</h3>
<div class="chart-container">
<canvas id="history-chart"></canvas>
</div>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-4 border-b">
<h3 class="font-semibold text-lg">Movimientos Recientes</h3>
</div>
<div class="divide-y divide-gray-200">
<div class="p-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
<i class="fas fa-arrow-down"></i>
</div>
<div>
<p class="font-medium">Entrada de Inventario</p>
<p class="text-sm text-gray-500">Teclado Mecánico RGB - 20 unidades</p>
</div>
</div>
<div class="text-right">
<p class="font-medium">$1,799.80</p>
<p class="text-sm text-gray-500">Hoy, 10:45 AM</p>
</div>
</div>
<div class="p-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center">
<div class="p-3 rounded-full bg-red-100 text-red-600 mr-4">
<i class="fas fa-arrow-up"></i>
</div>
<div>
<p class="font-medium">Venta</p>
<p class="text-sm text-gray-500">Mouse Inalámbrico - 5 unidades</p>
</div>
</div>
<div class="text-right">
<p class="font-medium">$149.95</p>
<p class="text-sm text-gray-500">Ayer, 3:20 PM</p>
</div>
</div>
<div class="p-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
<i class="fas fa-arrow-down"></i>
</div>
<div>
<p class="font-medium">Entrada de Inventario</p>
<p class="text-sm text-gray-500">Monitor 24" Full HD - 10 unidades</p>
</div>
</div>
<div class="text-right">
<p class="font-medium">$1,799.90</p>
<p class="text-sm text-gray-500">Ayer, 9:15 AM</p>
</div>
</div>
<div class="p-4 flex items-center justify-between hover:bg-gray-50">
<div class="flex items-center">
<div class="p-3 rounded-full bg-red-100 text-red-600 mr-4">
<i class="fas fa-arrow-up"></i>
</div>
<div>
<p class="font-medium">Venta</p>
<p class="text-sm text-gray-500">Disco SSD 500GB - 3 unidades</p>
</div>
</div>
<div class="text-right">
<p class="font-medium">$179.97</p>
<p class="text-sm text-gray-500">15 Jun, 2:30 PM</p>
</div>
</div>
</div>
</div>
</div>
<!-- Suppliers Page (hidden by default) -->
<div id="suppliers-page" class="hidden">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Gestión de Proveedores</h2>
<button class="bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 flex items-center">
<i class="fas fa-plus mr-2"></i> Nuevo Proveedor
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="bg-white rounded-lg shadow overflow-hidden hover:shadow-md transition">
<div class="p-6">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mr-4">
<i class="fas fa-truck text-indigo-600 text-xl"></i>
</div>
<div>
<h3 class="font-bold text-lg">TecnoSuministros</h3>
<p class="text-sm text-gray-500">Proveedor de tecnología</p>
</div>
</div>
<div class="space-y-2 text-sm">
<div class="flex items-center">
<i class="fas fa-phone-alt text-gray-400 mr-2 w-4"></i>
<span>+1 234 567 890</span>
</div>
<div class="flex items-center">
<i class="fas fa-envelope text-gray-400 mr-2 w-4"></i>
<span>contacto@tecnosuministros.com</span>
</div>
<div class="flex items-center">
<i class="fas fa-map-marker-alt text-gray-400 mr-2 w-4"></i>
<span>Av. Principal 123, Ciudad</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-3 flex justify-end space-x-2 border-t">
<button class="text-indigo-600 hover:text-indigo-900 px-3 py-1 rounded">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-900 px-3 py-1 rounded">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden hover:shadow-md transition">
<div class="p-6">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-4">
<i class="fas fa-boxes text-green-600 text-xl"></i>
</div>
<div>
<h3 class="font-bold text-lg">ElectroParts</h3>
<p class="text-sm text-gray-500">Componentes electrónicos</p>
</div>
</div>
<div class="space-y-2 text-sm">
<div class="flex items-center">
<i class="fas fa-phone-alt text-gray-400 mr-2 w-4"></i>
<span>+1 987 654 321</span>
</div>
<div class="flex items-center">
<i class="fas fa-envelope text-gray-400 mr-2 w-4"></i>
<span>ventas@electroparts.com</span>
</div>
<div class="flex items-center">
<i class="fas fa-map-marker-alt text-gray-400 mr-2 w-4"></i>
<span>Calle Secundaria 456, Ciudad</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-3 flex justify-end space-x-2 border-t">
<button class="text-indigo-600 hover:text-indigo-900 px-3 py-1 rounded">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-900 px极速
<button class="text-red-600 hover:text-red-900 px-3 py-1 rounded">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden hover:shadow-md transition">
<div class="p-6">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mr-4">
<i class="fas fa-laptop-code text-purple-600 text-xl"></i>
</div>
<div>
<h3 class="font-bold text-lg">CompuGlobal</h3>
<p class="text-sm text-gray-500">Equipos de cómputo</p>
</div>
</div>
<div class="space-y-2 text-sm">
<div class="flex items-center">
<i class="fas fa-phone-alt text-gray-400 mr-2 w-4"></i>
<span>+1 555 123 4567</span>
</div>
<div class="flex items-center">
<i class="fas fa-envelope text-gray-400 mr-极速
<span>info@compuglobal.com</span>
</div>
<div class="flex items-center">
<i class="fas fa-map-marker-alt text-gray-400 mr-2 w-4"></i>
<span>Boulevard Industrial 789, Ciudad</span>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-3 flex justify-end space-x-2 border-t">
<button class="text-indigo-600 hover:text-indigo-900 px-3 py-1 rounded">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-900 px-3 py-1 rounded">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
</div>
</div>
<!-- Settings Page (hidden by default) -->
<div id="settings-page" class="hidden">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Configuración del Sistema</h2>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
<div class="p-4 border-b">
<h3 class="font-semibold text-lg">Información de la Empresa</h3>
</div>
<div class="p-6">
<form>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Nombre de la Empresa</label>
<input type="text" class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border" value="Totaliser">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">RUC</label>
<input type="text" class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border" value="12345678901">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Teléfono</label>
<input type="text" class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border" value="+1 234 567 890">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Correo Electrónico</label>
<input type="email" class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border" value="contacto@totaliser.com">
</div>
<div class="md:col-span-2">
<label class="block text-sm font-medium text-gray-700 mb-1">Dirección</label>
<textarea class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border" rows="2">Av. Principal 123, Ciudad, País</textarea>
</div>
</div>
<div class="mt-6 flex justify-end">
<button type="button" class="bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700">Guardar Cambios</button>
</div>
</form>
</div>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
<div class="p-4 border-b">
<h3 class="font-semibold text-lg">Configuración de Inventario</h3>
</div>
<div class="p-6">
<form>
<div class="space-y-4">
<div class="flex items-center justify-between">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Notificación de Stock Bajo</label>
<p class="text-xs text-gray-500">Recibir alertas cuando el stock esté por debajo del mínimo</p>
</div>
<label class="inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-indigo-300 rounded-full peer peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"></div>
</label>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Stock Mínimo</label>
<input type="number" class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border" value="10">
</div>
<div class="flex items-center justify-between">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Actualización Automática</label>
<p class="text-xs text-gray-500">Actualizar precios automáticamente según proveedores</p>
</div>
<label class="inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer">
<div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-indigo-300 rounded-full peer peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600"></div>
</label>
</div>
</div>
<div class="mt-6 flex justify-end">
<button type="button" class="bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700">Guardar Configuración</button>
</div>
</form>
</div>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-4 border-b">
<h3 class="font-semibold text-lg">Usuarios y Permisos</h3>
</div>
<div class="p-6">
<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">Usuario</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Rol</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Último Acceso</th>
<th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Acciones</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center">
<i class="fas fa-user text-indigo-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">admin</div>
<div class="text-sm text-gray-500">admin@totaliser.com</div>
</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-indigo-100 text-indigo-800">Administrador</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Hoy, 10:30 AM</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 class="fas fa-edit"></i></button>
<button class="text-gray-400 cursor-not-allowed" disabled><i class="fas fa-trash"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
<i class="fas fa-user text-green-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">inventario</div>
<div class="text-sm text-gray-500">inventario@totaliser.com</div>
</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-green-100 text-green-800">Inventario</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Ayer, 4:15 PM</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 class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-user text-blue-600"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">ventas</div>
<div class="text-sm text-gray-500">ventas@totaliser.com</div>
</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">Ventas</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15 Jun, 11:20 AM</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 class="fas fa-edit"></i></button>
<button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="mt-6">
<button class="bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 flex items-center">
<i class="fas fa-plus mr-2"></i> Agregar Usuario
</button>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Login functionality
document.getElementById('login-form').addEventListener('submit', function(e) {
e.preventDefault();
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;
// Default credentials
if(username === 'admin' && password === '123456') {
// Hide login page and show app
document.getElementById('login-page').classList.add('hidden');
document.getElementById('app').classList.remove('hidden');
// Set logged in user
document.getElementById('logged-user').textContent = username;
} else {
alert('Usuario o contraseña incorrectos');
}
});
// Logout functionality
document.getElementById('logout-btn').addEventListener('click', function() {
// Show login page and hide app
document.getElementById('login-page').classList.remove('hidden');
document.getElementById('app').classList.add('hidden');
// Reset form
document.getElementById('login-form').reset();
});
// Mobile menu toggle
document.getElementById('menu-toggle').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('active');
});
document.getElementById('close-sidebar').addEventListener('click', function() {
document.querySelector('.sidebar').classList.remove('active');
});
// Navigation between pages
const navLinks = {
'dashboard-link': 'dashboard-page',
'inventory-link': 'inventory-page',
'reports-link': 'reports-page',
'suppliers-link': 'suppliers-page',
'settings-link': 'settings-page'
};
Object.entries(navLinks).forEach(([linkId, pageId]) => {
document.getElementById(linkId).addEventListener('click', function(e) {
e.preventDefault();
// Hide all pages
document.querySelectorAll('[id$="-page"]').forEach(page => {
page.classList.add('hidden');
});
// Show selected page
document.getElementById(pageId).classList.remove('hidden');
// Update page title
const pageTitle = this.querySelector('span').textContent;
document.getElementById('page-title').textContent = pageTitle;
// Close sidebar on mobile
document.querySelector('.sidebar').classList.remove('active');
});
});
// Initialize charts (placeholder)
document.addEventListener('DOMContentLoaded', function() {
// These would be replaced with actual chart initialization
console.log('Charts would be initialized here with Chart.js');
});
</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=bicben1/totaliser" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>