<?php use \App\Models\Page; ?>
<?php use \App\Models\LandingPage; ?>
<?php
$locale = Session::get('front-locale', getDefaultLangLocale());
$landingPage = LandingPage::first()?->toArray($locale) ?? [];
$content = $landingPage['content'] ?? [];
?>
<?php if(@$content['footer']['status'] == 1): ?>

<?php if(@$content['footer']['status'] == 1): ?>
<footer class="footer-section">
    <div class="top-footer">
        <div class="container">
            <!-- Logo and Description -->
            <div class="row">
                <div class="col-12">
                    <div class="footer-logo-section text-center">
                        <a href="<?php echo e(route('home')); ?>" class="footer-logo-link wow fadeInUp">
                            <?php if(isset($content['footer']['footer_logo'])): ?>
                            <img class="img-fluid footer-logo-img" alt="footer-logo" src="<?php echo e(asset($content['footer']['footer_logo'])); ?>">
                            <?php endif; ?>
                        </a>
                        <p class="footer-description wow fadeInUp" data-wow-delay="0.2s">
                            <?php echo e(@$content['footer']['description']); ?>

                        </p>
                    </div>
                </div>
            </div>

            <!-- Navigation Links -->
            <div class="row">
                <div class="col-12">
                    <nav class="footer-nav wow fadeInUp" data-wow-delay="0.3s">
                        <ul class="footer-nav-list">
                            <?php
                                $footerPages = [];
                                if (isset($content['footer']['pages'])) {
                                    $footerPages = Page::whereIn('id', $content['footer']['pages'])->get();
                                }
                            ?>
                            <?php $__currentLoopData = $footerPages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li><a href="<?php echo e(route('page.slug', $page->slug)); ?>"><?php echo e($page->title); ?></a></li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <li><a href="#blogs">Blog</a></li>
                            <li><a href="#faqs">FAQs</a></li>
                        </ul>
                    </nav>
                </div>
            </div>

            <!-- Newsletter Section -->
            <div class="row">
                <div class="col-12">
                    <div class="footer-newsletter wow fadeInUp" data-wow-delay="0.4s">
                        <h3 class="newsletter-title"><?php echo e(@$content['footer']['newsletter']['label']); ?></h3>
                        <form method="POST" action="<?php echo e(route('newsletter')); ?>" class="newsletter-form">
                            <?php echo csrf_field(); ?>
                            <div class="newsletter-input-group">
                                <input type="email" class="newsletter-input" name="email" placeholder="<?php echo e(@$content['footer']['newsletter']['placeholder']); ?>" required>
                                <button type="submit" class="newsletter-btn"><?php echo e(@$content['footer']['newsletter']['button_text']); ?></button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

            <!-- Social Media Links -->
            <div class="row">
                <div class="col-12">
                    <div class="footer-social wow fadeInUp" data-wow-delay="0.5s">
                        <ul class="footer-social-list">
                            <?php if(!empty($content['footer']['social']['twitter'])): ?>
                            <li>
                                <a href="<?php echo e($content['footer']['social']['twitter']); ?>" target="_blank" class="social-link">
                                    <i class="ri-twitter-x-line"></i>
                                    <span>Twitter</span>
                                </a>
                            </li>
                            <?php endif; ?>
                            <?php if(!empty($content['footer']['social']['facebook'])): ?>
                            <li>
                                <a href="<?php echo e($content['footer']['social']['facebook']); ?>" target="_blank" class="social-link">
                                    <i class="ri-facebook-fill"></i>
                                    <span>Facebook</span>
                                </a>
                            </li>
                            <?php endif; ?>
                            <?php if(!empty($content['footer']['social']['instagram'])): ?>
                            <li>
                                <a href="<?php echo e($content['footer']['social']['instagram']); ?>" target="_blank" class="social-link">
                                    <i class="ri-instagram-fill"></i>
                                    <span>Instagram</span>
                                </a>
                            </li>
                            <?php endif; ?>
                            <?php if(!empty($content['footer']['social']['linkedin'])): ?>
                            <li>
                                <a href="<?php echo e($content['footer']['social']['linkedin']); ?>" target="_blank" class="social-link">
                                    <i class="ri-linkedin-fill"></i>
                                    <span>LinkedIn</span>
                                </a>
                            </li>
                            <?php endif; ?>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bottom Footer -->
    <div class="bottom-footer">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-md-6">
                    <p class="copyright-text"><?php echo e(@$content['footer']['copyright']); ?></p>
                </div>
                <div class="col-md-6">
                    <ul class="footer-bottom-links">
                        <li><a href="#terms">Terms & Conditions</a></li>
                        <li><a href="#privacy">Privacy Policy</a></li>
                        <li><a href="#trust">Trust</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</footer>
<?php endif; ?>
<?php endif; ?>
<!-- Footer end -->
<?php /**PATH /home/webiotspc/GitHub/taxify-laravel/resources/views/front/layouts/footer.blade.php ENDPATH**/ ?>