<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <div class="content-header">
    <div class="container-fluid">
      <div class="row mb-2">
        <div class="col-sm-6">
          <h1 class="m-0 text-dark">Usuarios</h1>
        </div><!-- /.col -->
        <div class="col-sm-6">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="#">Agregar</a></li>
            <li class="breadcrumb-item active">Usuarios</li>
          </ol>
        </div><!-- /.col -->
      </div><!-- /.row -->
    </div><!-- /.container-fluid -->
  </div>
  <!-- /.content-header -->

  <!-- Main content -->
  <section class="content">
    <div class="container-fluid">
      <div class="row">
        <div class="col-12">
          <div class="card">
            <div class="card-header">
              <div class="col-12">
                <h3 class="card-title">Lista Usuarios</h3>
                <div class="d-flex flex-row-reverse">
                  <div class="p-2"><button class="btn btn-primary" id="add_modal" >Agregar <i class="fa fa-plus-square"></i></button></div>
                </div>  
              </div>
            </div>
            <!-- /.card-header -->
            <div class="card-body">
            <table id="list_users" class="table table-bordered table-striped">
              <thead>
                <tr style="text-align: center;">
                  <th></th>
                  <th>Username</th>
                  <th>Nombres</th>
                  <th>Perfil</th>
                  <th>Status</th>
                  <th>Acciones</th>
                </tr>
              </thead>

              <tfoot>
                <tr>
                  <th></th>
                  <th colspan="5" style="text-align: center;">Lista de Usuarios</th>
                </tr>
              </tfoot>
            </table>
          </div>
          <!-- /.card-body -->
        </div>
        <!-- /.card -->
      </div>

    </div>



  </div>

</section>

</div><!-- /.container-fluid -->
<!-- /.content -->
<!-- /.content-wrapper -->

<div class="modal fade" id="addcat">
  <div class="modal-dialog modal-lg">
    <form role="form">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title" id="title_modal"></h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <div class="card-body">
          <div class="row">
            <div class="form-group col-12">
              <label for="nombre">Nombres y Apellidos <span style="color: red">*</span></label>
              <input type="text" class="form-control esp" id="nombre" placeholder="Nombres y Apellidos" autocomplete="off">
            </div>
            <div class="form-group col-6">
              <label for="nombre">Username <span style="color: red">*</span></label>
              <input type="text" class="form-control esp" id="usuario" placeholder="Nombre de usuario" autocomplete="off">
            </div>
            <div class="form-group view_clave col-6">
              <label for="clave">Contraseña <span style="color: red">(Min. 8 caracteres)*</span></label>
              <input type="password" class="form-control esp" id="clave_user" placeholder="Contraseña:******" autocomplete="off">
            </div>



            
            <div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success col-6" id="sts">
            <label for="status_n">Status</label><br>
              <input type="checkbox" class="custom-control-input" id="status">
              <label class="custom-control-label" for="status"><?php echo $_SESSION['lang']['OPCIONESTATUS'];?> <span style="color: red">*</span></label>
            </div>
          </div>
          </div>
          <input type="hidden" class="form-control" id="id">

        </div>
        <div class="modal-footer justify-content-between">
          <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $_SESSION['lang']['CERRAR'];?></button>
          <button type="button" class="btn btn-primary " id="edit"><?php echo $_SESSION['lang']['SALVAR'];?></button>
          <button type="button" class="btn btn-primary " id="save"><?php echo $_SESSION['lang']['SALVAR'];?></button>

        </div>
      </form>
    </div>
    <!-- /.modal-content -->
  </div>
</div>
<!-- /.modal -->

<div class="modal fade" id="edit-password">
  <div class="modal-dialog modal-lg">
    <form role="form">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title" >Cambio de contraseña <span style="color: red">Campos requeridos *</span></h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <div class="card-body">
           <div class="form-group">
            <label for="pass">Contraseña <span style="color: red">(Min. 8 caracteres)*</span></label>
            <input type="password" class="form-control esp" id="pass" placeholder="Solo si desea cambiar la contraseña">
          </div>
        </div>
        <input type="hidden" class="form-control" id="id1">

      </div>
      <div class="modal-footer justify-content-between">
        <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $_SESSION['lang']['CERRAR'];?></button>
        <button type="button" class="btn btn-primary " id="edit_pass"><?php echo $_SESSION['lang']['SALVAR'];?></button>
      </div>
    </form>
  </div>
  <!-- /.modal-content -->
</div></div>

  <div class="modal fade" id="modal_eliminar">
    <div class="modal-dialog">
      <div class="modal-content bg-danger">
        <div class="modal-header">
          <h4 class="modal-title">¿Desea eliminar usuario?</h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <p>Presiona confirmar para eliminar</p>
        </div>
        <div class="modal-footer justify-content-between">
          <button type="button" class="btn btn-outline-light" data-dismiss="modal">Cerrar</button>
          <button type="button" class="btn btn-outline-light" id="delete_cat">Confirmar</button>
        </div>
      </div>
      <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
  </div>