Spaces:
Running
Running
Download index.html from Percha/managercartridge: direct link, hf CLI and curl.
- Browser
- Download file 80.7 kB
-
https://huggingface.co/spaces/Percha/managercartridge/resolve/main/index.html
- Command line
-
hf download hf://spaces/Percha/managercartridge/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Percha/managercartridge/resolve/main/index.html
80.7 kB
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Учет картриджей</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">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.low-stock {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { background-color: #fef2f2; }
50% { background-color: #fee2e2; }
100% { background-color: #fef2f2; }
}
.sidebar {
transition: all 0.3s;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .sidebar-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.sidebar.collapsed .nav-item {
justify-content: center;
}
.main-content {
transition: all 0.3s;
}
.main-content.expanded {
margin-left: 70px;
}
.page-content {
display: none;
}
.page-content.active {
display: block;
}
.badge {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.5rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
}
.badge-success {
background-color: #d1fae5;
color: #065f46;
}
.badge-warning {
background-color: #fef3c7;
color: #92400e;
}
.badge-danger {
background-color: #fee2e2;
color: #991b1b;
}
.badge-info {
background-color: #dbeafe;
color: #1e40af;
}
.status-dot {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 5px;
}
.status-active {
background-color: #10b981;
}
.status-inactive {
background-color: #ef4444;
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Сайдбар -->
<div id="sidebar" class="sidebar bg-blue-800 text-white w-64 flex flex-col">
<div class="p-4 flex items-center border-b border-blue-700">
<div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center">
<i class="fas fa-tint text-xl"></i>
</div>
<span class="logo-text ml-3 text-xl font-bold">Картриджи</span>
</div>
<div class="flex-1 overflow-y-auto py-4">
<nav>
<div class="px-4">
<div class="text-xs uppercase text-blue-400 font-semibold mb-2 sidebar-text">Основное</div>
<a href="#" id="nav-dashboard" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-blue-200 hover:bg-blue-700 hover:text-white mb-1">
<i class="fas fa-tachometer-alt"></i>
<span class="sidebar-text ml-3">Главная</span>
</a>
<a href="#" id="nav-inventory" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg bg-blue-700 text-white mb-1">
<i class="fas fa-boxes"></i>
<span class="sidebar-text ml-3">Наличие</span>
</a>
<a href="#" id="nav-supply" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-blue-200 hover:bg-blue-700 hover:text-white mb-1">
<i class="fas fa-truck"></i>
<span class="sidebar-text ml-3">Поставки</span>
</a>
<a href="#" id="nav-writeoff" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-blue-200 hover:bg-blue-700 hover:text-white mb-1">
<i class="fas fa-trash-alt"></i>
<span class="sidebar-text ml-3">Списания</span>
</a>
</div>
<div class="px-4 mt-6">
<div class="text-xs uppercase text-blue-400 font-semibold mb-2 sidebar-text">Управление</div>
<a href="#" id="nav-settings" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-blue-200 hover:bg-blue-700 hover:text-white mb-1">
<i class="fas fa-cog"></i>
<span class="sidebar-text ml-3">Настройки</span>
</a>
<a href="#" id="nav-export" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-blue-200 hover:bg-blue-700 hover:text-white mb-1">
<i class="fas fa-file-export"></i>
<span class="sidebar-text ml-3">Экспорт</span>
</a>
</div>
</nav>
</div>
<div class="p-4 border-t border-blue-700 flex items-center">
<button id="toggle-sidebar" class="w-8 h-8 rounded-full bg-blue-700 flex items-center justify-center text-blue-200 hover:text-white">
<i class="fas fa-chevron-left"></i>
</button>
<div class="ml-3 sidebar-text">
<div class="text-sm font-medium">Администратор</div>
<div class="text-xs text-blue-400">Картриджист</div>
</div>
</div>
</div>
<!-- Основное содержимое -->
<div id="main-content" class="main-content flex-1 overflow-auto">
<!-- Шапка -->
<header class="bg-white shadow-sm">
<div class="px-6 py-4 flex items-center justify-between">
<div class="flex items-center">
<h1 class="text-xl font-semibold text-gray-800" id="page-title">Наличие</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button id="notifications-btn" class="w-9 h-9 rounded-full bg-gray-100 flex items-center justify-center text-gray-600 hover:bg-gray-200 relative">
<i class="fas fa-bell"></i>
<span id="notification-badge" class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center hidden">3</span>
</button>
<div id="notifications-dropdown" class="hidden absolute right-0 mt-2 w-72 bg-white rounded-md shadow-lg py-1 z-50 border border-gray-200">
<div class="px-4 py-2 border-b border-gray-100">
<div class="flex justify-between items-center">
<h3 class="text-sm font-medium">Уведомления</h3>
<button class="text-xs text-blue-600 hover:text-blue-800" id="clear-notifications">Очистить все</button>
</div>
</div>
<div id="notifications-list" class="max-h-60 overflow-y-auto">
<div class="px-4 py-3 hover:bg-gray-50 text-sm border-b border-gray-100 flex items-start">
<div class="flex-shrink-0 pt-1">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
</div>
<div class="ml-3">
<p class="font-medium">Критически низкий запас</p>
<p class="text-gray-500">Картридж Samsung MLT-D111S почти закончился (осталось 1 шт.)</p>
<p class="text-xs text-gray-400 mt-1">10 мин назад</p>
</div>
</div>
<div class="px-4 py-3 hover:bg-gray-50 text-sm border-b border-gray-100 flex items-start">
<div class="flex-shrink-0 pt-1">
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
</div>
<div class="ml-3">
<p class="font-medium">Низкий запас</p>
<p class="text-gray-500">Картридж Canon 728 (PG-745) требует пополнения (осталось 2 шт.)</p>
<p class="text-xs text-gray-400 mt-1">2 часа назад</p>
</div>
</div>
<div class="px-4 py-3 hover:bg-gray-50 text-sm border-b border-gray-100 flex items-start">
<div class="flex-shrink-0 pt-1">
<div class="w-3 h-3 rounded-full bg-blue-500"></div>
</div>
<div class="ml-3">
<p class="font-medium">Новая поставка</p>
<p class="text-gray-500">Поставка картриджей HP 125A ожидается завтра</p>
<p class="text-xs text-gray-400 mt-1">5 часов назад</p>
</div>
</div>
</div>
</div>
</div>
<div class="relative">
<button id="user-menu-btn" class="flex items-center space-x-2 focus:outline-none">
<div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center text-white">
<i class="fas fa-user"></i>
</div>
</button>
<div id="user-menu-dropdown" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 border border-gray-200">
<div class="px-4 py-2 border-b border-gray-100">
<div class="text-sm font-medium">Администратор</div>
<div class="text-xs text-gray-500">admin@example.com</div>
</div>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Профиль</a>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Настройки</a>
<div class="border-t border-gray-100"></div>
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" id="logout-btn">Выйти</a>
</div>
</div>
</div>
</div>
</header>
<!-- Контент страницы -->
<main class="p-6">
<!-- Дашборд (Главная) -->
<div id="dashboard-page" class="page-content hidden">
<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-sm font-medium text-gray-500">Всего картриджей</p>
<p class="text-2xl font-semibold text-gray-800 mt-1">42</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">
<div class="flex items-center text-sm text-gray-500">
<span class="status-dot status-active"></span>
<span>Активных: 38</span>
</div>
<div class="flex items-center text-sm text-gray-500 mt-1">
<span class="status-dot status-inactive"></span>
<span>Неактивных: 4</span>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Критически мало</p>
<p class="text-2xl font-semibold text-gray-800 mt-1">5</p>
</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">
<div class="flex items-center text-sm text-gray-500">
<span class="status-dot status-danger"></span>
<span>Менее 2 шт.: 3</span>
</div>
<div class="flex items-center text-sm text-gray-500 mt-1">
<span class="status-dot status-warning"></span>
<span>Менее 5 шт.: 2</span>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Поставки</p>
<p class="text-2xl font-semibold text-gray-800 mt-1">3</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-truck text-xl"></i>
</div>
</div>
<div class="mt-4">
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-check-circle text-green-500 mr-2"></i>
<span>Завершено: 2</span>
</div>
<div class="flex items-center text-sm text-gray-500 mt-1">
<i class="fas fa-clock text-yellow-500 mr-2"></i>
<span>Ожидается: 1</span>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Списания</p>
<p class="text-2xl font-semibold text-gray-800 mt-1">12</p>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-trash-alt text-xl"></i>
</div>
</div>
<div class="mt-4">
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-calendar-week text-blue-500 mr-2"></i>
<span>За месяц: 5</span>
</div>
<div class="flex items-center text-sm text-gray-500 mt-1">
<i class="fas fa-calendar-alt text-blue-500 mr-2"></i>
<span>За год: 12</span>
</div>
</div>
</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">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold">Статус картриджей</h2>
<div class="flex space-x-2">
<button class="text-xs bg-gray-100 hover:bg-gray-200 px-2 py-1 rounded">Неделя</button>
<button class="text-xs bg-blue-100 text-blue-700 px-2 py-1 rounded">Месяц</button>
<button class="text-xs bg-gray-100 hover:bg-gray-200 px-2 py-1 rounded">Год</button>
</div>
</div>
<canvas id="statusChart" height="250"></canvas>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold">Топ 5 картриджей</h2>
<button class="text-sm text-blue-600 hover:text-blue-800">Смотреть все</button>
</div>
<div class="space-y-4">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center mr-3">
<i class="fas fa-box"></i>
</div>
<div>
<p class="font-medium">HP 125A (CF400A)</p>
<p class="text-sm text-gray-500">HP LaserJet Pro MFP M125a</p>
</div>
</div>
<div class="text-right">
<p class="font-medium">8 шт.</p>
<p class="text-sm text-green-500">+2 за месяц</p>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-green-100 text-green-600 flex items-center justify-center mr-3">
<i class="fas fa-box"></i>
</div>
<div>
<p class="font-medium">Xerox 106R03930</p>
<p class="text-sm text-gray-500">Xerox WorkCentre 3025BI</p>
</div>
</div>
<div class="text-right">
<p class="font-medium">6 шт.</p>
<p class="text-sm text-green-500">+1 за месяц</p>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-yellow-100 text-yellow-600 flex items-center justify-center mr-3">
<i class="fas fa-box"></i>
</div>
<div>
<p class="font-medium">Brother TN-3480</p>
<p class="text-sm text-gray-500">Brother HL-L2350DW</p>
</div>
</div>
<div class="text-right">
<p class="font-medium">5 шт.</p>
<p class="text-sm text-red-500">-1 за месяц</p>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">
<i class="fas fa-box"></i>
</div>
<div>
<p class="font-medium">Canon 728 (PG-745)</p>
<p class="text-sm text-gray-500">Canon PIXMA G2411</p>
</div>
</div>
<div class="text-right">
<p class="font-medium">4 шт.</p>
<p class="text-sm text-gray-500">0 за месяц</p>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-red-100 text-red-600 flex items-center justify-center mr-3">
<i class="fas fa-box"></i>
</div>
<div>
<p class="font-medium">Samsung MLT-D111S</p>
<p class="text-sm text-gray-500">Samsung Xpress M2070W</p>
</div>
</div>
<div class="text-right">
<p class="font-medium">2 шт.</p>
<p class="text-sm text-red-500">-2 за месяц</p>
</div>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between mb-4">
<h2 class="text-lg font-semibold">Последние действия</h2>
<button class="text-sm text-blue-600 hover:text-blue-800">Смотреть все</button>
</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">Дата</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Действие</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Картридж</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Количество</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Пользователь</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15.05.2023 14:30</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">Поставка</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">HP 125A (CF400A)</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">+5</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Иванов И.И.</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">14.05.2023 11:15</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">Списание</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Samsung MLT-D111S</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">-1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Петров П.П.</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13.05.2023 16:45</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">Списание</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Brother TN-3480</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">-1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Сидоров С.С.</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12.05.2023 09:20</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">Поставка</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Xerox 106R03930</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">+3</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Иванов И.И.</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10.05.2023 13:10</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">Изменение</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Canon 728 (PG-745)</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Минимум: 3→4</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Администратор</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Инвентаризация (Наличие) -->
<div id="inventory-page" class="page-content active">
<div class="bg-white rounded-lg shadow p-6 mb-6">
<div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6">
<h2 class="text-lg font-semibold mb-4 md:mb-0">Учет картриджей</h2>
<div class="flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-2">
<div class="relative">
<input type="text" id="inventory-search" placeholder="Поиск по модели или принтеру..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500 w-full sm: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>
</div>
<button id="add-cartridge-btn" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-plus mr-2"></i>
<span>Добавить</span>
</button>
<button id="filter-btn" class="bg-white border border-gray-300 hover:bg-gray-50 text-gray-700 px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-filter mr-2"></i>
<span>Фильтр</span>
</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">Модель</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Принтер</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">В наличии</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Минимум</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Статус</th>
<th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Действия</th>
</tr>
</thead>
<tbody id="inventory-table" class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">HP 125A (CF400A)</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">HP LaserJet Pro MFP M125a</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="badge badge-success">Норма</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 edit-cartridge-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 writeoff-cartridge-btn">Списать</button>
</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Canon 728 (PG-745)</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Canon PIXMA G2411</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="badge badge-warning">Мало</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 edit-cartridge-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 writeoff-cartridge-btn">Списать</button>
</td>
</tr>
<tr class="low-stock">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Samsung MLT-D111S</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Samsung Xpress M2070W</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="badge badge-danger">Критично</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 edit-cartridge-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 writeoff-cartridge-btn">Списать</button>
</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Xerox 106R03930</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Xerox WorkCentre 3025BI</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">5</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="badge badge-success">Норма</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 edit-cartridge-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 writeoff-cartridge-btn">Списать</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Brother TN-3480</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Brother HL-L2350DW</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="badge badge-info">На грани</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 edit-cartridge-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 writeoff-cartridge-btn">Списать</button>
</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Epson 252XL</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Epson L805</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">7</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="badge badge-success">Норма</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 edit-cartridge-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 writeoff-cartridge-btn">Списать</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Kyocera TK-1120</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Kyocera ECOSYS P2040dw</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">2</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="badge badge-danger">Закончился</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 edit-cartridge-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 writeoff-cartridge-btn">Списать</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 flex items-center justify-between border-t border-gray-200">
<div class="flex-1 flex justify-between sm:hidden">
<button 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">
Назад
</button>
<button 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">
Вперед
</button>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Показано
<span class="font-medium">1</span>
-
<span class="font-medium">7</span>
из
<span class="font-medium">12</span>
записей
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<button 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">Назад</span>
<i class="fas fa-chevron-left"></i>
</button>
<button aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
1
</button>
<button 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
</button>
<button 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">Вперед</span>
<i class="fas fa-chevron-right"></i>
</button>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- Поставки -->
<div id="supply-page" class="page-content hidden">
<div class="bg-white rounded-lg shadow p-6 mb-6">
<div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6">
<h2 class="text-lg font-semibold mb-4 md:mb-0">Учет поставок</h2>
<div class="flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-2">
<div class="relative">
<input type="text" id="supply-search" placeholder="Поиск по поставщику или картриджу..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500 w-full sm: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>
</div>
<button id="add-supply-btn" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-plus mr-2"></i>
<span>Новая поставка</span>
</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">Дата</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Поставщик</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Картридж</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Количество</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Стоимость</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Статус</th>
<th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Действия</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">ООО "ТехноСнаб"</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">HP 125A (CF400A)</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12,500 ₽</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">Завершено</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 edit-supply-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 cancel-supply-btn">Отменить</button>
</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">ИП Иванов</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Xerox 106R03930</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">9,750 ₽</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">Завершено</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 edit-supply-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 cancel-supply-btn">Отменить</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">05.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">ООО "ОфисКомплект"</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Canon 728 (PG-745)</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8,200 ₽</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">Завершено</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 edit-supply-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 cancel-supply-btn">Отменить</button>
</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">20.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">ООО "ТехноСнаб"</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Samsung MLT-D111S</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5,600 ₽</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">В пути</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 edit-supply-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 cancel-supply-btn">Отменить</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">25.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">ИП Петров</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Brother TN-3480</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">7,800 ₽</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">Ожидается</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 edit-supply-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 cancel-supply-btn">Отменить</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 flex items-center justify-between border-t border-gray-200">
<div class="flex-1 flex justify-between sm:hidden">
<button 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">
Назад
</button>
<button 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">
Вперед
</button>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Показано
<span class="font-medium">1</span>
-
<span class="font-medium">5</span>
из
<span class="font-medium">8</span>
записей
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<button 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">Назад</span>
<i class="fas fa-chevron-left"></i>
</button>
<button aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
1
</button>
<button 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
</button>
<button 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">Вперед</span>
<i class="fas fa-chevron-right"></i>
</button>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- Списания -->
<div id="writeoff-page" class="page-content hidden">
<div class="bg-white rounded-lg shadow p-6 mb-6">
<div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6">
<h2 class="text-lg font-semibold mb-4 md:mb-0">Учет списаний</h2>
<div class="flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-2">
<div class="relative">
<input type="text" id="writeoff-search" placeholder="Поиск по картриджу или причине..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500 w-full sm: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>
</div>
<button id="add-writeoff-btn" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-plus mr-2"></i>
<span>Новое списание</span>
</button>
<button id="writeoff-report-btn" class="bg-white border border-gray-300 hover:bg-gray-50 text-gray-700 px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-file-pdf mr-2"></i>
<span>Отчет</span>
</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">Дата</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Картридж</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Количество</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Причина</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Сотрудник</th>
<th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Действия</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">14.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Samsung MLT-D111S</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Закончился тонер</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Петров П.П.</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 edit-writeoff-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 delete-writeoff-btn">Удалить</button>
</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">13.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Brother TN-3480</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Повреждение</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Сидоров С.С.</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 edit-writeoff-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 delete-writeoff-btn">Удалить</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">HP 125A (CF400A)</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Истечение срока</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Иванов И.И.</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 edit-writeoff-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 delete-writeoff-btn">Удалить</button>
</td>
</tr>
<tr class="bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">08.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Canon 728 (PG-745)</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Утечка чернил</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Кузнецов К.К.</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 edit-writeoff-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 delete-writeoff-btn">Удалить</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">05.05.2023</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Xerox 106R03930</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Повреждение</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Петров П.П.</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 edit-writeoff-btn">Изменить</button>
<button class="text-red-600 hover:text-red-900 delete-writeoff-btn">Удалить</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 flex items-center justify-between border-t border-gray-200">
<div class="flex-1 flex justify-between sm:hidden">
<button 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">
Назад
</button>
<button 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">
Вперед
</button>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Показано
<span class="font-medium">1</span>
-
<span class="font-medium">5</span>
из
<span class="font-medium">12</span>
записей
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<button 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">Назад</span>
<i class="fas fa-chevron-left"></i>
</button>
<button aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">
1
</button>
<button 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
</button>
<button 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">Вперед</span>
<i class="fas fa-chevron-right"></i>
</button>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- Настройки -->
<div id="settings-page" class="page-content hidden">
<div class="bg-white rounded-lg shadow p-6 mb-6">
<h2 class="text-lg font-semibold mb-6">Настройки системы</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="border border-gray-200 rounded-lg p-4">
<h3 class="font-medium mb-3 flex items-center">
<i class="fas fa-user-cog mr-2 text-blue-600"></i>
Пользователи
</h3>
<p class="text-sm text-gray-500 mb-4">Управление пользователями системы</p>
<button id="manage-users-btn" class="w-full bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg">
Управление
</button>
</div>
<div class="border border-gray-200 rounded-lg p-4">
<h3 class="font-medium mb-3 flex items-center">
<i class="fas fa-print mr-2 text-blue-600"></i>
Принтеры
</h3>
<p class="text-sm text-gray-500 mb-4">Добавление и редактирование моделей принтеров</p>
<button id="manage-printers-btn" class="w-full bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg">
Управление
</button>
</div>
<div class="border border-gray-200 rounded-lg p-4">
<h3 class="font-medium mb-3 flex items-center">
<i class="fas fa-building mr-2 text-blue-600"></i>
Подразделения
</h3>
<p class="text-sm text-gray-500 mb-4">Настройка структуры подразделений компании</p>
<button id="manage-departments-btn" class="w-full bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg">
Управление
</button>
</div>
</div>
<div class="border-t border-gray-200 pt-6 mb-6">
<h3 class="font-medium mb-4 flex items-center">
<i class="fas fa-bell mr-2 text-blue-600"></i>
Уведомления
</h3>
<div class="space-y-4">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium">Критически низкий запас</p>
<p class="text-xs text-gray-500">Уведомлять при остатке менее 2 картриджей</p>
</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" value="" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[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-blue-600"></div>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium">Низкий запас</p>
<p class="text-xs text-gray-500">Уведомлять при остатке менее 5 картриджей</p>
</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" value="" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[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-blue-600"></div>
</label>
</div>
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium">Ожидаемые поставки</p>
<p class="text-xs text-gray-500">Уведомлять за день до ожидаемой поставки</p>
</div>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" value="" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[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-blue-600"></div>
</label>
</div>
</div>
</div>
<div class="border-t border-gray-200 pt-6">
<h3 class="font-medium mb-4 flex items-center">
<i class="fas fa-shield-alt mr-2 text-blue-600"></i>
Безопасность
</h3>
<div class="space-y-4">
<div>
<label for="password-change" class="block text-sm font-medium text-gray-700 mb-1">Смена пароля</label>
<div class="flex space-x-2">
<input type="password" id="password-change" placeholder="Новый пароль" class="flex-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md">
<input type="password" id="password-confirm" placeholder="Подтверждение" class="flex-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm">Сохранить</button>
</div>
</div>
<div>
<label for="session-timeout" class="block text-sm font-medium text-gray-700 mb-1">Таймаут сессии (мин)</label>
<input type="number" id="session-timeout" value="30" class="focus:ring-blue-500 focus:border-blue-500 block w-
</html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Учет картриджей</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">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.low-stock {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { background-color: #fef2f2; }
50% { background-color: #fee2e2; }
100% { background-color: #fef2f2; }
}
.sidebar {
transition: all 0.3s;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .sidebar-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.sidebar.collapsed .nav-item {
justify-content: center;
}
.main-content {
transition: all 0.3s;
}
.main-content.expanded {
margin-left: 70px;
}
.page-content {
display: none;
}
.page-content.active {
display: block;
}
.badge {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.5rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
}
.badge-success {
background-color: #d1fae5;
color: #065f46;
}
.badge-warning {
background-color: #fef3c7;
color: #92400e;
}
.badge-danger {
background-color: #fee2e2;
color: #991b1b;
}
.badge-info {
background-color: #dbeafe;
color: #1e40af;
}
.status-dot {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 5px;
}
.status-active {
background-color: #10b981;
}
.status-inactive {
background-color: #ef4444;
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Сайдбар -->
<div id="sidebar" class="sidebar bg-blue-800 text-white w-64 flex flex-col">
<div class="p-4 flex items-center border-b border-blue-700">
<div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center">
<i class="fas fa-tint text-xl"></i>
</div>
<span class="logo-text ml-3 text-xl font-bold">Картриджи</span>
</div>
<div class="flex-1 overflow-y-auto py-4">
<nav>
<div class="px-4">
<div class="text-xs uppercase text-blue-400 font-semibold mb-2 sidebar-text">Основное</div>
<a href="#" id="nav-dashboard" class="nav-item flex items-center px-4 py-3 text-sm font-medium rounded-lg text-blue-200 hover:bg-blue-700 hover:text-white mb-1">
<i class="fas fa-tachometer-alt"></i>