agora faça a tela de relatorios - Follow Up Deployment
Browse files68 unmodified lines6970717273747542 unmodified lines118119120121122123124125229 unmodified lines355356357358359360116 unmodified lines47747847948048148256 unmodified lines53954054154254354468 unmodified lines<i class="fas fa-clipboard-list mr-3"></i>Frequência</a><a href="#" class="flex items-center p-2 rounded-lg text-gray-700 hover:bg-gray-100"><i class="fas fa-chart-bar mr-3"></i>Relatórios</a>42 unmodified lines<!-- Main Content Area --><main class="flex-1 overflow-y-auto p-6 bg-gray-50"><!-- Stats Cards --><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"><div class="bg-white rounded-lg shadow p-6"><div class="flex items-center justify-between"><div>229 unmodified lines</div><!-- Classes Modal --><div id="classesModal" class="fixed inset-0 bg-gray-600 bg-opacity-50 flex items-center justify-center hidden"><div class="bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-hidden"><div class="p-6">116 unmodified linesdocument.getElementById('classDetails').classList.remove('hidden');});});</script><script>// Toggle sidebar on mobile56 unmodified lines}});// Performance Chartconst performanceCtx = document.getElementById('performanceChart').getContext('2d');const performanceChart = new Chart(performanceCtx, {68 unmodified lines6970717273747542 unmodified lines118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268229 unmodified lines498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591116 unmodified lines70870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777856 unmodified lines83583683783883984084184284384484584684784884985068 unmodified lines<i class="fas fa-clipboard-list mr-3"></i>Frequência</a><a href="#" class="flex items-center p-2 rounded-lg bg-primary text-white" id="reportsLink"><i class="fas fa-chart-bar mr-3"></i>Relatórios</a>42 unmodified lines<!-- Main Content Area --><main class="flex-1 overflow-y-auto p-6 bg-gray-50"><div class="flex items-center justify-between mb-6"><h2 class="text-2xl font-semibold text-gray-800">Relatórios</h2><div class="flex space-x-3"><button class="px-4 py-2 bg-white border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50"><i class="fas fa-download mr-2"></i> Exportar</button><button class="px-4 py-2 bg-primary text-white rounded-md text-sm font-medium hover:bg-primary-dark"><i class="fas fa-print mr-2"></i> Imprimir</button></div></div><!-- Report Filters --><div class="bg-white rounded-lg shadow p-6 mb-6"><h3 class="text-lg font-semibold mb-4">Filtros</h3><div class="grid grid-cols-1 md:grid-cols-4 gap-4"><div><label class="block text-sm font-medium text-gray-700 mb-1">Tipo de Relatório</label><select class="w-full border border-gray-300 rounded-md px-3 py-2"><option>Frequência</option><option>Desempenho</option><option>Financeiro</option><option selected>Consolidado</option></select></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Turma</label><select class="w-full border border-gray-300 rounded-md px-3 py-2"><option>Todas</option><option>Turma A</option><option>Turma B</option><option>Turma C</option></select></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Período Inicial</label><input type="date" class="w-full border border-gray-300 rounded-md px-3 py-2"></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Período Final</label><input type="date" class="w-full border border-gray-300 rounded-md px-3 py-2"></div></div><div class="flex justify-end mt-4"><button class="px-4 py-2 bg-primary text-white rounded-md text-sm font-medium hover:bg-primary-dark">Gerar Relatório</button></div></div><!-- Report Content --><div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"><!-- Summary Report --><div class="bg-white rounded-lg shadow p-6 lg:col-span-2"><h3 class="text-lg font-semibold mb-4">Resumo Geral</h3><div class="chart-container"><canvas id="summaryChart"></canvas></div></div><!-- Key Metrics --><div class="bg-white rounded-lg shadow p-6"><h3 class="text-lg font-semibold mb-4">Métricas Chave</h3><div class="space-y-4"><div class="p-3 bg-blue-50 rounded-lg"><p class="text-sm text-blue-700">Taxa de Frequência</p><p class="text-2xl font-bold text-blue-800">89%</p><p class="text-xs text-blue-600">+2% vs período anterior</p></div><div class="p-3 bg-green-50 rounded-lg"><p class="text-sm text-green-700">Aprovação</p><p class="text-2xl font-bold text-green-800">92%</p><p class="text-xs text-green-600">+5% vs período anterior</p></div><div class="p-3 bg-purple-50 rounded-lg"><p class="text-sm text-purple-700">Média Geral</p><p class="text-2xl font-bold text-purple-800">8.2</p><p class="text-xs text-purple-600">+0.3 vs período anterior</p></div></div></div></div><!-- Detailed Report --><div class="bg-white rounded-lg shadow p-6"><h3 class="text-lg font-semibold mb-4">Relatório Detalhado</h3><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">Turma</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Alunos</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Frequência</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Aprovação</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Média</th><th class="px-6 py-3 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-6 py-4 whitespace-nowrap"><div class="text-sm font-medium text-gray-900">Turma A</div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">25</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">92%</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">96%</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8.7</td><td class="px-6 py-4 whitespace-nowrap"><span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Excelente</span></td></tr><tr><td class="px-6 py-4 whitespace-nowrap"><div class="text-sm font-medium text-gray-900">Turma B</div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">30</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">87%</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">90%</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8.1</td><td class="px-6 py-4 whitespace-nowrap"><span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Bom</span></td></tr><tr><td class="px-6 py-4 whitespace-nowrap"><div class="text-sm font-medium text-gray-900">Turma C</div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">22</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">85%</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">88%</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">7.8</td><td class="px-6 py-4 whitespace-nowrap"><span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Regular</span></td></tr></tbody></table></div></div><div class="bg-white rounded-lg shadow p-6"><div class="flex items-center justify-between"><div>229 unmodified lines</div><!-- Classes Modal --><!-- Attendance Modal --><div id="attendanceModal" class="fixed inset-0 bg-gray-600 bg-opacity-50 flex items-center justify-center hidden"><div class="bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-hidden"><div class="p-6"><div class="flex justify-between items-center mb-4"><h3 class="text-xl font-semibold">Registro de Frequência</h3><button id="closeAttendanceModal" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button></div><div class="mb-6"><div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"><div><label class="block text-sm font-medium text-gray-700 mb-1">Selecione a Turma</label><select id="attendanceClassSelect" class="w-full border border-gray-300 rounded-md px-3 py-2"><option>Turma A</option><option>Turma B</option><option>Turma C</option></select></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Data da Aula</label><input type="date" class="w-full border border-gray-300 rounded-md px-3 py-2"></div></div><div class="overflow-auto max-h-[50vh] border border-gray-200 rounded-lg"><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">Aluno</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Presença</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total Presenças</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Justificativa</th></tr></thead><tbody id="attendanceStudents" class="bg-white divide-y divide-gray-200"><!-- Students will be populated here --><tr><td class="px-6 py-4 whitespace-nowrap"><div class="text-sm font-medium text-gray-900">Ana Silva</div></td><td class="px-6 py-4 whitespace-nowrap"><label class="inline-flex items-center"><input type="checkbox" class="form-checkbox h-5 w-5 text-primary rounded" checked></label></td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">18/20</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/20</td><td class="px-6 py-4 whitespace-nowrap"><input type="text" class="border border-gray-300 rounded-md px-3 py-1 text-sm w-full" placeholder="Motivo da ausência"></td></tr><tr><td class="px-6 py-4 whitespace-nowrap"><div class="text-sm font-medium text-gray-900">Carlos Oliveira</div></td><td class="px-6 py-4 whitespace-nowrap"><label class="inline-flex items-center"><input type="checkbox" class="form-checkbox h-5 w-5 text-primary rounded"></label></td><td class="px-6 py-4 whitespace-nowrap"><input type="text" class="border border-gray-300 rounded-md px-3 py-1 text-sm w-full" placeholder="Motivo da ausência"></td></tr><!-- More students would be added dynamically --></tbody></table></div></div><div class="flex justify-end space-x-3"><button class="px-4 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 hover:bg-gray-50">Cancelar</button><button class="px-4 py-2 bg-primary text-white rounded-md text-sm font-medium hover:bg-primary-dark">Salvar Frequência</button></div></div></div></div><div id="classesModal" class="fixed inset-0 bg-gray-600 bg-opacity-50 flex items-center justify-center hidden"><div class="bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-[90vh] overflow-hidden"><div class="p-6">116 unmodified linesdocument.getElementById('classDetails').classList.remove('hidden');});});// Summary Chart for Reportsconst summaryCtx = document.getElementById('summaryChart').getContext('2d');const summaryChart = new Chart(summaryCtx, {type: 'bar',data: {labels: ['Turma A', 'Turma B', 'Turma C'],datasets: [{label: 'Frequência',data: [92, 87, 85],backgroundColor: '#4F46E5',borderRadius: 4},{label: 'Aprovação',data: [96, 90, 88],backgroundColor: '#10B981',borderRadius: 4},{label: 'Média',data: [87, 81, 78],backgroundColor: '#3B82F6',borderRadius: 4}]},options: {responsive: true,maintainAspectRatio: false,scales: {x: {grid: {display: false}},y: {beginAtZero: true,max: 100,ticks: {callback: function(value) {return value + '%';}}}},plugins: {legend: {position: 'top',},tooltip: {callbacks: {label: function(context) {let label = context.dataset.label || '';if (label === 'Média') {return label + ': ' + context.raw;}return label + ': ' + context.raw + '%';}}}}}});</script><script>// Toggle sidebar on mobile56 unmodified lines}});// Attendance Modal functionalitydocument.querySelector('a[href="#"]:nth-child(4)').addEventListener('click', function(e) {e.preventDefault();document.getElementById('attendanceModal').classList.remove('hidden');});document.getElementById('closeAttendanceModal').addEventListener('click', function() {document.getElementById('attendanceModal').classList.add('hidden');});// Performance Chartconst performanceCtx = document.getElementById('performanceChart').getContext('2d');const performanceChart = new Chart(performanceCtx, {
index.html+309-3