<?php echo $__env->make('include.frontpage_headers', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	  <!--header-->
		  <meta name="_token" content="<?php echo csrf_token(); ?>"/>
		 <!--new html starts-->
         <div class="section2">
            <div class="container">
               <div class="row">
                  <div class="part-main1">
                     <div class="col-lg-12">
                        
						<?php
 
if(isset($_GET['attempt_failed'])) {
	 
	echo $attempt_failed = \Session::get('attempt_failed');
	 
	 
	
	echo '<div class="alert alert-danger" id="try">Username or password incorrect</div>' ;
}
 
 
 
?>
						
						   <div class="login-innerpart">
							   
							   
							  
							   
									<h4 class="login-head">LOGIN</h4>
									<hr class="horrizontalline1">
									
										<div class="inside-content">
											
													
												<p class="para11">Login ID</p>
                                            
                                            
                                             <form role="form"    id="login_pg">
                               <input type="text" placeholder="Email" class="field3" name="email">
                                              
												
												
												<p class="para11">Password</p>
                                               
											<input type="password" placeholder="password" class="field3" name="password">
												<input class="login-checkbox" type="checkbox" id="remember" tabindex="3"  value="on" name="remember"><label class="login-label">Keep me logged in</label><br>
												<input type="button" value="LOGIN" class="save-button" id="loginpg_id">
                                                  <div class="message">
							    
							   </div></form>
										</div>
								
								 <input type="hidden" value=" " id="attempt_get">
								
							</div>
						   
						   
                        
                     </div>
                  </div>
               </div>
            </div>
         </div>
		 <!--new html ends-->
         <!-- Footer--> 
         
         <!-- End Footer -->
      </div>
      <!-- Bootstrap core JavaScript
         ================================================== -->
      <!-- Placed at the end of the document so the pages load faster -->
      <script src="<?php echo e(asset('assets/js/bootstrap.js')); ?>"></script>
      <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
      <script src="<?php echo e(asset('assets/js/ie10-viewport-bug-workaround.js')); ?>"></script>
      <script type="text/javascript">
         $(function() {
         	$("#slider").blissSlider({
         		auto: 1,
             			transitionTime: 500,
             			timeBetweenSlides: 4000
         	});
         });
         
         
         
         
      </script>
      <script type="text/javascript">
         $(document).ready(function(){
         					 
          $(window).scroll(function(){
         											  
         	  var e= $(window).scrollTop();
         					
         		if ( e > 50){
         				
         			 $(".nav_main").addClass("short_menu")
         		
         		}else{
         			  $(".nav_main").removeClass("short_menu")
         							
         		}
         });
         
         }); 
         		
         				  	
         				  
         			
            
      </script>



<script>
$(document).ready(function(){
  	 
 
        
 
    $("#loginpg_id").click(function(){
								  
	var value =$("#login_pg").serialize() ;
	
	
		$.ajax({
		type:'POST',
		url:"<?php echo e(url('user/login')); ?>", 
		
		data: value,
		
		success:function (login){
       
		console.log(login);
                                                if(login==1 || login=='1Soulmate'){
                                           window.location="<?php echo e(url('user/search')); ?>";           
                
                                                    }
  

                                                    else if(login==2){
                                                      
													   window.location="<?php echo e(url('user/activation')); ?>"; 	
                                                        }
														else if(login==0){
				
                 window.location="<?php echo e(url('user/login-failed?attempt_failed')); ?>"; 
													 
       
															
				}											

           else
            {

			window.location = "<?php echo URL::to('user/search-profile-view/"+login+"'); ?>";
               /* setTimeout(function(){$(".login_msg").hide(); }, 3000);*/
                 	
															
            }
														
                                                    }
                                        });
        });
        });

$.ajaxSetup({
   headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
});
</script>  				 
						 
   </body>
</html>