<th>Nome: </th> <th>Número de Alunos: </th> <th>-</th> </tr> </thead> <tbody> <?php foreach ($read->getResult() as $curso) { ?> <tr> <td><?php echo $curso['curso_nome']; ?> </td> <td><?php echo $alunos->getTotalAlunos($curso['curso_id']); ?> </td> <td><a class="btn btn-sm btn-primary" href="painel.php?exe=cursos/ver&curso=<?php echo $curso['curso_id']; ?> " title="Ver mais detalhes sobre o curso <?php echo $curso['curso_nome']; ?> "><i class="fa fa-info-circle"></i> Detalhes</a></td> </tr> <?php } ?> </tbody> </table>