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/raquel/themes/admin/views/fragments/table-orders.php
<table class="table table-striped table-advance table-hover">

    <?php if($orders):?>
    <thead>
    <tr>
        <th><i class="fa fa-code"></i> Número </th>
        <th class="hidden-phone"><i class="fa fa-calendar"></i> Data</th>
        <th><i class="fa fa-user"></i> Cliente</th>
        <th><i class=" fa fa-edit"></i> Status</th>
        <th></th>
    </tr>
    </thead>
    <tbody>
    <?php foreach ($orders as $order):?>
        <tr>
            <td><b>[#<?= order_id($order->id)?>]</b></td>
            <td class="hidden-phone"><?= date_fmt($order->created_at)?></td>
            <td><?= $order->user()->fullName()?></td>
            <td><span class="badge badge-pill label-mini white-text" style="background-color: <?= status($order->status)->color?>"><?= status($order->status)->text?> </span></td>
            <td class="j_actions">
                <?php if($order->status == "paid" AND $order->shipment_code == "Aguardando Entrega"): ?>
                    <button class="btn btn-success btn-sm" data-toggle="modal" data-target="#exampleModalCenter" data-order="<?= order_id($order->id)?>" data-id="<?= $order->id ?>" id="j_shipment_code"><i class="fal fa-truck"></i></button>
                <?php endif; ?>
                <a class="btn btn-info btn-sm" href="<?= url("/admin/order/invoice/{$order->id}"); ?>"><i class="fal fa-eye"></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>