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/www/sabbry/themes/admin/widgets/batch/home.php
<?php $v->layout("_admin"); ?>

<section class="wrapper">
    <!-- page start-->
    <div class="row" >
        <div class="col-12 text-center my-4 text-sm-center">
            <h3> Consulta de Lote de Produtos</h3>
            <p>Consulte os Lotes cadastrados em nosso sistema</p>
        </div>
        <div class="col-md-12">

            <div class="row">
                <div class="col-lg-12">
                    <section class="card">
                        <header class="card-header">
                            <div class="task-progress">
                                <h1>Lotes</h1>

                            </div>
                            <form action="<?= url("/admin/batch/home"); ?>" method="post">

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

                        <table class="table table-striped table-advance table-hover">

                            <?php if($batches):?>
                            <thead>
                            <tr>
                                <th><i class="fal fa-code"></i> Produto </th>
                                <th><i class="fal fa-barcode"></i> Lote </th>
                                <th style="text-align: right"><i class="fal fa-edit"></i> Status</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($batches as $b):?>
                                <tr>
                                    <td> <?= $b->title; ?></td>
                                    <td> <?= $b->batch_number; ?></td>
                                    <td class="j_actions" style="text-align: right">
                                        <a class="btn btn-danger btn-sm white-text"
                                           href="#"
                                           data-post="<?= url("/admin/batch/batch"); ?>"
                                           data-action="delete"
                                           data-confirm="Tem certeza que deseja deletar a variação?"
                                           data-data_id="<?= $b->id; ?>"><i class="fal fa-trash"></i> Deletar</a>
                                        <a class="btn btn-info btn-sm" href="<?= url("/admin/batch/batch/{$b->id}"); ?>"><i class="fal fa-edit"></i> Editar</a>
                                    </td>
                                </tr>

                            <?php endforeach;

                            else:?>
                                <tr>
                                    <td class="text-center font-medium">Não existem Lotes cadastrados no Momento</td>
                                </tr>
                            <?php endif;?>


                            </tbody>
                        </table>
                    </section>
                </div>
            </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/batch/batch"); ?>" class="btn btn-round btn-success btn-cadastrar"><i class="fa fa-plus"></i> Cadastrar</a>