<?php $__env->startSection('CSS'); ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('Contenido'); ?>
<div class="row">
	<div class="col-md-12">
		<h2><i class="icon-sc-landingpageicon"></i> Páginas de captura </h2>
	</div><!--/col-md-12-->
</div><!--/row-->

<div class="row">
	<?php /*
	<div class="col-md-12">
		<nav class="navbar navbar-inverse">
			<ul class="nav navbar-nav">
				<li><a href="<?php echo URL::to('templates'); ?>">Ver todos los Templates</a></li>
				<li><a href="<?php echo URL::to('templates/create'); ?>">Crear un Template</a>
			</ul>
		</nav>
	</div>
	*/ ?>
	<div class="col-md-12">
		<?php if(Session::has('message')): ?>
		<div class="alert alert-info"><?php echo Session::get('message'); ?></div>
		<?php endif; ?>
	</div>
</div>

<div class="row">
	<div class="col-md-12">
		<div class="block-web">
			<div class="header"> <h3 class="content-header"> Listado de plantillas de ventanas emergentes </h3> </div>
			<div class="porlets-content">
				<div class="table-responsive">
					<table class="table table-hover">
						<thead>
							<tr>
								<th class="col-md-3"> Nombre </th>
								<th class="col-md-2"> Tipo </th>
								<th> Plantilla </th>
								<th class="col-md-3"> Acciones </th>
							</tr>
						</thead>
						<tbody>
							<?php $__empty_1 = true; foreach($VentanasEmergentes as $VentanaEmergente): $__empty_1 = false; ?>
							<tr>
								<td> <?php echo $VentanaEmergente->nombre; ?> </td>
								<td> <?php echo $VentanaEmergente->tipo; ?> </td>
								<td>
									<img src="<?php echo asset('SysWeb/PaginasAterrizaje/VentanasEmergentes/'.$VentanaEmergente->imagen); ?>" class="img-thumbnail img-responsive" style="height:200px; height:200px;">
								</td>
								<td>
									<?php echo HTML::linkRoute('SysWebPAterrizajeVentanaEmergenteEditar', 'Editar', array($VentanaEmergente->id), array('class' => 'btn btn-warning')); ?>

									<?php echo Form::open(array('method'=> 'post', 'route' => 'SysWebPAterrizajeVentanaEmergenteEliminar', 'style' => 'display: inline-block;')); ?>

										<?php echo Form::hidden('id', $VentanaEmergente->id, array('id' => 'idV')); ?>

										<?php echo Form::submit('Eliminar', array('class' => 'btn btn-danger')); ?>

									<?php echo Form::close(); ?>

								</td>
							</tr>
							<?php endforeach; if ($__empty_1): ?>
							<tr class="danger"> <td colspan="4"> No existe ningúna plantilla agregada </td> </tr>
							<?php endif; ?>
						</tbody>
					</table>
				</div>
			</div>
			<div class="bottom">
				<?php echo HTML::linkRoute('SysWebPAterrizajeVentanaEmergenteAgregar', 'Agregar', array(), array('class' => 'btn btn-primary')); ?>

			</div>
		</div>
	</div>
</div><!--/row end-->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JS'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JSOr'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('BaseSistemaWeb', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>