<!DOCTYPE html>



<html>



<head>



	<meta charset="utf-8">



	<title><?php echo $__env->yieldContent('title'); ?></title>



	<meta name="keywords" content="<?php echo $__env->yieldContent('keywords'); ?>"/>



	<meta name="description" content="<?php echo $__env->yieldContent('description'); ?>"/>



	<meta property="og:url" content="<?php echo $__env->yieldContent('url'); ?>" />



	<meta property="og:title" content="<?php echo $__env->yieldContent('title'); ?>" />



	<meta property="og:type" content="website" />



	<meta property="og:description" content="<?php echo $__env->yieldContent('description'); ?>" />



	<meta property="og:image" content="" />



	<link rel="icon" href="<?php echo e(url($site_option->favicon)); ?>">



	<meta name="viewport" content="width=device-width, initial-scale=1">



	<!-- Latest compiled and minified CSS -->



	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">



	<!-- Optional theme -->



	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">



	<link rel="stylesheet" type="text/css" href="<?php echo e(url('public/frontend/css/style.css')); ?>">



	<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">



	<script src="https://use.fontawesome.com/f301db3853.js"></script>



	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>



</head>



<body>



	<div id="cart_success">



		<div class="container">



			<div class="col-md-12">Sản phẩm đả được thêm vào giỏ hàng!</div>



		</div>



	</div>



	<div id="count-cart-bg">



		<div id="count_cart"><span><?php echo e(Cart::count()); ?></span></div>



		<h3>



			<a href="<?php echo e(url('shopping-cart')); ?>"><i class="fa fa-shopping-cart"></i></a>



		</h3>



	</div>



	<?php echo $__env->make('frontend.header.header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>



	<?php echo $__env->yieldContent('content'); ?>



	<?php echo $__env->make('frontend.footer.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>



</body>



<!-- ajax mua hàng -->



<script type="text/javascript">



	$(document).ready(function(){



		$('.addcart').click(function(){



			id = $(this).attr('data-id');



			_token = $('input[name="_token"]').val();



			url = '<?php echo e(url("ajax/addcart")); ?>/'+id;



			$.ajax({



				url:url,



				type:'get',



				cache:false,



				data:{'id':id,'_token':_token},



				success:function(result){



					$('#count_cart span').text(result);



					$('#cart_success').fadeIn();



					$('#cart_success').fadeOut(3000);



				}



			})



		})



		$('input[name="search_ajax"]').keyup(function(){



			str = $(this).val();



			url = '<?php echo e(url("ajax/search")); ?>/'+str;



			$.ajax({



				url:url,



				cache:false,



				type:'get',



				data:{'str':str},



				success:function(result){



					$('#search_result').html(result);



				}



			})



		})



		$('input[name="search_ajax"]').focusout(function(){



			$('#search_result').html('');



		})



		$('.left_item .hover .readmore a').click(function(){



			target = $(this).attr('data-target');



			$(target).fadeIn(1000);



		});



		$('.quick_view .close').click(function(){



			$('.quick_view').fadeOut(1000);



		})



	})



</script>



<!-- Latest compiled and minified JavaScript -->



<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>



</html>