<?php
    $footerContent = getContent('footer.content', true);
    $footerElements = getContent('footer.element', false, null, true);
    $policyPages = getContent('policy_pages.element', false, null, true);
?>

<footer class="footer bg-img"
    data-background-image="<?php echo e(frontendImage('footer', @$footerContent->data_values->image, '1920x475')); ?>">
    <div class="footer-top">
        <div class="container">
            <div class="row gy-4">
                <!-- Footer Logo and Description -->
                <div class="col-12 col-sm-12 col-lg-3">
                    <div class="footer-item one">
                        <a class="footer-logo" href="<?php echo e(route('home')); ?>">
                            <img src="<?php echo e(siteLogo('dark')); ?>" alt="Logo" />
                        </a>

                        <p class="footer-item__desc"><?php echo e(__(@$footerContent->data_values->description)); ?></p>
                    </div>
                </div>

                <!-- Quick Links Section -->
                <div class="col-6 col-sm-4 col-lg-2">
                    <div class="footer-item two">
                        <h6 class="footer-item__title"><?php echo app('translator')->get('Quick Links'); ?></h6>
                        <ul class="footer-menu">
                            <li class="footer-menu__item">
                                <a class="footer-menu__link" href="<?php echo e(route('service')); ?>"><?php echo app('translator')->get('Services'); ?></a>
                            </li>
                            <li class="footer-menu__item">
                                <a class="footer-menu__link" href="<?php echo e(route('software')); ?>"><?php echo app('translator')->get('Software'); ?></a>
                            </li>
                            <li class="footer-menu__item">
                                <a class="footer-menu__link" href="<?php echo e(route('job')); ?>"><?php echo app('translator')->get('Jobs'); ?></a>
                            </li>
                            <li class="footer-menu__item"><a class="footer-menu__link"
                                    href="<?php echo e(route('user.login')); ?>"><?php echo app('translator')->get('Sign In'); ?></a></li>
                        </ul>
                    </div>
                </div>

                <!-- Our Services -->
                <div class="col-6 col-sm-4 col-lg-2">
                    <div class="footer-item three">
                        <h6 class="footer-item__title"><?php echo app('translator')->get('Our Services'); ?></h6>
                        <ul class="footer-menu">
                            <?php $__currentLoopData = $categories->take(4); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li class="footer-menu__item">
                                    <a class="footer-menu__link"
                                        href="<?php echo e(route('category.wise.product', [slug($category->name), $category->id])); ?>">
                                        <?php echo e(__($category->name)); ?>

                                    </a>
                                </li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                </div>

                <!-- Legal & Support -->
                <div class="col-6 col-sm-4 col-lg-2">
                    <div class="footer-item four">
                        <h6 class="footer-item__title"><?php echo app('translator')->get('Legal & Support'); ?></h6>
                        <ul class="footer-menu">
                            <?php $__currentLoopData = $policyPages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $policy): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li class="footer-menu__item">
                                    <a class="footer-menu__link" href="<?php echo e(route('policy.pages', $policy->slug)); ?>">
                                        <?php echo e(__($policy->data_values->title)); ?>

                                    </a>
                                </li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <li class="footer-menu__item"><a class="footer-menu__link"
                                    href="<?php echo e(route('contact')); ?>"><?php echo app('translator')->get('Contact Us'); ?></a></li>
                            <li class="footer-menu__item"><a class="footer-menu__link"
                                    href="<?php echo e(route('blogs')); ?>"><?php echo app('translator')->get('Blogs'); ?></a></li>

                        </ul>
                    </div>
                </div>
                <!-- Subscribe Section -->
                <div class="col-12 col-sm-12 col-lg-3">
                    <div class="footer-item five">
                        <h6 class="footer-item__title"><?php echo e(__(@$footerContent->data_values->subscribe_heading)); ?></h6>
                        <p class="footer-item__desc"><?php echo e(__(@$footerContent->data_values->subscribe_description)); ?></p>
                        <form class="subscribe-form" id="subscribeForm">
                            <div class="input-group">
                                <input class="form-control" type="email" placeholder="<?php echo app('translator')->get('Email Address'); ?>"
                                    name="email" id="subscriberEmail" required />
                                <button class="btn btn--base" type="submit">
                                    <svg width="31" height="31" viewBox="0 0 31 31" fill="none"
                                        xmlns="http://www.w3.org/2000/svg">
                                        <path d="M11.4314 20.0454L15.8979 15.0773" stroke="white" stroke-width="2"
                                            stroke-linecap="round" stroke-linejoin="round" />
                                        <path
                                            d="M22.5976 7.62511L1.74585 15.8297L11.1123 20.4003L16.6502 29.2293L22.5976 7.62511Z"
                                            stroke="white" stroke-width="2" stroke-linecap="round"
                                            stroke-linejoin="round" />
                                    </svg>
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Footer Bottom -->
    <div class="footer-bottom">
        <div class="container">
            <div class="footer-bottom__wrapper">
                <p class="footer-bottom__text"><?php echo e(__(@$footerContent->data_values->copyright_text)); ?></p>
                <ul class="social-list">
                    <?php $__currentLoopData = $footerElements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $footer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li class="social-list__item">
                            <a href="<?php echo e(@$footer->data_values->url); ?>" class="social-list__link"
                                target="__blank"><?php echo @$footer->data_values->social_icon ?></a>
                        </li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            </div>
        </div>
    </div>
</footer>



<?php $__env->startPush('script'); ?>
    <script>
        'use strict';
        (function($) {
            $('#subscribeForm').on('submit', function(e) {
                e.preventDefault(); // Prevent form from submitting normally

                var email = $('#subscriberEmail').val();
                var csrfToken = '<?php echo e(csrf_token()); ?>';

                $.ajax({
                    type: 'POST',
                    url: '<?php echo e(route('subscriber.store')); ?>',
                    data: {
                        email: email,
                        _token: csrfToken
                    },
                    dataType: 'json',
                    success: function(response) {
                        if (response.success) {
                            notify('success', response.success);
                            $('#subscriberEmail').val(''); // Clear the input field on success
                        } else {
                            notify('error', response.error);
                        }
                    },
                    error: function(xhr) {
                        var errorMessage = xhr.responseJSON ? xhr.responseJSON.message :
                            '<?php echo app('translator')->get('An error occurred, please try again.'); ?>';
                        notify('error', errorMessage);
                    }
                });
            });
        })(jQuery);
    </script>
<?php $__env->stopPush(); ?>
<?php /**PATH /home/u710135641/domains/compulancer.com/public_html/core/resources/views/templates/basic/partials/footer.blade.php ENDPATH**/ ?>