<h3>Despesas Gerais</h3>
<table class="table table-bordered">
    <thead><tr><th>Tipo</th><th>Descrição</th><th>Valor</th></tr></thead>
    <tbody>
        <?php foreach($dados as $linha): ?>
        <tr>
            <td><?= $linha['tipo'] ?></td>
            <td><?= $linha['descricao'] ?></td>
            <td>R$ <?= number_format($linha['valor'], 2, ',', '.') ?></td>
        </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<a href="<?= URL ?>/relatorios/exportar_excel/despesas_gerais" class="btn btn-success">Exportar Excel</a>