File: /home/artinside/sites.artinside.com.br/paliar/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>