<?php
    $activeLang = getActiveLocale();
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="token" content="<?php echo e(csrf_token()); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1.0">

<?php if(isset($metaData)): ?>
    <title><?php echo e($metaData->meta_title); ?></title>
    <meta property="og:title" content="<?php echo e(htmlspecialchars($metaData->meta_title)); ?>" />
    <?php if(!isset($metaImage) && isset($metaData->metaImage)): ?>
        <meta property="twitter:card" content="summary_large_image" />
        <meta property="twitter:image" content="<?php echo e($metaData->metaImage); ?>" />
    <?php endif; ?>
    <?php if($metaData->meta_keywords): ?>
        <meta name="keywords" content="<?php echo e(htmlspecialchars($metaData->meta_keywords)); ?>">
    <?php else: ?>
        <meta name="keywords" content="south pole, emission reduction, carbon footprint, carbon credits, carbon offsets, CO₂ calculator, greenhouse gas emissions, carbon neutral, climate change, Gold Standard, CDM, Biomass, Cooking stoves, Run-of-river hydro, Waste heat energy, Small hydro, video, fact sheet, Landfill gas, Geothermal, Micro run-of-river, Reforestation, REDD">
    <?php endif; ?>

    <?php if($metaData->meta_description): ?>
        <meta name="description" content="<?php echo e(htmlspecialchars($metaData->meta_description)); ?>">
    <?php else: ?>
        <meta name="description" content="south pole is the world's leading premium emission reduction project developer, named Best Project Developer in Environmental Finance's Voluntary Carbon Markets Survey 2011 2012 2013 2014. Profit from our wealth of experience!" />
    <?php endif; ?>

    <meta property="og:description" content="<?php echo e(htmlspecialchars($metaData->meta_description)); ?>" />
    <?php if(!isset($metaImage) && isset($metaData->metaImage)): ?>
        <meta property="og:image" content="<?php echo e($metaData->metaImage); ?>" />
    <?php endif; ?>
    <?php if(isset($metaData->no_index) && $metaData->no_index): ?>
        <meta name="robots" content="noindex">
    <?php endif; ?>
    <?php if(isset($metaData->canonical_url) && !empty($metaData->canonical_url)): ?>
        <link rel="canonical" href="<?php echo e($metaData->canonical_url); ?>" />
    <?php else: ?>
        <link rel="canonical" href="<?php echo e(lang_url(request()->url())); ?>" />
    <?php endif; ?>
<?php else: ?>
    <title>South Pole</title>
    <meta property="og:title" content="South Pole" />
    <meta name="keywords" content="south pole, emission reduction, carbon footprint, carbon credits, carbon offsets, CO₂ calculator, greenhouse gas emissions, carbon neutral, climate change, Gold Standard, CDM, Biomass, Cooking stoves, Run-of-river hydro, Waste heat energy, Small hydro, video, fact sheet, Landfill gas, Geothermal, Micro run-of-river, Reforestation, REDD">
    <meta name="description" content="South pole is the world's leading premium emission reduction project developer, named Best Project Developer in Environmental Finance's Voluntary Carbon Markets Survey 2011 2012 2013 2014. Profit from our wealth of experience!" />
    <!-- CANONICAL URL -->
    <link rel="canonical" href="<?php echo e(lang_url(request()->url())); ?>" />
    <!-- FAVICON -->
<?php endif; ?>

<?php if(isset($metaUrl)): ?>
    <meta property="og:url" content="<?php echo e($metaUrl); ?>" />
<?php endif; ?>
<?php if(isset($metaImage)): ?>
    <meta property="og:image" content="<?php echo e($metaImage); ?>" />
<?php endif; ?>

<meta property="og:site_name" content="South Pole" />

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

<?php
    $preloadImages = getRequestContext('preloadImages');
    $preloadImages = $preloadImages ?? [];
?>
<?php $__currentLoopData = $preloadImages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $preloadImage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <link rel="preload" href="<?php echo e($preloadImage['url']); ?>" as="image" type="<?php echo e($preloadImage['type']); ?>">
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php if($activeLang == 'ja'): ?>
    <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,600;1,300;1,600&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap" media="print" onload="this.onload=null;this.removeAttribute('media');" rel="stylesheet">
<?php else: ?>
    <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,600;1,300;1,600&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap" media="print" onload="this.onload=null;this.removeAttribute('media');" rel="stylesheet">
<?php endif; ?>

<?php echo app('Illuminate\Foundation\Vite')(['resources/sass/app.scss', 'resources/js/app.js']); ?>

<?php if(isset($css)): ?>
<style>
    <?php echo e($css); ?>

</style>
<?php endif; ?>

<script>
    /**
    * JAVASCRIPT GLOBAL ENVIRONMENT SETUP
    */
    window.Eae = window.Eae || {};
    window.Eae.Config = {
        url : "<?php echo e(lang_url('/')); ?>",
        base_url: "<?php echo e(url('/')); ?>",
        defaultLang : "<?php echo e(getDefaultLocale()); ?>",
        recaptcha: <?php echo json_encode(config('google.recaptcha.siteKey'), 15, 512) ?>
    };
</script>

<?php if(!empty($hasMaps) || getRequestContext('load-google-maps')): ?>
    <script src="https://maps.googleapis.com/maps/api/js?key=<?php echo e(config('google.apiKey')); ?>&libraries=places,maps"></script>
<?php endif; ?>
<?php if(!empty($hasRecaptcha)): ?>
    <?php echo $__env->make('common.includes.recaptcha_head', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php endif; ?>

<?php if(config('google.analyticsId')): ?>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', '<?php echo e(config("google.analyticsId")); ?>', 'auto');
  ga('send', 'pageview');
</script>
<?php endif; ?>

<script>
    var translations = <?php echo json_encode(get_frontend_translations(), 15, 512) ?>;
</script>

<?php if(isset($embeds)): ?>
    <?php $__currentLoopData = $embeds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $embed): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php if($embed->embed_position == 'head'): ?>
            <?php echo $embed->type === 'multi_lang' ? $embed->code_lang : $embed->code; ?>

        <?php endif; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>

<?php if(isset($objectEmbeds) && !empty($objectEmbeds)): ?>
    <?php $__currentLoopData = $objectEmbeds; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $embed): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php if($embed->embed_position == 'head' && !$embed->global && $embed->status == 'published'): ?>
            <?php echo $embed->type === 'multi_lang' ? $embed->code_lang : $embed->code; ?>

        <?php endif; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php /**PATH /var/www/html/resources/views/frontend/includes/head.blade.php ENDPATH**/ ?>