<!doctype html>
<html lang="<?php echo e(app()->getLocale()); ?>" prefix="og: http://ogp.me/ns#">
<head>
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="<?php echo $options->description; ?>">
    <meta name="keywords" content="<?php echo $options->keywords; ?>">
    <meta name="author" content="<?php echo $options->author; ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="theme-color" content="<?php echo e($options->color); ?>">
    <?php if (! empty(trim($__env->yieldContent('ogp')))): ?>
        <?php echo $__env->yieldContent('ogp'); ?>
    <?php else: ?>
        <meta property="og:type" content="website">
        <meta property="og:url" content="<?php echo e(url('/')); ?>">
        <meta property="og:image" content="<?php echo e(asset($options->image ?? 'images/image.jpg')); ?>">
        <meta property="og:title" content="<?php echo e($options->title); ?>">
        <meta property="og:description" content="<?php echo e($options->description); ?>">
    <?php endif; ?>
    <title><?php if (! empty(trim($__env->yieldContent('title')))): ?><?php echo e($options->title); ?> - <?php echo $__env->yieldContent('title'); ?> <?php else: ?><?php echo e($options->title); ?><?php endif; ?></title>
    <link type="image/png" rel="icon" href="<?php echo e(asset($options->favicon ?: 'images/icon.png')); ?>"/>
    <link rel="stylesheet" href="<?php echo e(asset('assets/fa/css/all.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/bootstrap.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/animate.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/magnific-popup.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/owl.carousel.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/style.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/css/responsive.css')); ?>">
    <?php echo $options->scripts; ?>

</head>
<body class="preload <?php echo e(isHome() ? 'home' : null); ?>">
<header class="header d-flex align-items-center justify-content-between">
    <div class="container d-flex align-items-center justify-content-between">
        <div class="logo-container">
            <a href="<?php echo e(url('/')); ?>">
                <img src="<?php echo e(asset($options->logo ?? 'images/logo.png')); ?>" alt="" class="logo">
            </a>
        </div>
        <nav class="nav">
            <ul class="list-unstyled d-flex align-items-center justify-content-between">
                <?php echo $__env->make('partials.navigation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <li>
                    <a href="<?php echo e(url('cuenta')); ?>">Mi cuenta</a>
                </li>
            </ul>
        </nav>
        <a href="#" class="cart-link btn-cart-toggle">
            <i class="far fa-shopping-bag"></i>
            <span class="cart-count"><?php echo e(Cart::count()); ?></span>
        </a>
    </div>
    <a href="#" class="btn-menu fa fa-circle"></a>
</header>
<main>
    <?php echo $__env->yieldContent('content'); ?>
</main>
<footer class="footer">
    <div class="container">
        <div class="row row-grid">
            <div class="col-lg-2 col-sm-5">
                <a href="<?php echo e(url('/')); ?>">
                    <img src="<?php echo e(asset($options->logo ?? 'images/logo.png')); ?>" alt="" class="footer-logo">
                </a>
            </div>
            <div class="col-lg-3 offset-lg-0 col-sm-6 offset-sm-1">
                <h3>Visite nuestro Showroom </h3>
                <ul class="list-unstyled">
                    <li>
                        <span><?php echo nl2br($options->address); ?></span>
                    </li>
                    <li>
                        <span><?php echo nl2br($options->timetable); ?></span>
                    </li>
                </ul>
            </div>
            <div class="col-lg-2 col-sm-3">
                <h3>Enlaces útiles</h3>
                <ul class="list-unstyled">
                    <?php $__currentLoopData = $footer_links; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li>
                            <a href="<?php echo e(url($link->post->slug)); ?>"><?php echo e($link->post->title); ?></a>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </div>
            <div class="col-lg-2 col-sm-3">
                <h3>Síganos en las redes</h3>
                <ul class="list-unstyled">
                    <?php if($options->facebook): ?>
                        <li>
                            <a href="<?php echo e($options->facebook); ?>" target="_blank">Facebook</a>
                        </li>
                    <?php endif; ?>
                   
                    <?php if($options->instagram): ?>
                        <li>
                            <a href="<?php echo e($options->instagram); ?>" target="_blank">Instagram</a>
                        </li>
                    <?php endif; ?>
                </ul>
            </div>
            <div class="col-lg-3 col-sm-6">
                <h3>Bgreen Lighting</h3>
                <ul class="list-unstyled">
                    <li>
                        <span><?php echo nl2br($options->footer_text); ?></span>
                    </li>
                    <?php if($options->footer_image): ?>
                        <li>
                            <img src="<?php echo e(asset($options->footer_image)); ?>" alt="" class="mx-auto">
                        </li>
                    <?php endif; ?>
                </ul>
            </div>
            <div class="col-12">
                <div class="copyright">&copy; <?php echo e(date('Y')); ?>. <?php echo e($options->title); ?>. Todos los derechos reservados</div>
            </div>
        </div>
    </div>
</footer>
<div class="side-cart">
    <div class="side-cart-header d-flex align-items-center justify-content-between">
        <a href="#" class="side-cart-close fal fa-times btn-cart-toggle"></a>
        <h3>Tu carrito</h3>
        <a href="<?php echo e(url('carrito')); ?>" class="cart-link">
            <i class="far fa-shopping-bag"></i>
            <span class="cart-count"><?php echo e(Cart::count()); ?></span>
        </a>
    </div>
    <div class="cart-content">
        <?php echo $__env->make('partials.cart', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>
</div>
<script src="<?php echo e(asset('assets/js/jquery.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/wow.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/owl.carousel.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/jquery.magnific-popup.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/script.js')); ?>"></script>
<?php echo $__env->yieldPushContent('scripts'); ?>
<script>
  $(function() {
    $('body').on('click', '.btn-cart-toggle', function() {
      $('.side-cart').toggleClass('menu-active');
      return false;
    });

    $('body').on('click', '.btn-cart-action', function() {
      var $this = $(this);
      $.post('<?php echo e(route('cart.action')); ?>', {
        product_id: $(this).data('product-id'),
        row_id: $(this).data('row-id'),
        qty: $(this).data('qty'),
        action: $(this).data('action')
      }, function(response) {
        $this.find('span').text(response.message);
        $this.addClass('btn-cart-toggle');
        $('.cart-count').text(response.count);
        $('.cart-content').html(response.cart);
        $('#cart .table-responsive').html(response.cart_full);
      }).fail(function(response) {
        alert(response.responseJSON.message);
      });
      return false;
    });

    $('body').on('click', '.input-number a', function() {
      var $button = $(this);
      var $qty = $button.parent().find('.qty');
      var $max = $qty.attr('max');
      var oldValue = $qty.val();

      if ($button.is('.plus')) {
        if($max && oldValue == $max) {
          var newVal = $max;
        } else {
          var newVal = parseFloat(oldValue) + 1;
        }
      } else {
        if (oldValue > 1) {
          var newVal = parseFloat(oldValue) - 1;
        } else {
          newVal = 1;
        }
      }

      $qty.val(newVal).change();

      return false;
    });
  });
</script>
</body>
</html>
<?php /**PATH /home/bgreen/test.bgreen.com.py/resources/views/layouts/frontend.blade.php ENDPATH**/ ?>