Create relatorio.html
Browse files- templates/relatorio.html +59 -0
templates/relatorio.html
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="pt-BR">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<title>Relatório de Simulação de Investimentos</title>
|
| 6 |
+
<style>
|
| 7 |
+
body {
|
| 8 |
+
font-family: Arial, sans-serif; color: #333; margin: 30px;
|
| 9 |
+
}
|
| 10 |
+
h1, h2 {
|
| 11 |
+
color: #00796b;
|
| 12 |
+
text-align: center;
|
| 13 |
+
}
|
| 14 |
+
table {
|
| 15 |
+
width: 100%; border-collapse: collapse; margin-top: 20px;
|
| 16 |
+
font-size: 12px;
|
| 17 |
+
}
|
| 18 |
+
th, td {
|
| 19 |
+
border: 1px solid #ddd; padding: 8px; text-align: center;
|
| 20 |
+
}
|
| 21 |
+
th {
|
| 22 |
+
background-color: #00796b; color: white;
|
| 23 |
+
}
|
| 24 |
+
img {
|
| 25 |
+
display: block; margin: 30px auto; max-width: 90%;
|
| 26 |
+
}
|
| 27 |
+
.intro {
|
| 28 |
+
margin-bottom: 20px; font-size: 14px; line-height: 1.5; text-align: justify;
|
| 29 |
+
}
|
| 30 |
+
</style>
|
| 31 |
+
</head>
|
| 32 |
+
<body>
|
| 33 |
+
<h1>Relatório de Simulação de Investimentos</h1>
|
| 34 |
+
|
| 35 |
+
<div class="intro">
|
| 36 |
+
<p>Este relatório apresenta a comparação dos retornos de diferentes opções de investimento considerando os parâmetros fornecidos:</p>
|
| 37 |
+
<ul>
|
| 38 |
+
<li><strong>Capital Inicial:</strong> R$ {{ capital }}</li>
|
| 39 |
+
<li><strong>Retorno mensal do Studio:</strong> {{ studio_ret }}%</li>
|
| 40 |
+
<li><strong>Valorização anual do imóvel:</strong> {{ valorizacao }}%</li>
|
| 41 |
+
<li><strong>Lucro anual da Franquia:</strong> R$ {{ franquia_ret }}</li>
|
| 42 |
+
<li><strong>Retorno anual em Ações:</strong> {{ acoes_ret }}%</li>
|
| 43 |
+
<li><strong>Retorno anual Renda Fixa:</strong> {{ renda_fixa }}%</li>
|
| 44 |
+
<li><strong>Inflação anual média:</strong> {{ inflacao }}%</li>
|
| 45 |
+
</ul>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<h2>Resultado da Simulação (corrigido pela inflação)</h2>
|
| 49 |
+
|
| 50 |
+
{{ tabela | safe }}
|
| 51 |
+
|
| 52 |
+
<h2>Gráfico Comparativo</h2>
|
| 53 |
+
<img src="data:image/png;base64,{{ grafico }}" alt="Gráfico da Simulação" />
|
| 54 |
+
|
| 55 |
+
<p style="text-align:center; font-size: 10px; margin-top: 40px;">
|
| 56 |
+
Relatório gerado automaticamente.
|
| 57 |
+
</p>
|
| 58 |
+
</body>
|
| 59 |
+
</html>
|