<div class="table-responsive">
	<table class="table table-bordered table-head-bg-info table-bordered-bd-info table-striped">
		<thead>
		    <tr>
				<!--<th>ID</th>
				<th>Creado Por</th>
				<th>Fecha Registro</th>
				<th>Fecha Modificacion</th>
				<th>Estado</th>-->
				<th>Nombre</th>
				<!--<th>Costo Tipo</th>
				<th>Costo</th>-->
				<th>Ubicacion</th>
				<!--<th>Tipo Id</th>-->
				<th>Hora Apertura</th>
				<th>Hora Cierre</th>
				<th class="text-center">Foto Principal</th>
				<!--<th>Id Condominio</th>
				<th>Descripcion</th>-->
				<th class="text-center">Actions</th>
		    </tr>
		</thead>
		<tbody>
			<?php foreach($amenidades as $a){ ?>
		    <tr>
				<!--<td><?php echo $a['id']; ?></td>
				<td><?php echo $a['creado_por']; ?></td>
				<td><?php echo $a['fecha_registro']; ?></td>
				<td><?php echo $a['fecha_modificacion']; ?></td>
				<td><?php echo $a['estado']; ?></td>-->
				<td><?php echo $a['nombre']; ?></td>
				<!--<td><?php echo $a['costo_tipo']; ?></td>
				<td><?php echo $a['costo']; ?></td>-->
				<td><?php echo $a['ubicacion']; ?></td>
				<!--<td><?php echo $a['tipo_id']; ?></td>-->
				<td><?php echo $a['hora_apertura']; ?></td>
				<td><?php echo $a['hora_cierre']; ?></td>
				<td class="text-center">
					<?php 
						if (isset($a['foto_principal']) && !is_null($a['foto_principal']))  {
							?>
								<div class="avatar">
									<img src="<?php echo $a['foto_principal']; ?>" alt="..." class="avatar-img rounded">
								</div>
							<?php
						}
					?>
					
				</td>
				<!--<td><?php echo $a['id_condominio']; ?></td>
				<td><?php echo $a['descripcion']; ?></td>-->
				<td class="text-center">
					<button class="btn btn-sm btn-primary btn-border btn-round"><a href="<?php echo site_url('amenidad/edit/'.$a['id']); ?>">Editar</a></button>
		            <button class="btn btn-sm btn-primary btn-border btn-round"><a href="<?php echo site_url('amenidad/remove/'.$a['id']); ?>">Eliminar</a></button>
		        </td>
		    </tr>
			<?php } ?>
		</tbody>
	</table>
</div>
<div class="pull-right">
    <?php echo $this->pagination->create_links(); ?>    
</div>
