<?php $__env->startSection('CSS'); ?>
<?php echo HTML::style('DataTables/dataTables.bootstrap.min.css'); ?>

<?php echo HTML::style('DataTables/responsive.dataTables.min.css'); ?>

<style type="text/css">
	/*.porcentajes{ display: none; }*/
	.modal .bootstrap-dialog-close-button{
		display: block !important;
	}
	#tblSecuenciasSeguimientos {
		width: 100% !important;
	}
	.numeros,.porcentajes {
		text-align: center !important;
	}
	<?php
		if( !isset($_GET['import']) ){
	?>
	.oculto {
		display: none !important;
	}
	<?php
		}
	?>
</style>
<?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>
<?php
	$cantidadSecuenciasSeguimientos = SecuenciaSeguimiento::join('listas_emails AS le', 'le.id', '=', 'secuencias_seguimientos.listas_emails_id')
	->where('le.clientes_id', '=', Cliente::select('id')->where('users_id', '=', Auth::user()->id)->first()->id)->count();
?>
<?php if( $cantidadSecuenciasSeguimientos == 0 ): ?>
<div class="row">
	<div class="alert alert-danger" style="margin: 15px;">
		<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
		<div class="row">
			<div class="col-md-1" style="text-align: center;">
				<i class="fa fa-exclamation-triangle" style="font-size: 55px;"></i>
			</div>
			<div class="col-md-8">
				<p style="font-size: 18px; font-family: arial;">
					Por favor antes de crear tu primer secuencia de seguimiento asegurate de ver el video "¿Campaña o secuencia de seguimiento?" haciendo <a href="javascript:verVideoDCSS()" style="font-weight: bold;">clic acá</a>
				</p>
			</div>
		</div>
	</div>
</div>
<?php endif; ?>
<div class="row">
	<div class="col-md-12">
		<div class="block-web">
			<div class="header">
				<h3 class="content-header">
					Secuencia de seguimiento de la lista <strong> <?php echo $ListaEmail->nombre; ?> </strong>
					<div data-toggle="buttons" class="button-group pull-right">
						<a class="refresh" onclick="Actualizar()" href="javascript:Actualizar();" style="color: rgba(0, 0, 0, 0.3)"> <i class="fa fa-repeat"> </i> </a>
						<a class="btn active small border-gray right-margin" href="javascript:;" onclick="CambioVista(1)">
							<span class="button-content">
								<input type="radio" name="radio-toggle-1" value="1">
								#
							</span>
						</a>
						<a class="btn small border-gray" href="javascript:;" onclick="CambioVista(2)">
							<span class="button-content">
								<input type="radio" name="radio-toggle-1" value="2">
								%
							</span>
						</a>
					</div>
				</h3>
			</div>
			<div class="porlets-content">
				<div class="table-responsive">
					<table class="table table-striped table-bordered table-hover" id="tblSecuenciasSeguimientos">
						<?php /*<thead>
							<tr>
								<th class="col-md-1"> Orden </th>
								<th class="col-md-1"> Asunto </th>
								<th class="col-md-1"> Enviar en </th>
								<th class="col-md-1"> Enviar a </th>
								<th class="col-md-1"> Estado </th>
								<th class="col-md-1"> Acciones </th>
								<th class="col-md-6 text-center" colspan="12"> Estadisticas </th>
							</tr>
							<tr>
								<th class="col-md-6" colspan="6"></th>
								<th class="col-md-1"> Enviados </th>
								<th class="col-md-1"> Enviados </th>
								<th class="col-md-1"> Abiertos </th>
								<th class="col-md-1"> Abiertos </th>
								<th class="col-md-1"> Clics </th>
								<th class="col-md-1"> Clics </th>
								<th class="col-md-1"> Rebotes </th>
								<th class="col-md-1"> Rebotes </th>
								<th class="col-md-1"> Quejas </th>
								<th class="col-md-1"> Quejas </th>
								<th class="col-md-1"> Desuscritos </th>
								<th class="col-md-1"> Desuscritos </th>
							</tr>
						</thead>*/ ?>
						<thead>
							<tr>
								<th class=""> Orden </th>
								<th class=""> Asunto </th>
								<th class="min-tablet-l"> Enviar en </th>
								<th class="desktop"> Enviar a </th>
								<th class="desktop"> Estado </th>
								<th class="min-tablet-l"> Acciones </th>
								<th class="min-tablet-l text-center" colspan="12"> Estadisticas </th>
							</tr>
							<tr>
								<th class="" colspan="6"></th>
								<th class=""> Enviados </th>
								<th class=""> Enviados </th>
								<th class=""> Abiertos </th>
								<th class=""> Abiertos </th>
								<th class=""> Clics </th>
								<th class=""> Clics </th>
								<th class=""> Rebotes </th>
								<th class=""> Rebotes </th>
								<th class=""> Quejas </th>
								<th class=""> Quejas </th>
								<th class=""> Desuscritos </th>
								<th class=""> Desuscritos </th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
			<div class="bottom">
				<?php /* HTML::linkRoute('SysWebEmailMarketingListasSubscriptoresSecuenciasSeguimientosAgregar', 'Agregar', array($ListaEmail->id), array('class' => 'btn btn-primary')) */ ?>
				<?php echo HTML::linkRoute('SysWebEmailMarketingListasSubscriptoresSecuenciasSeguimientosAgregarV2', 'Agregar', array($ListaEmail->id), array('class' => 'btn btn-primary')); ?>

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

				<?php
					$idL = $ListaEmail->id;
					$Iniciar =  true;
					if($Total > 0){
						$SS1 = SecuenciaSeguimiento::select('id')->where('listas_emails_id', '=', $idL)->where('posicion', '=', 1)->first()->id;
						$sql = "SELECT ID, payload FROM colas_tareas WHERE payload LIKE '%\"SSID\":\"$SS1\"%' OR payload LIKE '%\"SSID\":$SS1%';";
						$colas_tareas = DB::select(DB::raw($sql));
						if( count($colas_tareas) > 0 ){ $Iniciar = false; }
					}
				?>
				<?php if($Iniciar && $Total > 0): ?>
				<button type="button" id="btnIniciar" class="btn btn-success tooltips" data-toggle="tooltip" data-original-title="Si ya tenías registrados los suscriprores, ahora puedes iniciar la secuencia de seguimiento">
					Iniciar
				</button>
				<?php endif; ?>
			</div>
		</div>
	</div>
</div><!--/row end-->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JS'); ?>
<?php echo HTML::script('DataTables/jquery.dataTables.min.js'); ?>

<?php echo HTML::script('DataTables/dataTables.bootstrap.min.js'); ?>

<?php echo HTML::script('DataTables/dataTables.responsive.min.js'); ?>

<script type="text/javascript">
	function Actualizar(){
		var table = $("#tblSecuenciasSeguimientos").DataTable();
		table.ajax.reload(null, false);
	}
	function CambioVista(value){
		var value = value;
		var table = $("#tblSecuenciasSeguimientos").DataTable();
		if(value == 1){
			table.columns(".numeros").visible(true, false);
			table.columns(".porcentajes").visible(false, false);
		}
		else if(value == 2){
			table.columns(".porcentajes").visible(true, false);
			table.columns(".numeros").visible(false, false);
		}
	}
	function PruebaEnvio(idSS, idPl){
		var idSS = idSS;
		$.post(
			"<?php echo URL::route('SysWebEmailMarketingPruebaEnvioSSObtencionCampos'); ?>",
			{idSS:idSS},
			function(data){
				if(data.success){
					var fielset = "";
					var campos = "";
					var clase = "hide"
					if(data.campos.length > 0){
						clase = "";
						for(i=0; i<data.campos.length; i++){
							campos += "<div class='form-group'> \
											<label> "+data.campos[i].nombre+" </label> <br> \
											<input type='text' name='"+data.campos[i].slug+"' class='form-control'> \
											<input type='hidden' name='Campos[]' value='"+data.campos[i].slug+"'> \
											<spam id='err"+data.campos[i].slug+"' class='text-danger'> </spam> \
										</div>"
						}
						var fielset = "<fielset> \
											<legend> Campos personalizados del mensaje </legend> \
											"+campos+" \
										</fielset>";
					}
					var mensaje = " \
						<div class='row'> \
							<div class='col-xs-12'> \
								<form id='frmPruebaEnvio'> \
									<div class='form-group'> \
										<label> Correo electronico a enviar </label> <br> \
										<input type='text' name='correo_electronico0' class='form-control'> \
										<spam id='errcorreo_electronico0' class='text-danger'> </spam> \
									</div> \
									<fielset class='camposP "+clase+"'> \
										<legend> Campos personalizados del mensaje </legend> \
										"+campos+"\
									</fielset> \
									<input type='hidden' name='idSS' value='"+idSS+"'> \
								</form> \
							</div> \
						</div> \
					";
					BootstrapDialog.show({
						title: "Correo de prueba de secuencia de seguimiento",
						type: BootstrapDialog.TYPE_DEFAULT,
						message: mensaje,
						draggable: true,
						closable: false,
						buttons: [{
							id: "btnEnviar",
							label: "Enviar",
							cssClass: "btn-primary",
							action: function(dialogItself){
								$("#btnEnviar").prop("disabled", true).html('<i class="fa fa-spinner fa-spin"></i> Enviando');
								if(idPl != "" || idPl != 0){
									var idP = idPl;
									var ruta = "<?php echo URL::route('SysWebEmailMarketingEnvioCorreoPlantillaxCliente'); ?>";
									var camposP = [];
									var envio = {
										codigoHTML: '',
										tipo: "enviar",
										tipoCliente: "secuencia",
										idS: idSS,
										idP: idP,
										Campos: camposP,
										correo: $('[name="correo_electronico0"]').val(),
									}
									$("#frmPruebaEnvio").find(".camposP").find("input").each(function(){
										var nombre = $(this).attr("name");
										var valor =  $(this).val();
										camposP.push(valor);
										envio[nombre] = valor
									});
									
								}
								else{
									var ruta = "<?php echo URL::route('SysWebEmailMarketingPruebaEnvioSSEnviar'); ?>";
									var envio = $("#frmPruebaEnvio").serialize();
								}
								$.post(
									ruta,
									envio,
									function(data){
										$("#btnEnviar").prop("disabled", false).html("Enviar");
										if(data.success){
											new PNotify({ title: "Felicidades!", text: data.mensaje, type: "success" });
											dialogItself.close();
										}
										else{
											if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); }
											$.each(data.errMensajes, function(key, value){ if(value != ''){ $("#err"+key).html(value); } else{ $("#err"+key).html(""); } });
										}
									},
									"json"
								);
							}
						}]
					});
				}
				else{
					if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); }
				}
			},
			"json"
		);
	}
	<?php /*function Cambiar(idSS, posicion){
		var idSS = idSS;
		var posicion = posicion;
		//alert(idSS);
		var total = <?php echo SecuenciaSeguimiento::where('listas_emails_id', '=', $ListaEmail->id)->count();; ?>;
		var options = "<option> Seleccione la posición a cambiar... </option>";
		for(i = 1; i<=total; i++){
			if(i != posicion){
				options = options+"<option value='"+i+"'>"+i+"</>";
			}
		}
		var mensaje = " \
		<div class='row'> \
			<div class='col-xs-12'> \
				<form id='frmCambiarPosicion'> \
					<p> ¿Con cual secuencia deseas cambiar la posición? </p> \
					<div class='form-group'> \
						<select name='posicion' class='form-control'> \
							"+options+" \
						</select> \
						<spam id='errposicion' class='text-danger'> </spam> \
					</div> \
					<input type='hidden' name='idSS' value='"+idSS+"'> \
				</form> \
			</div> \
		</div>";
		BootstrapDialog.show({
			title: "Intercambiar posición",
			type: BootstrapDialog.TYPE_INFO,
			message: mensaje,
			draggable: true,
			buttons: [{
				id: "btnCambiar",
				label: "Intercambiar",
				cssClass: "btn-info",
				action: function(dialogItself){
					$("#btnCambiar").prop("disabled", true).html('<i class="fa fa-spinner fa-spin"></i> Intercambiando');
					$.post(
						"<?php echo URL::route('SysWebEmailMarketingListasSubscriptoresSecuenciasSeguimientosIntercambiar', array($ListaEmail->id)); ?>",
						$("#frmCambiarPosicion").serialize(),
						function(data){
							$("#btnCambiar").prop("disabled", false).html("Intercambiar");
							if(data.success){
								new PNotify({ title: "Felicidades!", text: data.mensaje, type: "success" });
								dialogItself.close();
								Actualizar();
							}
							else{
								if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); }
								$.each(data.errMensajes, function(key, value){ if(value != ''){ $("#err"+key).html(value); } else{ $("#err"+key).html(""); } });
							}
						},
						"json"
					);
				}
			}]
		});
	}*/ ?>
	function verVideoDCSS(){
		$("#btnPopoverAyuda").trigger("click");
	}
	function Eliminar(id){
		var id = id;
		var mensaje = '<div class="row"> \
			<div class="col-xs-12"> \
				<form id="frmEliminar"> \
					<h2> ¿Seguro que desea eliminar? </h2> \
					<input type="hidden" name="idSS" value="'+id+'"> \
				</form> \
			</div> \
		</div>';
		var urlPOST = "<?php echo URL::route('SysWebEmailMarketingListasSubscriptoresSecuenciasSeguimientosEliminar', array($ListaEmail->id, 'idSS')); ?>";
		urlPOST = urlPOST.replace("idSS", id);
		BootstrapDialog.show({
			title: "Eliminar Secuencia de Seguimiento",
			type: BootstrapDialog.TYPE_DANGER,
			message: mensaje,
			draggable: true,
			cssClass: "ModalEliminar",
			buttons: [{
				id: "btnEliminar",
				label: "Eliminar",
				cssClass: "btn-danger",
				action: function(dialogItself){
					$.isLoading({ text: "Cargando..." }); NProgress.start();
					$("#btnEliminar").prop("disabled", true).html('<i class="fa fa-spinner fa-spin"></i> Eliminando');
					$.post(
						urlPOST,
						{idCE:id},
						function(data){
							$.isLoading("hide"); NProgress.done();
							$("#btnEnviar").prop("disabled", false).html("Eliminar");
							if(data.success){
								new PNotify({ title: "Felicidades!", text: data.mensaje, type: "success" });
								dialogItself.close();
								setTimeout( function(){ window.location.reload(); }, 3000 );
							}
							else{
								if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); }
								$.each(data.errMensajes, function(key, value){ if(value != ''){ $("#err"+key).html(value); } else{ $("#err"+key).html(""); } });
							}
						},
						"json"
					);
				}
			}]
		});
	}
	function activarSecuencia(id){
		var id = id;
		var mensaje = '<div class="row"> \
			<div class="col-xs-12"> \
				<form id="frmActivarSecuencia"> \
					<h2> ¿Estás seguro de que deseas activar este correo? </h2> \
					<div class="alert alert-info" role="alert" style="margin-bottom: 0px;"> \
						Al activarlo se programará su envió a los suscriptores en la secuencia establecida por orden y días de intervalo. Por favor asegurarte de que el diseño y contenido del mismo estén listos para ser enviado a tus suscriptores  \
					</div> \
					<input type="hidden" name="idSS" value="'+id+'"> \
				</form> \
			</div> \
		</div>';
		var urlPOST = "<?php echo URL::route('SysWebEmailMarketingListasSubscriptoresSecuenciasSeguimientosActivar', array($ListaEmail->id, 'idSS')); ?>";
		urlPOST = urlPOST.replace("idSS", id);
		BootstrapDialog.show({
			title: "Activar secuencia de Seguimiento",
			type: BootstrapDialog.TYPE_INFO,
			message: mensaje,
			draggable: true,
			cssClass: "ModalEliminar",
			buttons: [{
				id: "btnActivar",
				label: "Activar",
				cssClass: "btn-info",
				action: function(dialogItself){
					$.isLoading({ text: "Cargando..." }); NProgress.start();
					$("#btnEliminar").prop("disabled", true).html('<i class="fa fa-spinner fa-spin"></i> Activando');
					$.post(
						urlPOST,
						{idCE:id},
						function(data){
							$.isLoading("hide"); NProgress.done();
							$("#btnActivar").prop("disabled", false).html("Activar");
							if(data.success){
								new PNotify({ title: "Felicidades!", text: data.mensaje, type: "success" });
								dialogItself.close();
								setTimeout( function(){ window.location.reload(); }, 3000 );
							}
							else{
								if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); }
								$.each(data.errMensajes, function(key, value){ if(value != ''){ $("#err"+key).html(value); } else{ $("#err"+key).html(""); } });
							}
						},
						"json"
					);
				}
			}]
		});
	}
	<?php
		if( isset($_GET['import']) ){
	?>
	function ReemplazarCodigo(tipo, idP){
		var id = id;
		var mensaje = "<div class='row'> \
			<div class='col-xs-12'> \
				<form id='frmImportarPlantilla' enctype='multipart/form-data'> \
					<div class='form-group'> \
						<label for='flArchivo'>Archivo HTML</label> \
						<input type='file' id='flArchivo' name='flArchivo'> \
						<span class='text-danger' id='errflArchivo'></span> \
					</div> \
					<input type='hidden' name='hdnIdP' value='"+idP+"'> \
					<input type='hidden' name='hdnTipo' value='"+tipo+"'> \
				</form> \
			</div> \
		</div>";
		BootstrapDialog.show({
			title: "Reemplazar Plantilla de archivo HTML",
			type: BootstrapDialog.TYPE_DEFAULT,
			message: mensaje,
			draggable: true,
			cssClass: "ModalImportarPlantilla",
			buttons: [{
				id: "btnImportarPlantilla",
				label: "Reemplazar",
				cssClass: "btn-default",
				action: function(dialogItself){
					$.isLoading({ text: "Cargando..." }); NProgress.start();
					$.isLoading("hide"); NProgress.done();
					$("#btnImportarPlantilla").prop("disabled", true).html('<i class="fa fa-spinner fa-spin"></i> Reemplazando...');
					var formulario = $("#frmImportarPlantilla");
					var formData = new FormData(document.getElementById("frmImportarPlantilla"));
					$.ajax({
						type: "POST",
						url: "<?php echo URL::route('SysWebEmailMarketingPlantillasImportar', array()); ?>",
						data: formData,
						cache: false,
						contentType: false,
						processData: false,
						dataType: "json",
						timeout: 1800000,
						success: function(data){
							$("#btnImportarPlantilla").prop("disabled", false).html("Reemplazar");
							if(data.success){
								new PNotify({ title: "Realizado", text: data.mensaje, type: "success" });
								$(".porlets-content").find("table").each(function(e){
									var table = $(this).DataTable();
									table.ajax.reload(null, false);
								});
								dialogItself.close();
							}
							else{
								if(typeof data.MensajeError != "undefined"){ $("#Errs").html(data.MensajeError); $("#MensajeError").show(); }else{ $("#MensajeError").hide(); $("#Errs").html(""); }
								if(data.mensaje != ""){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); }
								$.each(data.errMensajes, function(key, value){ if(value != ""){ $("#err"+key).html(value); } else{ $("#err"+key).html(""); } });
							}
						},
						error: function(jqXHR, textStatus, errorThrown){
							$("#btnImportarPlantilla").prop("disabled", false).html("Reemplazar");
							new PNotify({ title: "Error", text: textStatus + " " + errorThrown, type: "error" });
						}
					});
				}
			}]
		});
	}
	<?php
		}
	?>
</script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JSOr'); ?>
$(".sidebar-toggle-box").click(function(e){
	var tabla = $("#tblSecuenciasSeguimientos").DataTable();
	tabla.ajax.reload(null, false);
	tabla.draw();
});
$("#tblSecuenciasSeguimientos").DataTable({
	"processing": true,
	"serverSide": true,
	"ajax": "<?php echo URL::route('SysWebEmailMarketingListasSubscriptoresSecuenciasSeguimientos', $ListaEmail->id); ?>",
	columns: [
		{data: 'posicion', name: 'posicion', "searchable": false},
		{data: 'asunto', name: 'asunto'},
		{data: 'dias_despues', name: 'dias_despues', "searchable": false},
		{data: 'etiquetas', name: 'etiquetas', "visible": false, "searchable": false},
		{data: 'estado', name: 'estado', "searchable": false, "class": "text-center"},
		{data: 'acciones', name: 'acciones', "searchable": false, "class": "text-center"},
		{data: 'enviados', name: 'enviados', "searchable": false, "class": "text-center"},
		{data: 'enviadop', name: 'enviadop', "searchable": false, "visible": false, "class": "text-center"},
		{data: 'abiertos', name: 'abiertos', "searchable": false, className: "numeros"},
		{data: 'abiertop', name: 'abiertop', "searchable": false, "visible": false, className: "porcentajes"},
		{data: 'clics', name: 'clics', "searchable": false, className: "numeros"},
		{data: 'clicp', name: 'clicp', "searchable": false, "visible": false, className: "porcentajes"},
		{data: 'rebotes', name: 'rebotes', "searchable": false, className: "numeros"},
		{data: 'rebotep', name: 'rebotep', "searchable": false, "visible": false, className: "porcentajes"},
		{data: 'quejas', name: 'quejas', "searchable": false, className: "numeros"},
		{data: 'quejap', name: 'quejap', "searchable": false, "visible": false, className: "porcentajes"},
		{data: 'desuscritos', name: 'desuscritos', "searchable": false, className: "numeros"},
		{data: 'desuscritop', name: 'desuscritop', "searchable": false, "visible": false, className: "porcentajes"}
	],
	"language": {
		"url": "<?php echo asset('DataTables/Spanish.json'); ?>"
	},
	"ordering": false,
	"fnDrawCallback": function( oSettings ) {
		$(".tooltips").tooltip();
	},
	responsive: true
});
<?php if( Agent::isDesktop() ): ?>
$(".sidebar-toggle-box").trigger("click");
<?php endif; ?>
<?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; ?>
$("#btnIniciar").click(function(){
	$.isLoading({ text: "Cargando..." }); NProgress.start();
	$("#btnIniciar").html('<i class="fa fa-spinner fa-spin"></i> Cargando').prop("disabled", true);
	$.post(
		"<?php echo URL::route('SysWebEmailMarketingListasSubscriptoresSecuenciasSeguimientosIniciar', array($ListaEmail->id)); ?>",
		{ idLE : <?php echo $ListaEmail->id; ?> },
		function(data){
			$.isLoading("hide"); NProgress.done();
			$("#btnIniciar").html("Iniciar").prop("disabled", false);
			if(data.success){
				if(data.mensaje != ''){ new PNotify({ title: "Realizado", text: data.mensaje, type: "success" }); }
				setTimeout(function(){ window.location.reload(); }, 1000);
			}
			else{
				if(data.mensaje != ''){ new PNotify({ title: "Error", text: data.mensaje, type: "error" }); }
			}
		},
		"json"
	);
});
<?php $__env->stopSection(); ?>
<?php echo $__env->make('BaseSistemaWeb', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>