<div class="row">
	<h3>Lista Clientes</h3>

	<div id="btn_tbl_clientes">
		<a href="<?= base_url().'clientes/clientes_add/' ?>" type="button" class="btn me1" title="Nuevo"><i class="bi bi-plus"></i></a>
		<button type="button" class="btn me-1" title="Editar" id="btn_tbl_clientes_edit"><i class="bi bi-pencil"></i></button><button type="button" class="btn me-1" title="Ver" id="btn_tbl_clientes_show"><i class="bi bi-fullscreen"></i></button>
	</div>
	<table id="tbl_clientes" class="table table-responsive" data-toggle="table" data-pagination="true" data-url="<?php echo base_url($tablaurl); ?>" data-classes="table table-hover" data-select-item-name="rtbl_clientes" data-click-to-select="true" data-single-select="true" data-toolbar="#btn_tbl_clientes" data-icon-size="sm"  data-show-columns="true" data-buttons-class="light" data-search="true" >
		<thead>
			<tr>
				<th data-field="state" data-checkbox="true"></th>
				<th data-field="id" data-sortable="true" data-width="4" >id</th>
				<th data-field="rif" data-visible="false">Rif</th>
				<th data-field="razonsocial" data-visible="false">Razon Social</th>
				<th data-field="contacto">Contacto</th>
				<th data-field="telefono1">Telefono1</th>
				<th data-field="telefono2" data-visible="false">Telefono2</th>
				<th data-field="email" data-visible="false">Email</th>
				<th data-field="direccion" data-visible="false">Direccion</th>

			<?php if (session()->get('user_role')=='Administrador') { ?>				
				<th data-field="role" data-visible="true">Role</th>
				<th data-field="cargo" data-visible="true">Cargo</th>
				<th data-field="activo" data-visible="true">Activo</th>
				<th data-field="avatar" data-visible="false">Avatar</th>
				<th data-field="created_at" data-visible="false">Created</th>
				<th data-field="updated_at" data-visible="false">Update</th>
			<?php } ?>
			</tr>
		</thead>
	</table>

</div>