File: /home/artinside/www/raquel/themes/admin/views/fragments/table-testimonials.php
<table class="table table-striped table-advance table-hover">
<?php if($testimonials):?>
<thead>
<tr>
<th></th>
<th><i class="fa fa-user"></i> Autor</th>
<th><i class="fa fa-file-text"></i> Conteúdo</th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach ($testimonials as $testimonial):?>
<tr>
<td><img src="<?= image($testimonial->cover, "50", "50")?>" class="rounded"></td>
<td><?= $testimonial->author ?></td>
<td><span class="small" ><?=str_limit_words($testimonial->content, 20)?> </span></td>
<td class="j_actions">
<a class="btn btn-info btn-sm" href="<?= url("/admin/testimonials/testimonial/{$testimonial->id}"); ?>"><i class="fal fa-eye"></i></a>
<a class="btn btn-danger btn-sm white-text"
href="#"
data-post="<?= url("/admin/testimonials/testimonial"); ?>"
data-action="delete"
data-confirm="Tem certeza que deseja deletar o depoimento?"
data-id="<?= $testimonial->id; ?>"><i class="fal fa-trash"></i></a>
</td>
</tr>
<?php endforeach;
else:?>
<tr>
<td class="text-center font-medium">Não existem pedidos abertos no Momento</td>
</tr>
<?php endif;?>
</tbody>
</table>