<!DOCTYPE html>
<html lang="<?php echo e(config('app.locale')); ?>">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <script src="//code.jquery.com/jquery-3.3.1.min.js"></script>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
    <script src="https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>
    
    <?php if(empty($meta_tags)): ?>
      <?php echo $__env->yieldContent('meta'); ?>
    <?php else: ?>
      <?php $__currentLoopData = $meta_tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <meta name="<?php echo e($value->name); ?>" content="<?php echo e($value->content); ?>">
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
    <!-- share -->
    <?php echo $__env->yieldContent('sharing-meta'); ?>

    <!-- CSRF Token -->
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
	<title>
    <?php if(isset($page) && $page == 'home'): ?>
      <?php echo e($masterName); ?>

    <?php else: ?>
      <?php echo $__env->yieldContent('title'); ?> | <?php echo e($masterName); ?>

    <?php endif; ?>
	</title>

	<script type="text/javascript">
		window.Laravel = <?php echo json_encode([
		    'csrfToken' => csrf_token(),
		]);; ?>

	</script>

	<link rel="shortcut icon" href="<?php echo e(asset($storage_url.'img/'.$masterFavicon)); ?>?<?php echo e($masterFavicon); ?>" type="image/x-icon" />
	<link rel="stylesheet" type="text/css" href="<?php echo e(asset($asset_url.'css/app.css')); ?>">

  
  <link rel="stylesheet" href="https://d1azc1qln24ryf.cloudfront.net/114779/Socicon/style-cf.css?u8vidh">

  <?php 
    $x = array_count_values($webFont);
   ?>

  <?php $__currentLoopData = $x; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php if($key != ""): ?>
      <link href="//fonts.googleapis.com/css?family=<?php echo e($key); ?>" rel="stylesheet" type="text/css">
    <?php endif; ?>
  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

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

  <?php echo $__env->yieldContent('style'); ?>
  <style>
    .pac-container {
      z-index: 1060 !important;
    }
    .display-none {
      display: none;
    }
  </style>
  <?php echo app('Tightenco\Ziggy\BladeRouteGenerator')->generate(); ?>
</head>
<body>
  
  <?php if($mtMode == 1): ?>
    <?php echo $__env->make('components.maintenace', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
  <?php else: ?>
    <?php echo $__env->make('components.body', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
  <?php endif; ?>
  
  
  <!-- Go to www.addthis.com/dashboard to customize your tools -->
  <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5ad6faa20f412048"></script>


	<script type="text/javascript" src="<?php echo e(asset($asset_url.'messages.js')); ?>"></script>
  <script type="text/javascript" src="<?php echo e(asset($asset_url.'js/app.js')); ?>"></script>
  <script src="<?php echo e(asset($asset_url.'js/jquery.inview.js')); ?>"></script>
  <script src="<?php echo e(asset($asset_url.'js/backend/ajax-loading.js')); ?>"></script>

  <script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
  <script src="<?php echo e(asset($asset_url.'js/jquery.addressPickerByGiro.js')); ?>"></script>
  <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAc0QKxqa--xttbeNG2Iz0DqpilY33smL4&libraries=places"></script>

  <script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
  <script>

    $(document).ready(function(){
      $.get( '<?php echo e(route('updateBubble')); ?>', function( data ) {
        if(data == 0){
          $("#show_cart span.label").hide();
        }else{
          $("#show_cart span.label").show().html(data);
        }
      });
    });

    $('#modal_cart').on('shown.bs.modal', function () {
      $("#cart_content").load("<?php echo e(route('cart')); ?>");
    });

    $('#modal_cart').on('hidden.bs.modal', function () {
      $("#cart_content").html('<h3><i class="fa fa-spinner fa-spin fa-lg" aria-hidden="true"></i></h3>');
    });

    //Ajax loading spinner initiate
    var loading = $.loading({
      //set the loading html wrap tag id
      id         : 'ajaxLoading',
      //wrap tag z-index
      zIndex     : '2000',
      //wrap tag background
      background : 'rgba(0, 0, 0, 0.7)',
      //min show time
      minTime    : 200,
      //wrap tag border-radius
      radius     : '4px',
      //wrap width
      width      : '85px',
      height     : '85px',

      //loading img/gif
      imgPath    : '<?php echo e(asset("images/Spinner.gif")); ?>',
      imgWidth   : '70px',
      imgHeight  : '70px',

      //loading text
      tip        : '',
      //text font size
      fontSize   : '14px',
      //text font color
      fontColor  : '#fff'
    });
    loading.ajax(false);//disable
  </script>
  <?php echo $__env->yieldContent('script'); ?>
  <?php echo $__env->yieldContent('cart-script'); ?>
</body>
</html>
