File: /home/artinside/sites.artinside.com.br/mainpro/themes/admin/views/fragments/table-newsletter.php
<table class="table table-striped table-advance table-hover">
<?php if($newsletter):?>
<thead>
<tr>
<th><i class="fa fa-code"></i> Matrícula </th>
<th class="hidden-phone"><i class="fa fa-calendar"></i> Data</th>
<th><i class="fa fa-user"></i> Aluno </th>
<th><i class="fa fa-user"></i> Curso </th>
<th><i class=" fa fa-edit"></i> Status</th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach ($newsletter as $n):?>
<tr>
<td><b>[#<?= $n->id?>]</b></td>
<td class="hidden-phone"><?= date_fmt($n->created_at, "d/m/Y")?></td>
<td><?= $n->name?></td>
<td><?= $n->landing ?></td>
<?php if ($n->status == 0):?>
<td><span class="badge badge-pill label-mini white-text bg-info">Aguardando</span></td>
<?php elseif ($n->status == 1):?>
<td><span class="badge badge-pill label-mini white-text bg-success">Finzalizado</span></td>
<?php elseif ($n->status == 2):?>
<td><span class="badge badge-pill label-mini white-text bg-warning">Em Atendimento</span></td>
<?php endif; ?>
<td><a class="btn btn-info btn-sm" href="<?= url("/admin/enrolment/newsletter/{$n->id}"); ?>"><i class="fal fa-search"></i></a></td>
</tr>
<?php endforeach;
else:?>
<tr>
<td class="text-center font-medium">Não existem Inscrições abertas no Momento</td>
</tr>
<?php endif;?>
</tbody>
</table>