auto / dashboard.html
YURIY33's picture
БАЗА ДАННЫХ ДЛЯ АВТОСЕРВИСА, ВХОД ЧЕРЕЗ АДМИН МЕНЮ - Initial Deployment
1ff31b8 verified
Raw History Blame Contribute Delete
18.4 kB
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AutoService DB - Панель управления</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
background-color: #f8fafc;
}
.sidebar {
transition: all 0.3s;
}
.card-hover:hover {
transform: translateY(-5px);
transition: all 0.3s;
}
</style>
</head>
<body class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="hidden md:flex md:flex-shrink-0">
<div class="flex flex-col w-64 bg-gray-800">
<div class="flex items-center h-16 px-4 bg-gray-900">
<div class="flex items-center">
<i data-feather="tool" class="h-8 w-8 text-blue-400"></i>
<span class="ml-2 text-white text-xl font-bold">AutoService DB</span>
</div>
</div>
<div class="flex flex-col flex-grow pt-5 pb-4 overflow-y-auto">
<div class="px-4 space-y-1">
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-white bg-gray-900 rounded-md group">
<i data-feather="home" class="mr-3 h-5 w-5 text-gray-300"></i>
Главная
</a>
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 rounded-md group">
<i data-feather="users" class="mr-3 h-5 w-5 text-gray-400"></i>
Клиенты
</a>
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 rounded-md group">
<i data-feather="car" class="mr-3 h-5 w-5 text-gray-400"></i>
Автомобили
</a>
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 rounded-md group">
<i data-feather="settings" class="mr-3 h-5 w-5 text-gray-400"></i>
Услуги
</a>
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 rounded-md group">
<i data-feather="calendar" class="mr-3 h-5 w-5 text-gray-400"></i>
Записи
</a>
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 rounded-md group">
<i data-feather="dollar-sign" class="mr-3 h-5 w-5 text-gray-400"></i>
Финансы
</a>
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 rounded-md group">
<i data-feather="package" class="mr-3 h-5 w-5 text-gray-400"></i>
Запчасти
</a>
</div>
<div class="mt-auto px-4 pt-4">
<div class="border-t border-gray-700 pt-4">
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 rounded-md group">
<i data-feather="user" class="mr-3 h-5 w-5 text-gray-400"></i>
Профиль
</a>
<a href="index.html" class="flex items-center px-2 py-2 text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 rounded-md group">
<i data-feather="log-out" class="mr-3 h-5 w-5 text-gray-400"></i>
Выйти
</a>
</div>
</div>
</div>
</div>
</div>
<!-- Main content -->
<div class="flex flex-col flex-1 overflow-hidden">
<!-- Top navigation -->
<div class="flex items-center justify-between h-16 bg-white border-b border-gray-200 px-4">
<div class="flex items-center md:hidden">
<button class="text-gray-500 hover:text-gray-600 focus:outline-none">
<i data-feather="menu" class="h-6 w-6"></i>
</button>
</div>
<div class="flex items-center">
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i data-feather="search" class="h-4 w-4 text-gray-400"></i>
</div>
<input type="text" placeholder="Поиск..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 block w-full sm:text-sm">
</div>
</div>
<div class="flex items-center">
<button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none">
<i data-feather="bell" class="h-6 w-6"></i>
</button>
<div class="ml-3 relative">
<div class="flex items-center">
<img class="h-8 w-8 rounded-full" src="http://static.photos/people/200x200/32" alt="">
<span class="ml-2 text-sm font-medium text-gray-700">Администратор</span>
</div>
</div>
</div>
</div>
<!-- Content area -->
<div class="flex-1 overflow-y-auto p-6 bg-gray-50">
<div class="pb-5 border-b border-gray-200 mb-5">
<h3 class="text-lg leading-6 font-medium text-gray-900">Панель управления</h3>
<p class="mt-2 text-sm text-gray-600">Обзорная информация по вашему автосервису</p>
</div>
<!-- Stats cards -->
<div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4 mb-6">
<div class="bg-white overflow-hidden shadow rounded-lg card-hover">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-blue-500 rounded-md p-3">
<i data-feather="calendar" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Записи сегодня</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">8</div>
<div class="ml-2 flex items-baseline text-sm font-semibold text-green-600">
<i data-feather="arrow-up" class="h-4 w-4"></i>
<span class="sr-only">Increased by</span>
2
</div>
</dd>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-4 sm:px-6">
<div class="text-sm">
<a href="#" class="font-medium text-blue-600 hover:text-blue-500">Посмотреть все<span class="sr-only"> Записи сегодня stats</span></a>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg card-hover">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-500 rounded-md p-3">
<i data-feather="dollar-sign" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Выручка за месяц</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">254,920 ₽</div>
</dd>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-4 sm:px-6">
<div class="text-sm">
<a href="#" class="font-medium text-blue-600 hover:text-blue-500">Аналитика<span class="sr-only"> Выручка за месяц stats</span></a>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg card-hover">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-yellow-500 rounded-md p-3">
<i data-feather="users" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Новые клиенты</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">24</div>
</dd>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-4 sm:px-6">
<div class="text-sm">
<a href="#" class="font-medium text-blue-600 hover:text-blue-500">Посмотреть всех<span class="sr-only"> Новые клиенты stats</span></a>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg card-hover">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-red-500 rounded-md p-3">
<i data-feather="package" class="h-6 w-6 text-white"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Товары на складе</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">143</div>
<div class="ml-2 flex items-baseline text-sm font-semibold text-red-600">
<i data-feather="alert-circle" class="h-4 w-4"></i>
<span class="ml-1">12 заканчиваются</span>
</div>
</dd>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-4 sm:px-6">
<div class="text-sm">
<a href="#" class="font-medium text-blue-600 hover:text-blue-500">Управление<span class="sr-only"> Товары на складе stats</span></a>
</div>
</div>
</div>
</div>
<!-- Recent orders -->
<div class="bg-white shadow overflow-hidden sm:rounded-lg mb-6">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
<h3 class="text-lg leading-6 font-medium text-gray-900">Последние заказы</h3>
<p class="mt-1 text-sm text-gray-500">Список последних 10 заказов</p>
</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">ID</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="relative px-6 py-3"><span class="sr-only">Действия</span></th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#2345</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">Toyota Camry</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">4,500 ₽</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">Завершен</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-blue-600 hover:text-blue-900">Подробнее</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#2344</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">Honda CR-V</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">7,200 ₽</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">В работе</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-blue-600 hover:text-blue-900">Подробнее</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#2343</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">Ford Focus</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">15,800 ₽</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">Ожидает</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="#" class="text-blue-600 hover:text-blue-900">Подробнее</a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="bg-gray-50 px-4 py-4 sm:px-6 text-right">
<button type="button" class="inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Посмотреть все заказы
</button>
</div>
</div>
</div>
</div>
<script>
feather.replace();
</script>
</body>
</html>