<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php $this->load->view('template/head.php'); ?>
<?php $this->load->view('template/header_admin.php'); ?>
<style>
    body {background: #ffffff !important;}
</style>
<section class="row contenedor-titulo">
    <h3 class="titulo"><?= $titulo ?></h3> 
</section>
<section class="row contenedor">
    <div class="col-lg-12 col-md-12">
<?php if (isset($permisos['listas']['listas_crear'])): ?>
        <div class="grupo-botones-load">
            <a href="<?php echo base_url('listas/create') ?>" class="btn btn-success">Crear Lista</a>
        </div>
<?php  endif; ?>  
        <table id="listing" class="table compact display table-hover nowrap" cellspacing="0" width="100%">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>Nombre</th>
                    <th>Tipo</th>
                    <th>Instancia</th>
                    <th>Ciudad</th>
                    <th><?= $this->session->userdata('NOMBRE_SEGMENTO')  ?></th>
                    <th>Estado</th>
                    <th>Acciones</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <th>ID</th>
                    <th>Nombre</th>
                    <th>Tipo</th>
                    <th>Instancia</th>
                    <th>Ciudad</th>
                    <th><?= $this->session->userdata('NOMBRE_SEGMENTO')  ?></th>
                    <th>Estado</th>
                    <th>Acciones</th>
                </tr>  
            </tfoot>
        </table>
    </div>    
</section>
</div>
<?php
 $data_view['loajs'] = $load_js;
 $this->load->view('template/footer.php', $data_view);
?>