Spaces:
Running
Running
File size: 36,946 Bytes
3f6ede1 b8e421a 3f6ede1 b8e421a 3f6ede1 b8e421a 3f6ede1 b8e421a 3f6ede1 b8e421a 3f6ede1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 |
<!DOCTYPE html>
<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 !important;
}
.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> |