<!DOCTYPE html>
<html lang="es">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
		<meta name="description" content="Mercadeo en línea basado en resultados">
		<meta name="keywords" content="Sume Clientes">
		<link rel="apple-touch-icon" sizes="57x57" href="<?php echo asset('SysWeb/SumeClientes/Favicons/apple-icon-57x57.png'); ?>">
		<link rel="apple-touch-icon" sizes="60x60" href="<?php echo asset('SysWeb/SumeClientes/Favicons/apple-icon-60x60.png'); ?>">
		<link rel="apple-touch-icon" sizes="72x72" href="<?php echo asset('SysWeb/SumeClientes/Favicons/apple-icon-72x72.png'); ?>">
		<link rel="apple-touch-icon" sizes="76x76" href="<?php echo asset('SysWeb/SumeClientes/Favicons/apple-icon-76x76.png'); ?>">
		<link rel="apple-touch-icon" sizes="114x114" href="<?php echo asset('SysWeb/SumeClientes/Favicons/apple-icon-114x114.png'); ?>">
		<link rel="apple-touch-icon" sizes="120x120" href="<?php echo asset('SysWeb/SumeClientes/Favicons/apple-icon-120x120.png'); ?>">
		<link rel="apple-touch-icon" sizes="144x144" href="<?php echo asset('SysWeb/SumeClientes/Favicons/apple-icon-144x144.png'); ?>">
		<link rel="apple-touch-icon" sizes="152x152" href="<?php echo asset('SysWeb/SumeClientes/Favicons/apple-icon-152x152.png'); ?>">
		<link rel="apple-touch-icon" sizes="180x180" href="<?php echo asset('SysWeb/SumeClientes/Favicons/apple-icon-180x180.png'); ?>">
		<link rel="icon" type="image/png" sizes="192x192"  href="<?php echo asset('SysWeb/SumeClientes/Favicons/android-icon-192x192.png'); ?>">
		<link rel="icon" type="image/png" sizes="32x32" href="<?php echo asset('SysWeb/SumeClientes/Favicons/favicon-32x32.png'); ?>">
		<link rel="icon" type="image/png" sizes="96x96" href="<?php echo asset('SysWeb/SumeClientes/Favicons/favicon-96x96.png'); ?>">
		<link rel="icon" type="image/png" sizes="16x16" href="<?php echo asset('SysWeb/SumeClientes/Favicons/favicon-16x16.png'); ?>">
		<link rel="manifest" href="<?php echo asset('SysWeb/SumeClientes/Favicons/manifest.json'); ?>">
		<meta name="msapplication-TileColor" content="#ffffff">
		<meta name="msapplication-TileImage" content="<?php echo asset('SysWeb/SumeClientes/Favicons/ms-icon-144x144.png'); ?>">
		<meta name="theme-color" content="#ffffff">
		<title> Plataforma Sume Clientes </title>
		<!-- Bootstrap -->
		<?php echo HTML::style('WebPro/bootstrap/css/bootstrap.min.css'); ?>

		<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
		<?php echo HTML::style('WebPro/css/font-awesome.min.css'); ?>

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

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

		<?php echo HTML::style('PNotify/pnotify.custom.min.css'); ?>

		<?php echo HTML::style('NProgress/nprogress.min.css'); ?>

		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
			<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
		<style type="text/css">
			#nprogress > .bar{ height: 4px; background: #56BE22; }
			#nprogress > .bar > .peg{ box-shadow: 0 0 10px #56BE22, 0 0 5px #56BE22; }
			#nprogress > .spinner > .spinner-icon{ border-top-color: #56BE22; border-left-color: #56BE22; }
			@media  only screen and (min-width: 768px){
				#livechat-compact-container {
					right: auto;
					left: 70px !important;
					transform: scale(2) !important;
					height: 85px !important;
				}
			}
			@media  only screen and (min-width: 767px){
				#livechat-compact-container{
					height: 75px !important
				}
			}
			@media  only screen and (min-width: 767px){
				#livechat-compact-container {
					height: 75px !important;
					width: 75px !important;
				}
			}
			#chat-widget-container {
				top: unset !important;
				right: unset !important;
				opacity: 0 !important;
			}
			#chat-widget-container.mostrar {
				opacity: 1 !important;
			}
		</style>
		<?php /*@if( App::environment() == 'produccion' && strpos(public_path(), 'desarrollo') !== false )*/ ?>
		<?php if( App::environment() == 'produccion' && !(strpos(public_path(), 'desarrollo') !== false) ): ?>
			<?php /*<?php if( Auth::user()->tipo != 'A' ): ?>*/ ?>
		<?php echo $__env->make('ExternosHead', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			<?php /*<?php endif; ?>*/ ?>
		<?php endif; ?>
		<?php echo $__env->yieldContent('CSS'); ?>
	</head>
	<body>
		<div class="login-container">
			<div class="middle-login" style="top: 30% !important;">
				<?php if(strpos(public_path(), 'prospector') !== false): ?>
				<img src="<?php echo asset('SysWeb/SumeClientes/logo-prospector.png'); ?>" class="img-responsive" title="logo-sumeclientes" alt="Más Prospector">
				<?php else: ?>
				<img src="<?php echo asset('SysWeb/SumeClientes/logo-sumeclientes.png'); ?>" class="img-responsive" title="logo-sumeclientes" alt="Sume Clientes">
				<?php endif; ?>
				<div class="block-web">
					<div class="head">
						<h3 class="text-center"> Acceso al Área de Miembros </h3>
					</div>
					<div style="background:#fff;">
						<?php echo Form::open(array('route' => 'SysWebAcceso', 'method' => 'post', 'class' => 'form-horizontal', 'style' => 'margin-bottom: 0px !important;', 'id' => 'frmAcceso' )); ?>

							<div class="content">
								<div class="form-group">
									<div class="col-sm-12">
										<div class="input-group"> <span class="input-group-addon"><i class="fa fa-user"></i></span>
											<?php echo Form::text('username','',  array('class' => 'form-control', 'placeholder' => 'Nombre de usuario Ó Correo electrónico')); ?>

										</div>
										<span class="text-danger" id="errusername"> </span>
									</div>
								</div>
								<div class="form-group">
									<div class="col-sm-12">
										<div class="input-group"> <span class="input-group-addon"><i class="fa fa-lock"></i></span>
											<?php echo Form::password('password', array('class' => 'form-control', 'placeholder' => 'Contraseña')); ?>

										</div>
										<span class="text-danger" id="errpassword"> </span>
									</div>
								</div>
							</div>
							<?php /*<div class="foot">
								<div class="row">
									<div class="col-md-8">
										<a href="<?php echo URL::route('SysWebRecuperarContrasenha'); ?>"> Olvidaste tu contraseña? Haz clic aqui </a>
									</div>
									<div class="col-md-4 text-right">
										<a href="#" class="btn btn-default"> Registrar </a>
										<a href="#" class="btn btn-primary"> Ingresar </a>
									</div>
								</div>
							</div>*/ ?>
							<div class="foot">
								<?php /* HTML::decode(HTML::linkRoute('SitioWebRegistro', '<button type="button" data-dismiss="modal" class="btn btn-default"> Registrar </button>', array(), array())) */ ?>
								<?php echo HTML::decode(HTML::linkRoute('SysWebAcceso', '<button type="submit" data-dismiss="modal" class="btn btn-primary" id="btnIngresar"> Ingresar </button>', array(), array())); ?>

								<div class="text-center out-links" style="padding-top: 10px;"> <a href="<?php echo URL::route('SysWebRecuperarContrasenha'); ?>"> Olvidaste tu contraseña? Haz clic aqui </a> </div>
							</div>
						<?php echo Form::close(); ?>

					</div>
				</div>
				<div class="text-center out-links">
					<?php if(strpos(public_path(), 'prospector') !== false): ?>
					<a href="https://www.masprospector.com">&copy;  Derechos reservados Mas Prospector <?php echo date('Y'); ?>. </a> <br>
					<a href="https://app.masprospector.com/politicas-de-privacidad" target="_blank">Privacidad</a> | <a href="https://app.masprospector.com/terminos-y-condiciones" target="_blank">Términos del servicio</a>
					<?php else: ?>
					<a href="https://www.sumeclientes.com">&copy;  Derechos reservados Sume Clientes <?php echo date('Y'); ?>. </a> <br>
					<a href="https://sumeclientes.net/politicas-de-privacidad" target="_blank">Privacidad</a> | <a href="https://sumeclientes.net/terminos-y-condiciones" target="_blank">Términos del servicio</a>
					<?php endif; ?>
				</div>
			</div>
		</div>
		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
		<?php echo HTML::script('WebPro/js/jquery-2.0.2.min.js'); ?>

		<!-- Include all compiled plugins (below), or include individual files as needed -->
		<?php echo HTML::script('WebPro/bootstrap/js/bootstrap.min.js'); ?>

		<?php echo HTML::script('WebPro/js/accordion.js'); ?>

		<?php echo HTML::script('WebPro/js/common-script.js'); ?>

		<?php echo HTML::script('WebPro/js/jquery.nicescroll.js'); ?>

		<?php echo HTML::script('PNotify/pnotify.custom.min.js'); ?>

		<?php echo HTML::script('NProgress/nprogress.min.js'); ?>

		<?php /*@if( App::environment() == 'produccion' && strpos(public_path(), 'desarrollo') !== false )*/ ?>
		<?php if( App::environment() == 'produccion' && !(strpos(public_path(), 'desarrollo') !== false) ): ?>
			<?php /*<?php if( Auth::user()->tipo != 'A' ): ?>*/ ?>
		<?php echo $__env->make('ExternosBody', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			<?php /*<?php endif; ?>*/ ?>
		<?php endif; ?>
		<!-- Más scripts -->
		<script type="text/javascript">
			NProgress.start();
			$(window).on("load", function() {
				NProgress.done();
			});
			$(document).ready(function(){
				$('[name="username"], [name="password"]').blur(function(e){
					$(this).val($(this).val().replace(/\s/g, ""));
				});
				$("#frmAcceso").submit(function(e){
					NProgress.start();
					$('[id^="err"]').html("");
					$("#btnIngresar").html('<i class="fa fa-spinner fa-spin"></i> Cargando').prop("disabled", true);
					e.preventDefault();
					$.post(
						"<?php echo URL::route('SysWebAcceso'); ?>",
						$("#frmAcceso").serialize(),
						function(data){
							NProgress.done();
							$("#btnIngresar").html("Ingresar").prop("disabled", false);
							if(data.success){
								new PNotify({ title: "¡Bienvenido!", text: data.mensaje, type: "success" });
								setTimeout(function(){ window.location.href = "<?php echo URL::route('SysWebIndex'); ?>"; }, 1000);
							}
							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(Session::has('MensajeS')): ?>
				new PNotify({
					title: "Realizado",
					text: "<?php echo Session::get('MensajeS'); ?>",
					type: "success",
					before_open: function(pnotify){ pnotify.css({ "top":"50px", "left": ($(window).width() / 2) - (pnotify.width() / 2) });
					}
				});
				<?php endif; ?>
				<?php if(Session::has('MensajeE')): ?>
				new PNotify({ title: "Realizado", text: "<?php echo Session::get('MensajeE'); ?>", type: "error" });
				<?php endif; ?>
			});
		</script>
		<?php if( App::environment() == 'produccion' && !(strpos(public_path(), 'desarrollo') !== false) ): ?>
		<script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script>
		<script type="text/javascript">
			$(document).ready(function(e){
				var verificarChat = setInterval(function(){
					if( $("#chat-widget-container").length > 0 ){
						limpiarVerificacionDeChat();
					}
				},
				3000);
				function limpiarVerificacionDeChat(){
					clearInterval( verificarChat );
					setTimeout(function(){
						$("#chat-widget-container").show("slow").addClass("mostrar");
					},
					3000);
				}
			});
		</script>
		<?php endif; ?>
	</body>
</html>