-
-
Save parzibyte/4ad1ab66995123623e41d624fc5c73a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="col-xs-12"> | |
<h1>Ventas</h1> | |
<?php if(!empty($this->session->flashdata())): ?> | |
<div class="alert alert-<?php echo $this->session->flashdata('clase')?>"> | |
<?php echo $this->session->flashdata('mensaje') ?> | |
</div> | |
<?php endif; ?> | |
<div> | |
<a class="btn btn-success" href="<?php echo base_url() ?>index.php/vender">Nueva <i class="fa fa-plus"></i></a> | |
</div> | |
<br> | |
<table class="table table-bordered"> | |
<thead> | |
<tr> | |
<th>Número</th> | |
<th>Fecha</th> | |
<th>Total</th> | |
<th>Detalles</th> | |
<th>Eliminar</th> | |
</tr> | |
</thead> | |
<tbody> | |
<?php foreach($ventas as $venta){ ?> | |
<tr> | |
<td><?php echo $venta->id ?></td> | |
<td><?php echo $venta->fecha ?></td> | |
<td><?php echo $venta->total ?></td> | |
<td><a class="btn btn-info" href="<?php echo base_url() . "index.php/ventas/detalle/" . $venta->id?>"><i class="fa fa-info"></i></a></td> | |
<td><a class="btn btn-danger" href="<?php echo base_url() . "index.php/ventas/eliminar/" . $venta->id?>"><i class="fa fa-trash"></i></a></td> | |
</tr> | |
<?php } ?> | |
</tbody> | |
</table> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment