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/fhs.artinside.com.br/themes/adminBackup/widgets/product/inks.php
<?php $this->layout("_admin"); ?>
<section class="wrapper">
    <!-- page start-->
    <div class="row" >
        <div class="col-12 text-center my-4 text-sm-center">
            <h3> Consulta de Tintas</h3>
            <p>Consulte as tintas cadastrados</p>
        </div>
    </div>
    <div class="row">

        <div class="col-lg-12">
            <section class="card" style="border-radius: 5px">

                <header class="card-header white-bg" style="border-radius: 5px">
                    <form action="<?= url("/admin/product/inks"); ?>" method="post">
                        <label style="margin-top: 6px;">Busca de Tintas  >> <a href="<?= url("/admin/product/inks"); ?>" style="font-weight: bold">Home</a></label>

                        <input type="text" name="s" value="<?= $search; ?>" placeholder="Pesquisar Tintas:" class="form-control" style="width: 50%; float: right;">
                    </form>
                </header>
            </section>
        </div>

    </div>
    <div class="col-md-12">
        <div class="row product-list">

            <?php if (!$products): ?>
                <div class="message info icon-info">Ainda não existem Tintas cadastrados.</div>
            <?php else: ?>
                <?php foreach ($products as $product):?>

                    <div class="col-md-6 col-lg-4 col-xl-3">
                        <section class="card" style=" border-top-right-radius: 10px; border-top-left-radius: 10px">
                            <div class="pro-img-box categories-img-box" style="height:150px; background-image: url(<?= image($product->cover, 600, 300) ?>); border-top-right-radius: 10px; border-top-left-radius: 10px">

                                <a href="<?= url("/admin/product/ink/{$product->id}"); ?>" class="adtocart bg-blue">
                                    <i class="fal fa-pencil"></i>
                                </a>
                            </div>

                            <div class="card-body text-center" style="margin-top: 20px">
                                <p class="font-xsmall bold"><a target="_blank" href=" <?= url("/product/{$product->uri}"); ?>">
                                        <?php if ($product->post_at > date("Y-m-d H:i:s")): ?>
                                            <span class="icon-clock-o"> <?= $product->title; ?></span>
                                        <?php else: ?>
                                            <span class="icon-check blue-text"> <?= $product->title; ?></span>
                                        <?php endif; ?>
                                    </a></p>
                                <hr>
                                <div class="info">
                                    <p class="icon-clock-o"> <?= date_fmt($product->post_at, "d.m.y \à\s H\hi"); ?></p>
                                    <p class="icon-bar-chart"> <?= $product->views; ?></p>
                                    <p class="icon-pencil-square-o"> <?= ($product->status == "post" ? "Artigo" : ($product->status == "draft" ? "Rascunho" : "Lixo")); ?></p>
                                </div>
                                <hr>

                                <a class="btn btn-danger btn-block white-text"
                                   data-post="<?= url("/admin/product/product"); ?>"
                                   data-action="delete"
                                   data-confirm="Tem certeza que deseja deletar o Produto?"
                                   data-product_id="<?= $product->id; ?>"><i class="fal fa-trash"></i> DELETAR</a>
                            </div>


                        </section>
                    </div>

                <?php endforeach; ?>
            <?php endif; ?>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <section class="card" style="border-radius: 5px">
                    <?= $paginator; ?>
                </section>
            </div>
        </div>

    </div>
    </div>
    <!-- page end-->
</section>
<a href="<?= url("/admin/product/ink"); ?>" class="btn btn-round btn-success btn-cadastrar"><i class="fa fa-plus"></i> Cadastrar</a>