File: /home/artinside/www/finance/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-file-invoice"></i> Título</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->title ?></td>
<td class="j_actions">
<a class="btn btn-success btn-sm" href="<?= url("/admin/order/invoice/{$order->id}"); ?>"><i
class="fal fa-print"></i></a>
<a class="btn btn-info btn-sm" href="<?= url("/admin/order/order/{$order->id}"); ?>"><i
class="fal fa-pen"></i></a>
<a class="btn btn-danger btn-sm white-text
href="#"
data-post="<?= url("/admin/order/order"); ?>"
data-action="delete-order"
data-confirm="Tem certeza que deseja deletar?"
data-id="<?= $order->id; ?>"><i class="fal fa-trash"></i> </a>
</td>
</tr>
<?php endforeach;
else:?>
<tr>
<td class="text-center font-medium">Não existem Ordens no Momento</td>
</tr>
<?php endif; ?>
</tbody>
</table>