<!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="">
		<meta name="keywords" content="">
		<link rel="icon" type="image/png" sizes="16x16" href="<?php echo asset('icon32x32.ico'); ?>">
		<link rel="icon" href="<?php echo asset('SysWeb/SumeClientes/icon32x32.ico'); ?>" type="image/x-icon">
		<link rel="icon" type="image/png" sizes="16x16" href="<?php echo asset('icon32x32.ico'); ?>">

		<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.css'); ?>

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

		<?php echo HTML::style('PNotify/pnotify.custom.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;
				}
			}
		</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" id="frmTitulo"> Reestablecer contraseña </h3>
					</div>
					<div style="background: #fff;" id="frmCuerpo">
						<?php echo Form::open(array('route' => array('SysWebReestablecerContrasenha', $token), 'method' => 'post', 'class' => 'form-horizontal', 'style' => 'margin-bottom: 0px !important;', 'id' => 'frmReestablecerContrasenha' )); ?>

							<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-lock"></i>
											</span>
											<?php echo Form::password('contrasenha', array('class' => 'form-control', 'placeholder' => 'Contraseña')); ?>

										</div>
										<span class="text-danger" id="errcontrasenha"> <?php echo $errors->first('contrasenha'); ?> </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('contrasenha2', array('class' => 'form-control', 'placeholder' => 'Confirmación de contraseña')); ?>

										</div>
										<span class="text-danger" id="errcontrasenha2"> <?php echo $errors->first('contrasenha2'); ?> </span>
									</div>
								</div>
							</div>
							<div class="foot" id="frmBottom">
								<?php /* HTML::decode(HTML::linkRoute('SitioWebIndex', '<button type="button" data-dismiss="modal" class="btn btn-default"> Regresar </button>', array(), array())) */ ?>
								<?php echo HTML::decode(HTML::linkRoute('SysWebReestablecerContrasenha', '<button type="submit" data-dismiss="modal" class="btn btn-primary" id="btnIngresar"> Reestablecer </button>', array($token), array())); ?>

							</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 /*@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">
			$(document).ready(function(){
				$('[name="errcontrasenha"], [name="contrasenha2"]').blur(function(e){
					$(this).val($(this).val().replace(/\s/g, ""));
				});
				$("#frmReestablecerContrasenha").submit(function(e){
					$('[id^="err"]').html("");
					$("#btnIngresar").html('<i class="fa fa-spinner fa-spin"></i> Cargando').prop("disabled", true);
					/*e.preventDefault();
					$.post(
						"<?php echo URL::route('SysWebReestablecerContrasenha', array($token)); ?>",
						$("#frmReestablecerContrasenha").serialize(),
						function(data){
							$("#btnIngresar").html("Ingresar").prop("disabled", false);
							if(data.success){
								new PNotify({ title: "¡Genial!", text: data.mensaje, type: "success" });
								setInterval(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" });
				<?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>
		<?php endif; ?>
	</body>
</html>