<!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="<?php echo e(url('public/bootstrap/css')); ?>/bootstrap.min.css">



	<!-- Optional theme -->



	<link rel="stylesheet" href="<?php echo e(url('public/bootstrap/css')); ?>/bootstrap-theme.min.css">



	<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">



	<link rel="stylesheet" href="<?php echo e(url('public/font-awesome')); ?>/css/font-awesome.min.css">



	<script src="<?php echo e(url('public/jquery/jquery-3.2.1.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);



		})



	})



	$(document).ready(function(){



		$('#menu ul li').mouseenter(function(){



			$(this).find('ul').slideDown(200);



		})



		$('#menu ul li').mouseleave(function(){



			$(this).find('ul').slideUp(200);



		})



	})



	$(document).ready(function() {



		$('#to_top').click(function(){



			$("html, body").animate({ scrollTop: 0 }, "slow");



		})



	})



	$('li.menu_parent').click(function(){



		ddown = $(this).attr('data-child');



		$(ddown).slideToggle();



	})



</script>



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



<script src="<?php echo e(url('public/bootstrap')); ?>/js/bootstrap.min.js"></script>



</html>