<?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'); ?>
<section class="row contenedor-titulo">
    <h3 class="titulo"><?= $titulo ?></h3> 
</section>
<section class="row contenedor">
    <div class="col-lg-12 col-md-12">
        <div class="grupo-botones-load">
<?php if (isset($permisos['usuarios']['usuarios_crear'])): ?>
            <a href="<?php echo base_url('usuarios/create') ?>" class="btn btn-success">Crear Usuario</a>
<?php  endif; ?>
        </div>
        <table id="listing" class="display compact nowrap">
            <thead>
                <tr>
                    <th>Código</th>
                    <th>Perfil</th>
                    <th>Nombre</th>
                    <th>Usuario</th>
                    <th>Email</th>
                    <th>Status</th>
                    <th>Acciones</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <th>Código</th>
                    <th>Perfil</th>
                    <th>Nombre</th>
                    <th>Usuario</th>
                    <th>Email</th>
                    <th>Status</th>
                    <th>Acciones</th>
                </tr>  
            </tfoot>
        </table>
    </div>    
</section>
<?php
 $data_view['loajs'] = $load_js;
 $this->load->view('template/footer.php', $data_view);
?>