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


<?php $__env->startSection('Contenido'); ?>
<div class="row">
	<div class="col-md-12">
		<h2><i class="fa fa-envelope-o"></i> E-Mail Marketing </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 formularios de <strong> <?php echo $ListaEmail->nombre; ?> </strong> </div>
			<div class="porlets-content">
				<div class="table-responsive">
					<table class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th class="col-md-10"> Nombre </th>
								<th class="col-md-2"> Acciones </th>
							</tr>
						</thead>
						<tbody>
							<?php $__empty_1 = true; foreach($Formularios as $Formulario): $__empty_1 = false; ?>
							<tr>
								<td> <?php echo $Formulario->nombre; ?> </td>
								<td>
									<?php echo HTML::decode(HTML::linkRoute('SysWebEmailMarketingFormulariosEditar', '<i class="fa fa-pencil-square-o"></i>', array($ListaEmail->id, $Formulario->id), array('class' => 'btn btn-warning tooltips', 'data-toggle' => 'tooltip', 'data-original-title' => 'Editar'))); ?>

									<?php echo HTML::decode(HTML::linkRoute('SysWebEmailMarketingFormularioVer', '<i class="fa fa-eye"></i>', array($Formulario->id), array('class' => 'btn btn-default tooltips', 'data-toggle' => 'tooltip', 'data-original-title' => 'Ver en producción'))); ?>

									<?php /* HTML::decode(HTML::linkRoute('SysWebEmailMarketingFormulario', '<i class="fa fa-eye"></i>', array($Formulario->token), array('class' => 'btn btn-default tooltips', 'data-toggle' => 'tooltip', 'data-original-title' => 'Ver en producción', 'target' => '_blank'))) */ ?>
								</td>
							</tr>
							<?php endforeach; if ($__empty_1): ?>
							<tr class="danger"> <td colspan="3"> No existe ningún formulario creado </td> </tr>
							<?php endif; ?>
						</tbody>
					</table>
				</div>
			</div>
			<div class="bottom">
				<?php echo HTML::linkRoute('SysWebEmailMarketingFormulariosAgregar', 'Agregar', array($ListaEmail->id), array('class' => 'btn btn-primary')); ?>

				<?php echo HTML::linkRoute('SysWebEmailMarketingListasSubscriptores', 'Regresar', array(), array('class' => 'btn btn-default')); ?>

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

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

<?php $__env->startSection('JSOr'); ?>
<?php if(Session::has('MensajeS')): ?>
new PNotify({ title: "Realizado", text: "<?php echo Session::get('MensajeS'); ?>", type: "success" });
<?php endif; ?>
<?php if(Session::has('MensajeE')): ?>
new PNotify({ title: "Realizado", text: "<?php echo Session::get('MensajeE'); ?>", type: "error" });
<?php endif; ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('BaseSistemaWeb', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>