Spaces:
Running

fleet / index.html
fiotao's picture
Add 3 files
7351f70 verified
Raw History Blame Contribute Delete
75.3 kB
<!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>FleetMaster - Sistema de Gestão de Frota</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> tailwind.config = { theme: { extend: { colors: { primary: '#1e40af', secondary: '#1e3a8a', accent: '#3b82f6', danger: '#ef4444', warning: '#f59e0b', success: '#10b981' } } } } </script> <style> .sidebar { transition: all 0.3s ease; } .sidebar.collapsed { width: 70px; } .sidebar.collapsed .nav-text { display: none; } .sidebar.collapsed .logo-text { display: none; } .sidebar.collapsed .nav-item { justify-content: center; } .content { transition: all 0.3s ease; } .sidebar.collapsed + .content { margin-left: 70px; } .chart-container { height: 300px; } @media (max-width: 768px) { .sidebar { position: absolute; z-index: 1000; left: -250px; } .sidebar.active { left: 0; } .content { margin-left: 0 !important; } .mobile-menu-btn { display: block; } } </style> </head> <body class="bg-gray-100"> <div class="flex h-screen overflow-hidden"> <!-- Sidebar --> <div class="sidebar bg-white shadow-lg w-64 fixed h-full flex flex-col"> <div class="p-4 flex items-center border-b border-gray-200"> <div class="bg-primary p-2 rounded-lg"> <i class="fas fa-car text-white text-xl"></i> </div> <h1 class="logo-text text-xl font-bold ml-3 text-primary">FleetMaster</h1> </div> <div class="flex-1 overflow-y-auto"> <div class="p-4"> <div class="text-xs uppercase text-gray-500 font-semibold mb-2">Menu Principal</div> <ul> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition active" onclick="showDashboard()"> <i class="fas fa-tachometer-alt text-gray-500"></i> <span class="nav-text ml-3">Dashboard</span> </a> </li> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showVehicles()"> <i class="fas fa-car text-gray-500"></i> <span class="nav-text ml-3">Veículos</span> </a> </li> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showDrivers()"> <i class="fas fa-users text-gray-500"></i> <span class="nav-text ml-3">Motoristas</span> </a> </li> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showFuel()"> <i class="fas fa-gas-pump text-gray-500"></i> <span class="nav-text ml-3">Abastecimentos</span> </a> </li> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showMaintenance()"> <i class="fas fa-tools text-gray-500"></i> <span class="nav-text ml-3">Manutenções</span> </a> </li> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showTrips()"> <i class="fas fa-route text-gray-500"></i> <span class="nav-text ml-3">Saídas</span> </a> </li> </ul> </div> <div class="p-4 border-t border-gray-200"> <div class="text-xs uppercase text-gray-500 font-semibold mb-2">Relatórios</div> <ul> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showReports()"> <i class="fas fa-chart-bar text-gray-500"></i> <span class="nav-text ml-3">Relatórios</span> </a> </li> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showAlerts()"> <i class="fas fa-bell text-gray-500"></i> <span class="nav-text ml-3">Alertas</span> <span class="bg-danger text-white text-xs font-bold px-2 py-1 rounded-full ml-auto">3</span> </a> </li> </ul> </div> <div class="p-4 border-t border-gray-200"> <div class="text-xs uppercase text-gray-500 font-semibold mb-2">Configurações</div> <ul> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showSettings()"> <i class="fas fa-cog text-gray-500"></i> <span class="nav-text ml-3">Configurações</span> </a> </li> <li class="mb-1"> <a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showUsers()"> <i class="fas fa-user-shield text-gray-500"></i> <span class="nav-text ml-3">Usuários</span> </a> </li> </ul> </div> </div> <div class="p-4 border-t border-gray-200"> <div class="flex items-center"> <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-8 h-8 rounded-full"> <div class="ml-3"> <div class="text-sm font-medium text-gray-800">Admin User</div> <div class="text-xs text-gray-500">Administrador</div> </div> <button class="ml-auto text-gray-500 hover:text-gray-700"> <i class="fas fa-sign-out-alt"></i> </button> </div> </div> </div> <!-- Mobile menu button --> <button class="mobile-menu-btn fixed top-4 left-4 z-50 bg-white p-2 rounded-lg shadow-md md:hidden" onclick="toggleSidebar()"> <i class="fas fa-bars text-gray-700"></i> </button> <!-- Main Content --> <div class="content flex-1 overflow-auto ml-64"> <!-- Top Navigation --> <div class="bg-white shadow-sm p-4 flex justify-between items-center"> <h2 class="text-xl font-semibold text-gray-800" id="page-title">Dashboard</h2> <div class="flex items-center space-x-4"> <div class="relative"> <input type="text" placeholder="Pesquisar..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> </div> <button class="text-gray-500 hover:text-gray-700 relative"> <i class="fas fa-bell"></i> <span class="absolute -top-1 -right-1 bg-danger text-white text-xs font-bold rounded-full h-4 w-4 flex items-center justify-center">3</span> </button> </div> </div> <!-- Dashboard Content --> <div id="dashboard-content" class="p-4"> <!-- Stats Cards --> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6"> <div class="bg-white rounded-lg shadow p-4"> <div class="flex items-center"> <div class="p-3 rounded-full bg-blue-100 text-blue-600"> <i class="fas fa-car text-xl"></i> </div> <div class="ml-4"> <div class="text-gray-500">Veículos Ativos</div> <div class="text-2xl font-bold">24</div> </div> </div> </div> <div class="bg-white rounded-lg shadow p-4"> <div class="flex items-center"> <div class="p-3 rounded-full bg-green-100 text-green-600"> <i class="fas fa-users text-xl"></i> </div> <div class="ml-4"> <div class="text-gray-500">Motoristas Ativos</div> <div class="text-2xl font-bold">18</div> </div> </div> </div> <div class="bg-white rounded-lg shadow p-4"> <div class="flex items-center"> <div class="p-3 rounded-full bg-yellow-100 text-yellow-600"> <i class="fas fa-gas-pump text-xl"></i> </div> <div class="ml-4"> <div class="text-gray-500">Média de Consumo</div> <div class="text-2xl font-bold">8.5 km/l</div> </div> </div> </div> <div class="bg-white rounded-lg shadow p-4"> <div class="flex items-center"> <div class="p-3 rounded-full bg-red-100 text-red-600"> <i class="fas fa-exclamation-triangle text-xl"></i> </div> <div class="ml-4"> <div class="text-gray-500">Manutenções Pendentes</div> <div class="text-2xl font-bold">5</div> </div> </div> </div> </div> <!-- Charts --> <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6"> <div class="bg-white rounded-lg shadow p-4"> <div class="flex justify-between items-center mb-4"> <h3 class="font-semibold text-gray-800">Consumo de Combustível</h3> <select class="border border-gray-300 rounded px-3 py-1 text-sm"> <option>Últimos 30 dias</option> <option>Últimos 90 dias</option> <option>Este ano</option> </select> </div> <div class="chart-container"> <canvas id="fuelChart"></canvas> </div> </div> <div class="bg-white rounded-lg shadow p-4"> <div class="flex justify-between items-center mb-4"> <h3 class="font-semibold text-gray-800">Custos por Categoria</h3> <select class="border border-gray-300 rounded px-3 py-1 text-sm"> <option>Últimos 30 dias</option> <option>Últimos 90 dias</option> <option>Este ano</option> </select> </div> <div class="chart-container"> <canvas id="costChart"></canvas> </div> </div> </div> <!-- Recent Activities --> <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> <div class="bg-white rounded-lg shadow p-4 lg:col-span-2"> <h3 class="font-semibold text-gray-800 mb-4">Atividades Recentes</h3> <div class="space-y-4"> <div class="flex items-start"> <div class="p-2 rounded-full bg-blue-100 text-blue-600 mr-3"> <i class="fas fa-gas-pump"></i> </div> <div> <div class="font-medium">Novo abastecimento registrado</div> <div class="text-sm text-gray-500">Veículo ABC-1234 abastecido com 45 litros de gasolina</div> <div class="text-xs text-gray-400 mt-1">Há 15 minutos</div> </div> </div> <div class="flex items-start"> <div class="p-2 rounded-full bg-yellow-100 text-yellow-600 mr-3"> <i class="fas fa-tools"></i> </div> <div> <div class="font-medium">Manutenção agendada</div> <div class="text-sm text-gray-500">Veículo XYZ-9876 agendado para revisão preventiva</div> <div class="text-xs text-gray-400 mt-1">Há 2 horas</div> </div> </div> <div class="flex items-start"> <div class="p-2 rounded-full bg-green-100 text-green-600 mr-3"> <i class="fas fa-car"></i> </div> <div> <div class="font-medium">Novo veículo cadastrado</div> <div class="text-sm text-gray-500">Toyota Hilux 2023 adicionada à frota</div> <div class="text-xs text-gray-400 mt-1">Ontem às 14:30</div> </div> </div> <div class="flex items-start"> <div class="p-2 rounded-full bg-red-100 text-red-600 mr-3"> <i class="fas fa-exclamation-triangle"></i> </div> <div> <div class="font-medium">Alerta de documento</div> <div class="text-sm text-gray-500">Seguro do veículo DEF-5678 vence em 7 dias</div> <div class="text-xs text-gray-400 mt-1">Ontem às 09:15</div> </div> </div> </div> </div> <div class="bg-white rounded-lg shadow p-4"> <h3 class="font-semibold text-gray-800 mb-4">Veículos em Manutenção</h3> <div class="space-y-3"> <div class="flex items-center p-2 border-b border-gray-100"> <div class="bg-red-100 text-red-600 p-2 rounded-lg mr-3"> <i class="fas fa-car"></i> </div> <div> <div class="font-medium">ABC-1234</div> <div class="text-sm text-gray-500">Corretiva - Motor</div> </div> <div class="ml-auto text-sm text-gray-500">2 dias</div> </div> <div class="flex items-center p-2 border-b border-gray-100"> <div class="bg-yellow-100 text-yellow-600 p-2 rounded-lg mr-3"> <i class="fas fa-car"></i> </div> <div> <div class="font-medium">XYZ-9876</div> <div class="text-sm text-gray-500">Preventiva - Revisão</div> </div> <div class="ml-auto text-sm text-gray-500">1 dia</div> </div> <div class="flex items-center p-2 border-b border-gray-100"> <div class="bg-blue-100 text-blue-600 p-2 rounded-lg mr-3"> <i class="fas fa-car"></i> </div> <div> <div class="font-medium">DEF-5678</div> <div class="text-sm text-gray-500">Pneus - Troca</div> </div> <div class="ml-auto text-sm text-gray-500">Hoje</div> </div> <div class="flex items-center p-2"> <div class="bg-purple-100 text-purple-600 p-2 rounded-lg mr-3"> <i class="fas fa-car"></i> </div> <div> <div class="font-medium">GHI-3456</div> <div class="text-sm text-gray-500">Elétrica - Bateria</div> </div> <div class="ml-auto text-sm text-gray-500">Hoje</div> </div> </div> </div> </div> </div> <!-- Vehicles Content --> <div id="vehicles-content" class="p-4 hidden"> <div class="flex justify-between items-center mb-6"> <h2 class="text-xl font-semibold text-gray-800">Gestão de Veículos</h2> <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-secondary transition flex items-center" onclick="showAddVehicleModal()"> <i class="fas fa-plus mr-2"></i> Adicionar Veículo </button> </div> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="p-4 border-b border-gray-200 flex justify-between items-center"> <div class="flex items-center"> <input type="text" placeholder="Pesquisar veículo..." class="border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> <button class="ml-2 bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-search text-gray-600"></i> </button> </div> <div class="flex items-center space-x-2"> <select class="border border-gray-300 rounded px-3 py-1 text-sm"> <option>Todos os status</option> <option>Ativo</option> <option>Inativo</option> <option>Em manutenção</option> </select> <button class="bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-filter text-gray-600"></i> </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 class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Placa</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Modelo</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Marca</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Ano</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">KM Atual</th> <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Ações</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">ABC-1234</td> <td class="px-6 py-4 whitespace-nowrap">Hilux</td> <td class="px-6 py-4 whitespace-nowrap">Toyota</td> <td class="px-6 py-4 whitespace-nowrap">2022</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Ativo</span> </td> <td class="px-6 py-4 whitespace-nowrap">45.230 km</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" onclick="showEditVehicleModal()"><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 font-medium text-gray-900">XYZ-9876</td> <td class="px-6 py-4 whitespace-nowrap">Onix</td> <td class="px-6 py-4 whitespace-nowrap">Chevrolet</td> <td class="px-6 py-4 whitespace-nowrap">2021</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Manutenção</span> </td> <td class="px-6 py-4 whitespace-nowrap">32.450 km</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"><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 font-medium text-gray-900">DEF-5678</td> <td class="px-6 py-4 whitespace-nowrap">Toro</td> <td class="px-6 py-4 whitespace-nowrap">Fiat</td> <td class="px-6 py-4 whitespace-nowrap">2023</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Ativo</span> </td> <td class="px-6 py-4 whitespace-nowrap">12.780 km</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"><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 font-medium text-gray-900">GHI-3456</td> <td class="px-6 py-4 whitespace-nowrap">Corolla</td> <td class="px-6 py-4 whitespace-nowrap">Toyota</td> <td class="px-6 py-4 whitespace-nowrap">2020</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Inativo</span> </td> <td class="px-6 py-4 whitespace-nowrap">78.920 km</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"><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 font-medium text-gray-900">JKL-9012</td> <td class="px-6 py-4 whitespace-nowrap">Compass</td> <td class="px-6 py-4 whitespace-nowrap">Jeep</td> <td class="px-6 py-4 whitespace-nowrap">2022</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Ativo</span> </td> <td class="px-6 py-4 whitespace-nowrap">23.560 km</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"><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="p-4 border-t border-gray-200 flex justify-between items-center"> <div class="text-sm text-gray-500">Mostrando 1 a 5 de 24 veículos</div> <div class="flex space-x-1"> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">Anterior</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-blue-500 text-white">1</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">2</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">3</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">Próximo</button> </div> </div> </div> </div> <!-- Drivers Content --> <div id="drivers-content" class="p-4 hidden"> <div class="flex justify-between items-center mb-6"> <h2 class="text-xl font-semibold text-gray-800">Gestão de Motoristas</h2> <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-secondary transition flex items-center" onclick="showAddDriverModal()"> <i class="fas fa-plus mr-2"></i> Adicionar Motorista </button> </div> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="p-4 border-b border-gray-200 flex justify-between items-center"> <div class="flex items-center"> <input type="text" placeholder="Pesquisar motorista..." class="border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> <button class="ml-2 bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-search text-gray-600"></i> </button> </div> <div class="flex items-center space-x-2"> <select class="border border-gray-300 rounded px-3 py-1 text-sm"> <option>Todos os status</option> <option>Ativo</option> <option>Inativo</option> <option>Férias</option> </select> <button class="bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-filter text-gray-600"></i> </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 class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Nome</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">CPF</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">CNH</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Telefone</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Ações</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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt=""> </div> <div class="ml-4"> <div class="font-medium text-gray-900">João Silva</div> <div class="text-gray-500">joao.silva@empresa.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap">123.456.789-00</td> <td class="px-6 py-4 whitespace-nowrap">AB12345678</td> <td class="px-6 py-4 whitespace-nowrap">(11) 98765-4321</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Ativo</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"><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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/2.jpg" alt=""> </div> <div class="ml-4"> <div class="font-medium text-gray-900">Carlos Oliveira</div> <div class="text-gray-500">carlos.oliveira@empresa.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap">987.654.321-00</td> <td class="px-6 py-4 whitespace-nowrap">CD98765432</td> <td class="px-6 py-4 whitespace-nowrap">(11) 91234-5678</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Férias</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"><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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/1.jpg" alt=""> </div> <div class="ml-4"> <div class="font-medium text-gray-900">Ana Santos</div> <div class="text-gray-500">ana.santos@empresa.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap">456.789.123-00</td> <td class="px-6 py-4 whitespace-nowrap">EF45678912</td> <td class="px-6 py-4 whitespace-nowrap">(11) 92345-6789</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Ativo</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"><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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/3.jpg" alt=""> </div> <div class="ml-4"> <div class="font-medium text-gray-900">Pedro Costa</div> <div class="text-gray-500">pedro.costa@empresa.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap">789.123.456-00</td> <td class="px-6 py-4 whitespace-nowrap">GH78912345</td> <td class="px-6 py-4 whitespace-nowrap">(11) 93456-7890</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Inativo</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"><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"> <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/2.jpg" alt=""> </div> <div class="ml-4"> <div class="font-medium text-gray-900">Mariana Lima</div> <div class="text-gray-500">mariana.lima@empresa.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap">321.654.987-00</td> <td class="px-6 py-4 whitespace-nowrap">IJ32165498</td> <td class="px-6 py-4 whitespace-nowrap">(11) 94567-8901</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Ativo</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"><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="p-4 border-t border-gray-200 flex justify-between items-center"> <div class="text-sm text-gray-500">Mostrando 1 a 5 de 18 motoristas</div> <div class="flex space-x-1"> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">Anterior</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-blue-500 text-white">1</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">2</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">3</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">Próximo</button> </div> </div> </div> </div> <!-- Fuel Content --> <div id="fuel-content" class="p-4 hidden"> <div class="flex justify-between items-center mb-6"> <h2 class="text-xl font-semibold text-gray-800">Controle de Abastecimentos</h2> <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-secondary transition flex items-center" onclick="showAddFuelModal()"> <i class="fas fa-plus mr-2"></i> Novo Abastecimento </button> </div> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="p-4 border-b border-gray-200 flex justify-between items-center"> <div class="flex items-center"> <input type="text" placeholder="Pesquisar abastecimento..." class="border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> <button class="ml-2 bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-search text-gray-600"></i> </button> </div> <div class="flex items-center space-x-2"> <select class="border border-gray-300 rounded px-3 py-1 text-sm"> <option>Todos os veículos</option> <option>ABC-1234</option> <option>XYZ-9876</option> <option>DEF-5678</option> </select> <input type="date" class="border border-gray-300 rounded px-3 py-1 text-sm"> <button class="bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-filter text-gray-600"></i> </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 class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Veículo</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Motorista</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Combustível</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Litros</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Valor Total</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">KM</th> <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Ações</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr> <td class="px-6 py-4 whitespace-nowrap">15/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">ABC-1234</td> <td class="px-6 py-4 whitespace-nowrap">João Silva</td> <td class="px-6 py-4 whitespace-nowrap">Gasolina</td> <td class="px-6 py-4 whitespace-nowrap">45,00</td> <td class="px-6 py-4 whitespace-nowrap">R$ 270,00</td> <td class="px-6 py-4 whitespace-nowrap">45.230</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"><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">14/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">DEF-5678</td> <td class="px-6 py-4 whitespace-nowrap">Ana Santos</td> <td class="px-6 py-4 whitespace-nowrap">Etanol</td> <td class="px-6 py-4 whitespace-nowrap">38,50</td> <td class="px-6 py-4 whitespace-nowrap">R$ 200,20</td> <td class="px-6 py-4 whitespace-nowrap">12.780</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"><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">13/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">JKL-9012</td> <td class="px-6 py-4 whitespace-nowrap">Mariana Lima</td> <td class="px-6 py-4 whitespace-nowrap">Diesel</td> <td class="px-6 py-4 whitespace-nowrap">52,00</td> <td class="px-6 py-4 whitespace-nowrap">R$ 312,00</td> <td class="px-6 py-4 whitespace-nowrap">23.560</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"><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">12/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">ABC-1234</td> <td class="px-6 py-4 whitespace-nowrap">João Silva</td> <td class="px-6 py-4 whitespace-nowrap">Gasolina</td> <td class="px-6 py-4 whitespace-nowrap">42,50</td> <td class="px-6 py-4 whitespace-nowrap">R$ 255,00</td> <td class="px-6 py-4 whitespace-nowrap">44.850</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"><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">10/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">XYZ-9876</td> <td class="px-6 py-4 whitespace-nowrap">Carlos Oliveira</td> <td class="px-6 py-4 whitespace-nowrap">Gasolina</td> <td class="px-6 py-4 whitespace-nowrap">35,00</td> <td class="px-6 py-4 whitespace-nowrap">R$ 210,00</td> <td class="px-6 py-4 whitespace-nowrap">32.450</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"><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="p-4 border-t border-gray-200 flex justify-between items-center"> <div class="text-sm text-gray-500">Mostrando 1 a 5 de 48 abastecimentos</div> <div class="flex space-x-1"> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">Anterior</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-blue-500 text-white">1</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">2</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">3</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">Próximo</button> </div> </div> </div> </div> <!-- Maintenance Content --> <div id="maintenance-content" class="p-4 hidden"> <div class="flex justify-between items-center mb-6"> <h2 class="text-xl font-semibold text-gray-800">Controle de Manutenções</h2> <div class="flex space-x-2"> <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-secondary transition flex items-center" onclick="showAddMaintenanceModal()"> <i class="fas fa-plus mr-2"></i> Nova Manutenção </button> <button class="bg-green-500 text-white px-4 py-2 rounded-lg hover:bg-green-600 transition flex items-center"> <i class="fas fa-calendar-alt mr-2"></i> Agendar </button> </div> </div> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="p-4 border-b border-gray-200 flex justify-between items-center"> <div class="flex items-center"> <input type="text" placeholder="Pesquisar manutenção..." class="border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> <button class="ml-2 bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-search text-gray-600"></i> </button> </div> <div class="flex items-center space-x-2"> <select class="border border-gray-300 rounded px-3 py-1 text-sm"> <option>Todos os tipos</option> <option>Preventiva</option> <option>Corretiva</option> </select> <select class="border border-gray-300 rounded px-3 py-1 text-sm"> <option>Todos os status</option> <option>Agendada</option> <option>Em andamento</option> <option>Concluída</option> </select> <button class="bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-filter text-gray-600"></i> </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 class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Veículo</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tipo</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Descrição</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Oficina</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Valor</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Ações</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr> <td class="px-6 py-4 whitespace-nowrap">15/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">ABC-1234</td> <td class="px-6 py-4 whitespace-nowrap">Corretiva</td> <td class="px-6 py-4">Troca de óleo e filtros</td> <td class="px-6 py-4 whitespace-nowrap">Oficina Central</td> <td class="px-6 py-4 whitespace-nowrap">R$ 350,00</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Concluída</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"><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">14/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">XYZ-9876</td> <td class="px-6 py-4 whitespace-nowrap">Preventiva</td> <td class="px-6 py-4">Revisão periódica</td> <td class="px-6 py-4 whitespace-nowrap">Auto Center</td> <td class="px-6 py-4 whitespace-nowrap">R$ 580,00</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Em andamento</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"><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">20/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">DEF-5678</td> <td class="px-6 py-4 whitespace-nowrap">Preventiva</td> <td class="px-6 py-4">Troca de pneus</td> <td class="px-6 py-4 whitespace-nowrap">Pneu Master</td> <td class="px-6 py-4 whitespace-nowrap">R$ 1.200,00</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">Agendada</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"><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">10/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">GHI-3456</td> <td class="px-6 py-4 whitespace-nowrap">Corretiva</td> <td class="px-6 py-4">Reparo no sistema elétrico</td> <td class="px-6 py-4 whitespace-nowrap">Elétrica Veicular</td> <td class="px-6 py-4 whitespace-nowrap">R$ 420,00</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Concluída</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"><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">05/06/2023</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">JKL-9012</td> <td class="px-6 py-4 whitespace-nowrap">Corretiva</td> <td class="px-6 py-4">Reparo no motor</td> <td class="px-6 py-4 whitespace-nowrap">Mecânica Diesel</td> <td class="px-6 py-4 whitespace-nowrap">R$ 1.850,00</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Concluída</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"><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="p-4 border-t border-gray-200 flex justify-between items-center"> <div class="text-sm text-gray-500">Mostrando 1 a 5 de 15 manutenções</div> <div class="flex space-x-1"> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">Anterior</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-blue-500 text-white">1</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">2</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">3</button> <button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white hover:bg-gray-50">Próximo</button> </div> </div> </div> </div> <!-- Trips Content --> <div id="trips-content" class="p-4 hidden"> <div class="flex justify-between items-center mb-6"> <h2 class="text-xl font-semibold text-gray-800">Controle de Saídas</h2> <div class="flex space-x-2"> <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-secondary transition flex items-center" onclick="showAddTripModal()"> <i class="fas fa-plus mr-2"></i> Nova Saída </button> <button class="bg-green-500 text-white px-4 py-2 rounded-lg hover:bg-green-600 transition flex items-center"> <i class="fas fa-car mr-2"></i> Registrar Retorno </button> </div> </div> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="p-4 border-b border-gray-200 flex justify-between items-center"> <div class="flex items-center"> <input type="text" placeholder="Pesquisar saída..." class="border border-gray-300 rounded px-3 py-1 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> <button class="ml-2 bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-search text-gray-600"></i> </button> </div> <div class="flex items-center space-x-2"> <select class="border border-gray-300 rounded px-3 py-1 text-sm"> <option>Todos os veículos</option> <option>ABC-1234</option> <option>XYZ-9876</option> <option>DEF-5678</option> </select> <input type="date" class="border border-gray-300 rounded px-3 py-1 text-sm"> <button class="bg-gray-100 p-2 rounded hover:bg-gray-200"> <i class="fas fa-filter text-gray-600"></i> </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 class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data Saída</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Veículo</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Motorista</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Destino</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">KM Saída</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Ações</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr> <td class="px-6 py-4 whitespace-nowrap">15/06/2023 08:30</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">ABC-1234</td> <td class="px-6 py-4 whitespace-nowrap">João Silva</td> <td class="px-6 py-4">Visita a cliente - São Paulo</td> <td class="px-6 py-4 whitespace-nowrap">45.230</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Retornou</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"><i class="fas fa-eye"></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">15/06/2023 10:15</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">DEF-5678</td> <td class="px-6 py-4 whitespace-nowrap">Ana Santos</td> <td class="px-6 py-4">Entrega de documentos - Campinas</td> <td class="px-6 py-4 whitespace-nowrap">12.780</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Em viagem</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"><i class="fas fa-eye"></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">14/06/2023 07:00</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">JKL-9012</td> <td class="px-6 py-4 whitespace-nowrap">Mariana Lima</td> <td class="px-6 py-4">Evento corporativo - Rio de Janeiro</td> <td class="px-6 py-4 whitespace-nowrap">23.560</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Retornou</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"><i class="fas fa-eye"></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">13/06/2023 14:20</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">XYZ-9876</td> <td class="px-6 py-4 whitespace-nowrap">Carlos Oliveira</td> <td class="px-6 py-4">Coleta de materiais - Guarulhos</td> <td class="px-6 py-4 whitespace-nowrap">32.450</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Retornou</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"><i class="fas fa-eye"></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">12/06/2023 09:45</td> <td class="px-6 py-4 whitespace-nowrap font-medium text-gray-900">GHI-3456</td> <td class="px-6 py-4 whitespace-nowrap">Pedro Costa</td> <td class="px-6 py-4">Visita técnica - Santos</td> <td class="px-6 py-4 whitespace-nowrap">78.920</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Retornou</span> </td> <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> <button class="text-blue-600 </html>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FleetMaster - Sistema de Gestão de Frota</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>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#1e40af',
secondary: '#1e3a8a',
accent: '#3b82f6',
danger: '#ef4444',
warning: '#f59e0b',
success: '#10b981'
}
}
}
}
</script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .nav-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.sidebar.collapsed .nav-item {
justify-content: center;
}
.content {
transition: all 0.3s ease;
}
.sidebar.collapsed + .content {
margin-left: 70px;
}
.chart-container {
height: 300px;
}
@media (max-width: 768px) {
.sidebar {
position: absolute;
z-index: 1000;
left: -250px;
}
.sidebar.active {
left: 0;
}
.content {
margin-left: 0 !important;
}
.mobile-menu-btn {
display: block;
}
}
</style>
</head>
<body class="bg-gray-100">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-white shadow-lg w-64 fixed h-full flex flex-col">
<div class="p-4 flex items-center border-b border-gray-200">
<div class="bg-primary p-2 rounded-lg">
<i class="fas fa-car text-white text-xl"></i>
</div>
<h1 class="logo-text text-xl font-bold ml-3 text-primary">FleetMaster</h1>
</div>
<div class="flex-1 overflow-y-auto">
<div class="p-4">
<div class="text-xs uppercase text-gray-500 font-semibold mb-2">Menu Principal</div>
<ul>
<li class="mb-1">
<a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition active" onclick="showDashboard()">
<i class="fas fa-tachometer-alt text-gray-500"></i>
<span class="nav-text ml-3">Dashboard</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showVehicles()">
<i class="fas fa-car text-gray-500"></i>
<span class="nav-text ml-3">Veículos</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="nav-item flex items-center p-2 text-gray-700 hover:bg-blue-50 rounded-lg transition" onclick="showDrivers()">
<i class="fas fa-users text-gray-500"></i>
<span class="nav-text ml-3">Motoristas</span>
</a>
</li>
<li class="mb-1">