MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/artinside/sites.artinside.com.br/mainpro/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>