<!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, maximum-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">







  <!-- jQuery first, then Popper.js, then Bootstrap JS --> 



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



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



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



  <!-- Optional theme -->



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



  <script src="<?php echo e(url('public/frontend')); ?>/js/owl.carousel.js"></script> 



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



  <link rel="stylesheet" href="<?php echo e(url('public/frontend')); ?>/css/owl.carousel.min.css">



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



</head>



<body>



	<?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(); ?>



	<?php echo $site_option->remarketing; ?> 



  <div class="alert-success" style=" font-size: 24px;display: block; text-align: center; width: 100%; max-width: 100%;z-index: 99999999; background: red;color: #fff"><?php echo $__env->make('errors.note', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?></div>







  <div id="cart_success" style="display: none;position: fixed;bottom: 0; background: red; color:#fff;font-size:30px;text-align: center; height: 70px; line-height: 70px; width: 100%">



    <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="favorite_success" style="display: none;position: fixed;bottom: 0; background: red; color:#fff;font-size:30px;text-align: center; height: 70px; line-height: 70px; width: 100%">



    <div class="container">



      <div class="col-md-12">Sản phẩm đả được thêm vào mục yêu thích!</div>



    </div>



  </div>







  <script>



$(document).ready(function(){







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



      $( "a.favorite:even" ).removeClass( "favorite" ).addClass( "unfavorite" );



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



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



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



      $.ajax({



        url:url,



        type:'get',



        cache:false,



        data:{'fid':fid,'_token':_token},



        success:function(result){



          $('#favorited_'+fid).html('<i class="fa fa-heart" style="color:red"></i>');



          //$('#ketqua_'+fid).html(result);



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



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



        }



      })



    })







// $('.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').text(result);



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



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



//         }



//       })



//     })















});



</script>



</body



><div id="fb-root"></div>



<script>(function(d, s, id) {



  var js, fjs = d.getElementsByTagName(s)[0];



  if (d.getElementById(id)) return;



  js = d.createElement(s); js.id = id;



  js.src = 'https://connect.facebook.net/vi_VN/sdk.js#xfbml=1&version=v2.12&appId=1779789982236979&autoLogAppEvents=1';



  fjs.parentNode.insertBefore(js, fjs);



}(document, 'script', 'facebook-jssdk'));</script>



<script>



  function openTab(evt, tabName) {



    var i, tabcontent, tablinks;



    tabcontent = document.getElementsByClassName("tabcontent");



    for (i = 0; i < tabcontent.length; i++) {



      tabcontent[i].style.display = "none";



    }



    tablinks = document.getElementsByClassName("tablinks");



    for (i = 0; i < tablinks.length; i++) {



      tablinks[i].className = tablinks[i].className.replace(" active", "");



    }



    document.getElementById(tabName).style.display = "block";



    evt.currentTarget.className += " active";



  }



// Get the element with id="defaultOpen" and click on it



document.getElementById("defaultOpen").click();



</script>















</html>