<?php (defined('BASEPATH')) or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<input type="hidden" id="negocio" name="negocio" value="<?php echo $_SESSION["negocio"]; ?>">

<script>
    $(document).ready(function () {
        $('#GCData').DataTable({
            'bProcessing': true,
            'bServerSide': true,
            "responsive": true,
            "order": [[ 0, "desc" ]],
            "processing": true,
            "serverSide": true,
            "iDisplayLength": <?= $Settings->rows_per_page ?>,//CANTIDAD DE REGISTRO DETERMINADA POR EL USUARIO
            "ajax": {
                "url": "<?= site_url('customers_type/get_customers_type');?>",
            },

            "columns": [
                {"data": "customers_type"},
                {"data": "action"}

            ],
            oLanguage: {
                sZeroRecords: "<center>No se encontraron resultados</center>"
            },
            columnDefs: [
                { orderable: false, targets: -1 }
            ]
        });

    });

</script>

<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box" style="border-top: 2.5px solid #004785;">
                <!--div class="box-header">
                    <h3 class="box-title"><?= lang('list_results'); ?></h3>
                </div-->
                <div class="box-body">
                    <div class="table-responsive">
                        <table id="GCData" class="table table-bordered table-hover table-striped">
                            <thead>
                            <tr>
                                <th style="text-align:left"><?php echo $this->lang->line("name"); ?></th>                            
                                <th style="width:65px;"><?php echo $this->lang->line("actions"); ?></th>
                            </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td colspan="2" class="dataTables_empty"><?= lang('loading_data_from_server') ?></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
</section>
<script src="https://cdn.datatables.net/1.10.23/js/jquery.dataTables.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?= $assets ?>plugins/datatables/datatable.min.js"></script>