Spaces:
Running
Running
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>FinControl - Gestão Financeira</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .sidebar.collapsed { | |
| width: 70px; | |
| } | |
| .sidebar.collapsed .sidebar-text { | |
| display: none; | |
| } | |
| .sidebar.collapsed .logo-text { | |
| display: none; | |
| } | |
| .content { | |
| transition: all 0.3s ease; | |
| } | |
| .content.expanded { | |
| margin-left: 70px; | |
| } | |
| .chart-container { | |
| height: 300px; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| position: fixed; | |
| z-index: 1000; | |
| transform: translateX(-100%); | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| .content { | |
| margin-left: 0 ; | |
| } | |
| .mobile-menu-btn { | |
| display: block; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Mobile Menu Button --> | |
| <button class="mobile-menu-btn fixed top-4 left-4 z-50 bg-blue-600 text-white p-2 rounded-md md:hidden"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-white text-gray-800 w-64 h-screen fixed shadow-lg"> | |
| <div class="p-4 flex items-center justify-between border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-wallet text-blue-600 text-2xl mr-2"></i> | |
| <span class="logo-text font-bold text-xl">FinControl</span> | |
| </div> | |
| <button class="sidebar-toggle hidden md:block text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-chevron-left"></i> | |
| </button> | |
| </div> | |
| <div class="p-4 border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-user text-blue-600"></i> | |
| </div> | |
| <div class="sidebar-text"> | |
| <p class="font-medium">Admin User</p> | |
| <p class="text-xs text-gray-500">Administrador</p> | |
| </div> | |
| </div> | |
| </div> | |
| <nav class="mt-4"> | |
| <div> | |
| <a href="#" class="flex items-center p-3 text-blue-600 bg-blue-50 rounded mx-2"> | |
| <i class="fas fa-tachometer-alt mr-3"></i> | |
| <span class="sidebar-text">Dashboard</span> | |
| </a> | |
| <a href="#" class="flex items-center p-3 text-blue-600 bg-blue-50 rounded mx-2 mt-1"> | |
| <i class="fas fa-cash-register mr-3"></i> | |
| <span class="sidebar-text font-medium">Vendas</span> | |
| <span class="ml-auto bg-blue-100 text-blue-800 text-xs font-medium px-2 py-0.5 rounded-full">Novo</span> | |
| </a> | |
| <a href="#" class="flex items-center p-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded mx-2 mt-1"> | |
| <i class="fas fa-receipt mr-3"></i> | |
| <span class="sidebar-text">Despesas</span> | |
| </a> | |
| <a href="#" class="flex items-center p-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded mx-2 mt-1"> | |
| <i class="fas fa-chart-line mr-3"></i> | |
| <span class="sidebar-text">Relatórios</span> | |
| </a> | |
| <a href="#" class="flex items-center p-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded mx-2 mt-1"> | |
| <i class="fas fa-tags mr-3"></i> | |
| <span class="sidebar-text">Categorias</span> | |
| </a> | |
| <a href="#" class="flex items-center p-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded mx-2 mt-1"> | |
| <i class="fas fa-bullseye mr-3"></i> | |
| <span class="sidebar-text">Metas</span> | |
| </a> | |
| <a href="#" class="flex items-center p-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded mx-2 mt-1"> | |
| <i class="fas fa-users mr-3"></i> | |
| <span class="sidebar-text">Usuários</span> | |
| </a> | |
| <a href="#" class="flex items-center p-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded mx-2 mt-1"> | |
| <i class="fas fa-cog mr-3"></i> | |
| <span class="sidebar-text">Configurações</span> | |
| </a> | |
| </div> | |
| </nav> | |
| <div class="absolute bottom-0 w-full p-4 border-t border-gray-200"> | |
| <a href="#" class="flex items-center p-3 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded"> | |
| <i class="fas fa-sign-out-alt mr-3"></i> | |
| <span class="sidebar-text">Sair</span> | |
| </a> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="content min-h-screen ml-64"> | |
| <header class="bg-white shadow-sm p-4"> | |
| <div class="flex justify-between items-center"> | |
| <h1 class="text-xl font-semibold text-gray-800">Dashboard</h1> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <i class="fas fa-bell text-gray-500 hover:text-blue-600 cursor-pointer"></i> | |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span> | |
| </div> | |
| <div class="relative"> | |
| <i class="fas fa-envelope text-gray-500 hover:text-blue-600 cursor-pointer"></i> | |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span> | |
| </div> | |
| <div class="hidden md:flex items-center"> | |
| <span class="text-sm text-gray-600 mr-2">Admin User</span> | |
| <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center"> | |
| <i class="fas fa-user text-blue-600"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <main class="p-4"> | |
| <!-- Sales Header --> | |
| <div class="flex justify-between items-center mb-6"> | |
| <div> | |
| <h1 class="text-2xl font-bold text-gray-800">Área de Vendas</h1> | |
| <p class="text-sm text-gray-500">Gerencie suas vendas e transações comerciais</p> | |
| </div> | |
| <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center"> | |
| <i class="fas fa-plus mr-2"></i> Nova Venda | |
| </button> | |
| </div> | |
| <!-- Sales Summary Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6"> | |
| <div class="bg-gradient-to-r from-blue-500 to-blue-600 rounded-lg shadow p-4 text-white"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm">Vendas Hoje</p> | |
| <p class="text-2xl font-bold">R$ 3,250</p> | |
| </div> | |
| <div class="bg-white bg-opacity-20 p-2 rounded-full"> | |
| <i class="fas fa-shopping-bag"></i> | |
| </div> | |
| </div> | |
| <p class="text-xs text-blue-100 mt-2"><i class="fas fa-caret-up mr-1"></i>15% em relação a ontem</p> | |
| </div> | |
| <div class="bg-gradient-to-r from-green-500 to-green-600 rounded-lg shadow p-4 text-white"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm text-gray-500">Receitas</p> | |
| <p class="text-2xl font-bold">R$ 25,430</p> | |
| </div> | |
| <div class="bg-blue-100 p-2 rounded-full"> | |
| <i class="fas fa-arrow-up text-blue-600"></i> | |
| </div> | |
| </div> | |
| <p class="text-xs text-green-500 mt-2"><i class="fas fa-caret-up mr-1"></i>12% em relação ao mês passado</p> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-4 border-l-4 border-red-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm text-gray-500">Despesas</p> | |
| <p class="text-2xl font-bold">R$ 8,720</p> | |
| </div> | |
| <div class="bg-red-100 p-2 rounded-full"> | |
| <i class="fas fa-arrow-down text-red-600"></i> | |
| </div> | |
| </div> | |
| <p class="text-xs text-green-500 mt-2"><i class="fas fa-caret-down mr-1"></i>5% em relação ao mês passado</p> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-4 border-l-4 border-green-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm text-gray-500">Lucro</p> | |
| <p class="text-2xl font-bold">R$ 16,710</p> | |
| </div> | |
| <div class="bg-green-100 p-2 rounded-full"> | |
| <i class="fas fa-chart-line text-green-600"></i> | |
| </div> | |
| </div> | |
| <p class="text-xs text-green-500 mt-2"><i class="fas fa-caret-up mr-1"></i>18% em relação ao mês passado</p> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-4 border-l-4 border-yellow-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm text-gray-500">Meta Mensal</p> | |
| <p class="text-2xl font-bold">72%</p> | |
| </div> | |
| <div class="bg-yellow-100 p-2 rounded-full"> | |
| <i class="fas fa-bullseye text-yellow-600"></i> | |
| </div> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2 mt-2"> | |
| <div class="bg-yellow-500 h-2 rounded-full" style="width: 72%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Sales Tools --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6"> | |
| <!-- Quick Sale Panel --> | |
| <div class="bg-white rounded-lg shadow p-4 lg:col-span-1"> | |
| <h2 class="font-medium mb-4">Venda Rápida</h2> | |
| <div class="mb-4"> | |
| <label class="block text-sm text-gray-500 mb-1">Cliente</label> | |
| <select class="w-full border border-gray-300 rounded px-3 py-2 text-sm"> | |
| <option>Cliente Avulso</option> | |
| <option>João Silva</option> | |
| <option>Maria Souza</option> | |
| </select> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-sm text-gray-500 mb-1">Produto</label> | |
| <div class="flex"> | |
| <select class="flex-1 border border-gray-300 rounded-l px-3 py-2 text-sm"> | |
| <option>Selecione um produto</option> | |
| <option>Produto A</option> | |
| <option>Produto B</option> | |
| </select> | |
| <button class="bg-blue-100 text-blue-600 px-3 rounded-r"> | |
| <i class="fas fa-plus"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="border-t pt-4"> | |
| <div class="flex justify-between mb-2"> | |
| <span class="text-sm">Subtotal:</span> | |
| <span class="font-medium">R$ 0,00</span> | |
| </div> | |
| <div class="flex justify-between mb-2"> | |
| <span class="text-sm">Desconto:</span> | |
| <span class="font-medium">R$ 0,00</span> | |
| </div> | |
| <div class="flex justify-between font-bold text-lg border-t pt-2"> | |
| <span>Total:</span> | |
| <span>R$ 0,00</span> | |
| </div> | |
| <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded-lg mt-4"> | |
| Finalizar Venda | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Recent Sales --> | |
| <div class="bg-white rounded-lg shadow p-4 lg:col-span-2"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="font-medium">Últimas Vendas</h2> | |
| <button class="text-sm text-blue-600 hover:text-blue-800">Ver todas</button> | |
| </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-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Cliente</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Itens</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Valor</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">15/06/2023</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">João Silva</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">3</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600">R$ 1,250.00</td> | |
| <td class="px-4 py-2 whitespace-nowrap"> | |
| <span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">Pago</span> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">14/06/2023</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Maria Souza</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">5</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600">R$ 2,100.00</td> | |
| <td class="px-4 py-2 whitespace-nowrap"> | |
| <span class="px-2 py-1 bg-yellow-100 text-yellow-800 text-xs rounded-full">Pendente</span> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">13/06/2023</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Cliente Avulso</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">1</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600">R$ 450.00</td> | |
| <td class="px-4 py-2 whitespace-nowrap"> | |
| <span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">Pago</span> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Monthly Performance --> | |
| <div class="bg-white rounded-lg shadow p-4"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="font-medium">Desempenho Mensal</h2> | |
| <select class="text-sm border border-gray-300 rounded px-2 py-1"> | |
| <option>Últimos 6 meses</option> | |
| <option>Últimos 12 meses</option> | |
| <option>Este ano</option> | |
| </select> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="monthlyChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Revenue by Category --> | |
| <div class="bg-white rounded-lg shadow p-4"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="font-medium">Receitas por Categoria</h2> | |
| <select class="text-sm border border-gray-300 rounded px-2 py-1"> | |
| <option>Este mês</option> | |
| <option>Mês passado</option> | |
| <option>Este ano</option> | |
| </select> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="categoryChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Expense Breakdown --> | |
| <div class="bg-white rounded-lg shadow p-4"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="font-medium">Despesas por Tipo</h2> | |
| <select class="text-sm border border-gray-300 rounded px-2 py-1"> | |
| <option>Este mês</option> | |
| <option>Mês passado</option> | |
| <option>Este ano</option> | |
| </select> | |
| </div> | |
| <div class="chart-container"> | |
| <canvas id="expenseChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Recent Transactions and Quick Actions --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-4"> | |
| <!-- Recent Transactions --> | |
| <div class="bg-white rounded-lg shadow p-4 lg:col-span-2"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="font-medium">Últimas Movimentações</h2> | |
| <button class="text-sm text-blue-600 hover:text-blue-800">Ver todas</button> | |
| </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-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Data</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Descrição</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Categoria</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Valor</th> | |
| <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">15/06/2023</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Venda #1234</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">Produto A</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600">R$ 1,250.00</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600"><span class="px-2 py-1 bg-green-100 rounded-full">Pago</span></td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">14/06/2023</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Fornecedor X</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">Matéria-prima</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-red-600">R$ 850.00</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-yellow-600"><span class="px-2 py-1 bg-yellow-100 rounded-full">Pendente</span></td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">13/06/2023</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Venda #1233</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">Serviço B</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600">R$ 2,100.00</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600"><span class="px-2 py-1 bg-green-100 rounded-full">Pago</span></td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">12/06/2023</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Aluguel</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">Custo Fixo</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-red-600">R$ 3,500.00</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600"><span class="px-2 py-1 bg-green-100 rounded-full">Pago</span></td> | |
| </tr> | |
| <tr> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">10/06/2023</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm font-medium text-gray-900">Venda #1232</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-gray-500">Produto C</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600">R$ 950.00</td> | |
| <td class="px-4 py-2 whitespace-nowrap text-sm text-green-600"><span class="px-2 py-1 bg-green-100 rounded-full">Pago</span></td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <!-- Quick Actions --> | |
| <div class="bg-white rounded-lg shadow p-4"> | |
| <h2 class="font-medium mb-4">Ações Rápidas</h2> | |
| <button class="w-full flex items-center justify-between p-3 mb-3 bg-green-50 text-green-700 rounded-lg hover:bg-green-100 transition"> | |
| <div class="flex items-center"> | |
| <div class="bg-green-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-plus text-green-600"></i> | |
| </div> | |
| <span>Nova Venda</span> | |
| </div> | |
| <i class="fas fa-chevron-right"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between p-3 mb-3 bg-red-50 text-red-700 rounded-lg hover:bg-red-100 transition"> | |
| <div class="flex items-center"> | |
| <div class="bg-red-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-minus text-red-600"></i> | |
| </div> | |
| <span>Nova Despesa</span> | |
| </div> | |
| <i class="fas fa-chevron-right"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between p-3 mb-3 bg-blue-50 text-blue-700 rounded-lg hover:bg-blue-100 transition"> | |
| <div class="flex items-center"> | |
| <div class="bg-blue-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-file-invoice-dollar text-blue-600"></i> | |
| </div> | |
| <span>Gerar Relatório</span> | |
| </div> | |
| <i class="fas fa-chevron-right"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between p-3 bg-purple-50 text-purple-700 rounded-lg hover:bg-purple-100 transition"> | |
| <div class="flex items-center"> | |
| <div class="bg-purple-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-bullseye text-purple-600"></i> | |
| </div> | |
| <span>Definir Meta</span> | |
| </div> | |
| <i class="fas fa-chevron-right"></i> | |
| </button> | |
| <div class="mt-6"> | |
| <h3 class="font-medium text-sm mb-2">Atividades Recentes</h3> | |
| <div class="space-y-3"> | |
| <div class="flex items-start"> | |
| <div class="bg-blue-100 p-1 rounded-full mr-2 mt-1"> | |
| <i class="fas fa-user text-blue-600 text-xs"></i> | |
| </div> | |
| <div> | |
| <p class="text-xs"><span class="font-medium">João Silva</span> adicionou uma nova venda</p> | |
| <p class="text-xs text-gray-500">há 15 minutos</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="bg-green-100 p-1 rounded-full mr-2 mt-1"> | |
| <i class="fas fa-check text-green-600 text-xs"></i> | |
| </div> | |
| <div> | |
| <p class="text-xs">Pagamento de <span class="font-medium">R$ 1,250.00</span> confirmado</p> | |
| <p class="text-xs text-gray-500">há 1 hora</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="bg-yellow-100 p-1 rounded-full mr-2 mt-1"> | |
| <i class="fas fa-exclamation text-yellow-600 text-xs"></i> | |
| </div> | |
| <div> | |
| <p class="text-xs">Despesa de <span class="font-medium">R$ 850.00</span> pendente</p> | |
| <p class="text-xs text-gray-500">há 3 horas</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <script> | |
| // Toggle sidebar | |
| document.querySelector('.sidebar-toggle').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.toggle('collapsed'); | |
| document.querySelector('.content').classList.toggle('expanded'); | |
| const icon = this.querySelector('i'); | |
| if (icon.classList.contains('fa-chevron-left')) { | |
| icon.classList.remove('fa-chevron-left'); | |
| icon.classList.add('fa-chevron-right'); | |
| } else { | |
| icon.classList.remove('fa-chevron-right'); | |
| icon.classList.add('fa-chevron-left'); | |
| } | |
| }); | |
| // Mobile menu toggle | |
| document.querySelector('.mobile-menu-btn').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.toggle('open'); | |
| }); | |
| // Monthly Performance Chart | |
| const monthlyCtx = document.getElementById('monthlyChart').getContext('2d'); | |
| const monthlyChart = new Chart(monthlyCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun'], | |
| datasets: [ | |
| { | |
| label: 'Receitas', | |
| data: [12000, 19000, 15000, 20000, 23000, 25430], | |
| borderColor: 'rgba(59, 130, 246, 1)', | |
| backgroundColor: 'rgba(59, 130, 246, 0.1)', | |
| tension: 0.3, | |
| fill: true | |
| }, | |
| { | |
| label: 'Despesas', | |
| data: [8000, 10000, 9000, 9500, 9200, 8720], | |
| borderColor: 'rgba(239, 68, 68, 1)', | |
| backgroundColor: 'rgba(239, 68, 68, 0.1)', | |
| tension: 0.3, | |
| fill: true | |
| } | |
| ] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'bottom', | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| ticks: { | |
| callback: function(value) { | |
| return 'R$ ' + value.toLocaleString(); | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Revenue by Category Chart | |
| const categoryCtx = document.getElementById('categoryChart').getContext('2d'); | |
| const categoryChart = new Chart(categoryCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Produto A', 'Produto B', 'Serviço C', 'Serviço D', 'Outros'], | |
| datasets: [{ | |
| data: [35, 25, 20, 15, 5], | |
| backgroundColor: [ | |
| 'rgba(59, 130, 246, 0.8)', | |
| 'rgba(16, 185, 129, 0.8)', | |
| 'rgba(245, 158, 11, 0.8)', | |
| 'rgba(139, 92, 246, 0.8)', | |
| 'rgba(156, 163, 175, 0.8)' | |
| ], | |
| borderColor: [ | |
| 'rgba(59, 130, 246, 1)', | |
| 'rgba(16, 185, 129, 1)', | |
| 'rgba(245, 158, 11, 1)', | |
| 'rgba(139, 92, 246, 1)', | |
| 'rgba(156, 163, 175, 1)' | |
| ], | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| position: 'bottom', | |
| }, | |
| tooltip: { | |
| callbacks: { | |
| label: function(context) { | |
| const label = context.label || ''; | |
| const value = context.raw || 0; | |
| const total = context.dataset.data.reduce((a, b) => a + b, 0); | |
| const percentage = Math.round((value / total) * 100); | |
| return `${label}: R$ ${value.toLocaleString()} (${percentage}%)`; | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Expense Breakdown Chart | |
| const expenseCtx = document.getElementById('expenseChart').getContext('2d'); | |
| const expenseChart = new Chart(expenseCtx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Matéria-prima', 'Salários', 'Aluguel', 'Marketing', 'Serviços', 'Outros'], | |
| datasets: [{ | |
| label: 'Despesas', | |
| data: [3200, 2800, 3500, 1500, 1200, 800], | |
| backgroundColor: [ | |
| 'rgba(239, 68, 68, 0.8)', | |
| 'rgba(249, 115, 22, 0.8)', | |
| 'rgba(234, 179, 8, 0.8)', | |
| 'rgba(20, 184, 166, 0.8)', | |
| 'rgba(139, 92, 246, 0.8)', | |
| 'rgba(156, 163, 175, 0.8)' | |
| ], | |
| borderColor: [ | |
| 'rgba(239, 68, 68, 1)', | |
| 'rgba(249, 115, 22, 1)', | |
| 'rgba(234, 179, 8, 1)', | |
| 'rgba(20, 184, 166, 1)', | |
| 'rgba(139, 92, 246, 1)', | |
| 'rgba(156, 163, 175, 1)' | |
| ], | |
| borderWidth: 1 | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| maintainAspectRatio: false, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| ticks: { | |
| callback: function(value) { | |
| return 'R$ ' + value.toLocaleString(); | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Capota1/emi7controle" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |