<ul class="list-group">
<?php

if(!empty($productos)) {
	foreach($productos as $k => $p) {
		?>
		<li class="list-group-item">
			<div class="row">
				<div class="col-6">
					<span class="ps-id-product badge badge-pill" style="color: white; background-color: blue;" data-ps-id-product="<?php echo $p['id_product']; ?>">
						<?php echo $p['id_product']; ?>
					</span>
					<span class="nombre"><?php echo $p['name']; ?></span>
				</div>
				<div class="col-3">
					<span><?php echo fecha($p['available_date']);?> </span>
				</div>
				<div class="col-3">
					<span>A: <?php echo $p['available_now'];?> </span>
					<span> - </span>
					<span>D: <?php echo $p['available_later'];?> </span>
				</div>
			</div>
		</li>
		<?php
	}
}
else {
	?>
	<li class="list-group-item">A&uacute;n no hay ventas</li>
	<?php
}
?>
</ul>

<?php $this->load->view('productos/modal'); ?>

<script src="<?php echo js('productos.js'); ?>"></script>
