
 
   <footer class="footer">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <div class="footer-logo">
                    <img src="/uploads/logo/<?php echo e(config('settings.footer_logo', 'Varsayılan Başlık')); ?>" alt="Footer Site Logosu" style="width:150px">
                </div>
                <nav class="nav" style="width:auto; float:right;">
                    <?php $__currentLoopData = $menusright; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <a class="nav-link" href="<?php echo e($menu->link); ?>" title="<?php echo e($menu->title); ?>"><?php echo e($menu->title); ?></a>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                </nav>
            </div>
            <div class="footer-bottom row">
                <div class="col-md-6" styie="padding-left: 0;">
                <nav class="nav">
                    <?php $__currentLoopData = $menusleft; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <a class="nav-link" href="<?php echo e($menu->link); ?>" title="<?php echo e($menu->title); ?>"><?php echo e($menu->title); ?></a>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </nav><div style="clear:both;"></div>
            </div>
                <div class="col-md-6 mb-4">
                                    <a class="nav-link" href="#" style="float: right;"><?php echo e(config('settings.footer_yazi', 'Varsayılan Başlık')); ?></a>

</div>



              
            </div>
            <div class="footer-bottom" style="padding-top: 0px; border-top: 0;">
                <nav class="nav">
                  Haber Yazılımı :  <a href="https://www.habercode.com" rel="nofollow" target="_blank" style="color: #d4d4d4; text-decoration: none;" title="Yeni Nesil Haber Yazılımı"> haber&lt;code&gt;</a>
                </nav>
            </div>

        </div>
    </footer>

<div class="modal fade" id="horoscopeModal" tabindex="-1" aria-labelledby="horoscopeModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="horoscopeModalLabel">Burç Yorumu</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="
    font-size: 12px;
    border: 0;
    border-radius: 16px;
">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body" style="    line-height: 1.8;padding: 20px;font-size: 13px;">
                <p id="horoscopeContent"></p>
            </div>
        </div>
    </div>
</div>
    
<div id="search-modal" class="search-modal">
    <div class="search-modal-content" style="width:75%">
        <span class="close" id="close">&times;</span>
        <h2>Haber Arama</h2>
        <input type="text" id="search-input" placeholder="Aramak istediğiniz kelimeyi girin..." autofocus>
        <button id="search-button" style="font-size:15px">Haber Ara</button>
    </div>
</div>
    <!-- Bootstrap JS ve gerekli bağımlılıklar -->
    <script src="/js/jquery-3.6.0.min.js"></script>
    <script src="/js/popper.min.js"></script>
<script src="/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
    <!-- Bootstrap Icons -->
       <script src="/js/owl.carousel.min.js"></script>
<script src="/dist/scripts/soccer.min.js"></script>
<script src="/dist/owl.carousel.js"></script>
 <script src="/js/jquery-migrate-3.4.0.min.js"></script>
  <script src="/slick/slick.js?v2022" type="text/javascript" charset="utf-8"></script>
    <script src="/js/swiper-bundle.min.js"></script>
<script type="text/javascript" src="/js/slick.min.js"></script>

  <script type="text/javascript">
    $(document).on('ready', function() {
      $(".vertical-center-4").slick({
        dots: true,
        vertical: true,
        centerMode: true,
        slidesToShow: 4,
        slidesToScroll: 2
      });
      $(".vertical-center-3").slick({
        dots: true,
        vertical: true,
        centerMode: true,
        slidesToShow: 3,
        slidesToScroll: 3
      });
      $(".vertical-center-2").slick({
        dots: true,
        vertical: true,
        centerMode: true,
        slidesToShow: 2,
        slidesToScroll: 2
      });
      $(".vertical-center").slick({
        dots: true,
        vertical: true,
        centerMode: true,
      });
      $(".vertical").slick({
        dots: true,
        vertical: true,
        slidesToShow: 3,
        slidesToScroll: 3
      });
      $(".regular").slick({
        dots: true,
        infinite: true,
        slidesToShow: 3,
        slidesToScroll: 3
      });
      $(".center").slick({
        dots: true,
        infinite: true,
        centerMode: true,
        slidesToShow: 5,
        slidesToScroll: 3
      });
      $(".variable").slick({
        dots: true,
        infinite: true,
        variableWidth: true
      });
      $(".regular2").slick({
        dots: true,
        infinite: true,
        variableWidth: true
      });
      $(".lazy").slick({
        lazyLoad: 'ondemand', // ondemand progressive anticipated
        infinite: true
      });
    });



</script>
<script>
function openNav() {
  document.getElementById("mySidenav").style.width = "250px";
}

function closeNav() {
  document.getElementById("mySidenav").style.width = "0";
}


</script>

<?php echo $__env->yieldContent('script'); ?>
  <script>
    $(document).ready(function() {
        $('.zodiac-item').click(function() {
            var sign = $(this).data('sign');
            $.ajax({
                url: '/get-horoscope',
                method: 'GET',
                data: { sign: sign },
                success: function(response) {
                    $('#horoscopeModalLabel').text(sign + ' Burcu Yorumu');
                    $('#horoscopeContent').html(response.content);
                    $('#horoscopeModal').modal('show');
                },
                error: function() {
                    alert('Burç yorumu getirilemedi.');
                }
            });
        });



$(document).on('click', '.social-emotes-container', function () {
    let emoteType = $(this).data('emote-name'); // Tıklanan emoji türü
    let newsId = $('#news-id').val(); // Haber ID'si

    $.ajax({
        url: '/emoji/update',
        type: 'GET', // CSRF koruması için POST kullanılıyor
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') // CSRF token
        },
        data: {
            news_id: newsId,
            type: getEmojiType(emoteType),
        },
        success: function (response) {
                $(`.1-count`).html('0');
                $(`.2-count`).html('0');
                $(`.3-count`).html('0');
                $(`.4-count`).html('0');
                $(`.5-count`).html('0');
                $(`.6-count`).html('0');
            // Her emoji türü için sayıları güncelle
            response.forEach((reaction) => {
                $(`.${reaction.type}-count`).html(reaction.count);
            });
        },
        error: function (error) {
            console.error('Error updating emoji:', error);
        }
    });
});

function getEmojiType(name) {
    switch (name) {
        case 'like': return 1;
        case 'disslike': return 2;
        case 'smile': return 3;
        case 'sad': return 4;
        case 'angry': return 5;
        case 'surprised': return 6;
        default: return 0;
    }
}


$('.commment-send').on('click', function () {
    let newsId = $('#news-id').val(); // Haber ID'si
    let name = $('input[placeholder="Adınız Soyadınız"]').val();
    let mail = $('input[placeholder="Mail Adresiniz"]').val();
    let comment = $('textarea[placeholder="Yorumunuz"]').val();

    $.ajax({
        url: '/comments',
        type: 'GET',
          headers: {
                        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                    },
        data: {
            news_id: newsId,
            name: name,
            mail: mail,
            comment: comment,
        },
        success: function (response) {
            location.reload(); 
            alert(response.message);
        }
    });
});


$(document).on('click', '.like, .dislike', function () {
    let commentId = $(this).data('id');
    let type = $(this).hasClass('like') ? 1 : 0;

    $.ajax({
        url: '/like/comments',
        type: 'GET',
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        },
        data: {
            comment_id: commentId,
            type: type,
        },
        success: function (response) {
            // Dönen verileri güncelle
            $(`[data-id="${commentId}"].like`).html(`<i class="bi bi-hand-thumbs-up-fill"></i> ${response.like_count}`);
            $(`[data-id="${commentId}"].dislike`).html(`<i class="bi bi-hand-thumbs-down-fill"></i> ${response.dislike_count}`);
        },
        error: function (error) {
            console.error('Error:', error);
        }
    });
});



document.getElementById("search-icon").addEventListener("click", function (e) {
    e.preventDefault();
    document.getElementById("site-content").classList.add("blur");
    document.getElementById("search-modal").style.display = "block";
});

// Modalı kapatma (X işareti veya başka bir yere tıklayınca)
document.getElementById(".close").addEventListener("click", function () {
    document.getElementById("site-content").classList.remove("blur");
    document.getElementById("search-modal").style.display = "none";
});

// Sayfa dışına tıklanınca modalı kapatma
window.onclick = function (event) {
    var modal = document.getElementById("search-modal");
    if (event.target == modal) {
        document.getElementById("site-content").classList.remove("blur");
        document.getElementById("search-modal").style.display = "none";
    }
};

// Arama fonksiyonu
function performSearch() {
    var query = document.getElementById("search-input").value;
    if (query.trim() !== "") {
        // Arama işlemini burada gerçekleştirin (örneğin, başka bir sayfaya yönlendirin)
        window.location.href = "/search?q=" + encodeURIComponent(query);
    }
}

// Arama butonuna tıklanınca işlem yap
document.getElementById("search-button").addEventListener("click", function () {
    performSearch();
});

// Input alanında Enter tuşuna basıldığında arama yap
document.getElementById("search-input").addEventListener("keydown", function (event) {
    if (event.key === "Enter") {
        performSearch();
    }
});
    });





</script>


<?php if(config('settings.onesignal_push_app_id')!=""): ?>


<script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>
<script>
  window.OneSignalDeferred = window.OneSignalDeferred || [];
  OneSignalDeferred.push(async function(OneSignal) {
    await OneSignal.init({
      appId: "<?php echo e(config('settings.onesignal_push_app_id')); ?>",
    });
  });
</script>
<?php endif; ?>


</body>
<?php /**PATH /home/kocaelid/domains/kocaeliduysun.net/public_html/resources/views/layout/footer.blade.php ENDPATH**/ ?>