<?php 
if (!empty($meja_list)) {
    $no = 1;
    foreach ($meja_list as $meja) {
        ?>
                                <tr>
                                    <td class="text-center"><label><?php 
        echo $no;
        ?>
. </label></td>
                                    <td><?php 
        echo $meja->no_meja;
        ?>
</td>
                                    <td class="text-center"><?php 
        echo general::status_meja($meja->status);
        ?>
</td>
                                    <td class="text-center">
                                    <?php 
        if ($meja->status == '1') {
            ?>
                                        <a href="<?php 
            echo site_url('page=meja&act=meja_reset&id=' . $this->encrypt->encode_url($meja->id));
            ?>
" onclick="return confirm('Reset Meja ?')"><i class="fa fa-recycle"></i> Kosongkan</a>
                                    <?php 
        } else {
            ?>
                                        <i class="fa fa-recycle"></i> Kosongkan
                                    <?php