<div class="row">
	<h3>Lista Ordenes</h3>
	
	<div id="btn_tbl_ordenes">
		<?php if (session()->get('user_cargo') == 'Supervisor') { ?>
			<button type="button" class="btn me-1" title="Editar" id="btn_tbl_ordenes_edit"><i class="bi bi-pencil"></i></button> 
		<?php } ?>
		
		<button type="button" class="btn me-1" title="Cotizacion" id="btn_tbl_ordenes_cotizacion"><i class="bi bi-clipboard"></i></button>
	</div>
	<table id="tbl_ordenes" 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_ordenes" data-click-to-select="true" data-single-select="true" data-toolbar="#btn_tbl_ordenes" 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"  >Or</th>
				<th data-field="estado" data-visible="true">Estado</th>
				<th data-field="id_cliente" data-visible="false">Id Cliente</th>
				<th data-field="id_equipo" data-visible="false">Id Equipo</th>
				<th data-field="fecha_visita" data-visible="true" data-formatter="">F.Visita</th>
				<th data-field="contacto">Contacto</th>
				<th data-field="telefono1">Telefono1</th>
				<th data-field="rif" data-visible="false">Rif</th>
				<th data-field="razonsocial" data-visible="false">Razon Social</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>
				<th data-field="modelo" data-visible="true">Modelo</th>
				<th data-field="serial" data-visible="false">Serial</th>
				<th data-field="linea" data-visible="false">Linea</th>
				<th data-field="falla_reportada" data-visible="true">Falla_reportada</th>
				<th data-field="informe" data-visible="false">Informe</th>
				<th data-field="tipo_servicio" data-visible="true">Servicio</th>
				<th data-field="tecnico" data-visible="false">Tecnico</th>
				<th data-field="usuario" data-visible="false">Usuario</th>
				<th data-field="completado" data-visible="false">completado</th>
				<th data-field="created_at" data-visible="false">Created</th>
				<th data-field="updated_at" data-visible="false">Update</th>
				<th data-field="deleted_at" data-visible="false">Deleted</th>
			</tr>
		</thead>
	</table>

</div>