<div class="ldld full" style="z-index: 999;"></div>
<?php
    //$footer_data = footerSettings()['data'];
    $footer_data = getWebSyncsData('Footer Settings', 'footerSettings', '');

    $background_music = backgroundMusic()['data'];
    // print_r($background_music); die();
?>


<style type="text/css">
    /* audio {

        border: 1px solid white;
        border-radius: 28px;
    }

    audio::-webkit-media-controls-time-remaining-display {
        display: none !important;
    }

    audio::-webkit-media-controls-current-time-display {
        display: none !important;
    }

    audio::-webkit-media-controls-play-button,
    audio::-webkit-media-controls-panel {
        background-color: var(--headerFooter) !important;
        color: var(--blue) !important;
        border: 2px solid #fff !important;
    } */

    .footer-logo {
        height: 187px;
        width: auto;
        margin-top: 0;
    }
</style>



<!-- ======= Footer ======= -->
<footer id="footer" style="background-color: var(--blue)!important;">

    <div class="footer-top header-footer-bg" style="background-color:#047028">
        <div class="container-fluid px-5">
            <div class="row p-0 m-0">
                <div class="col-md-8 m-0 p-0">
                    <div class="row">
                        <div class="col-lg-4 col-md-4  p-0 footer-links mt-5">

                            <!-- ======================================================= -->

                            <?php if(isset($footer_data[0]['footerLogo']) && $footer_data[0]['footerLogo'] != ''): ?>
                                
                                <img src="<?php echo e(ApiBaseUrl()['url'] . $header_data[0]['leftImage']); ?>"
                                    class="footer-logo" />
                            <?php else: ?>
                                <img src="<?php echo e(asset('assets/img/ssvt.png')); ?>" class="img-fluid footer-logo">
                            <?php endif; ?>

                            <!-- ======================================================= -->


                            <!-- ==========================Background Music Start============================= -->
                            <?php if(!empty($background_music)): ?>
                                <?php $emptyD = ''; ?>

                                <?php $__currentLoopData = $background_music; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php if(
                                        !empty($value['refDataName']) &&
                                            strtoupper($value['dayName']) == strtoupper(date('l')) &&
                                            $value['status'] == 'ACTIVE'): ?>
                                        <?php $emptyD = 'active'; ?>

                                        <audio class="h-80 mt-3" id="bgMusic" controls
                                            controlslist="nodownload noplaybackrate" style="width:220px">
                                            <source src="<?php echo e(ApiBaseUrl()['url'] . $value['refDataName']); ?>"
                                                type="audio/mpeg">
                                            Your browser does not support the audio element.
                                        </audio>
                                    <?php break; ?>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            <?php if(empty($emptyD)): ?>
                                <?php $day = strtolower(date("l")); ?>
                                <?php $file_path = "assets/music/{$day}-aarti.mp3"; ?>

                                <?php if(file_exists($file_path)): ?>
                                    <audio class="h-80 mt-3" id="bgMusic" controls
                                        controlslist="nodownload noplaybackrate" style="width:220px">
                                        <source src="<?php echo e(asset($file_path)); ?>" type="audio/mpeg">
                                        Your browser does not support the audio element.
                                    </audio>
                                <?php endif; ?>
                            <?php endif; ?>
                        <?php else: ?>
                            <?php $day = strtoupper(date("l")); ?>
                            <?php $file_path = "assets/music/{$day}-aarti.mp3"; ?>

                            <?php if(file_exists($file_path)): ?>
                                <audio class="h-80 mt-3" id="bgMusic" controls
                                    controlslist="nodownload noplaybackrate" style="width:220px">
                                    <source src="<?php echo e(asset($file_path)); ?>" type="audio/mpeg">
                                    Your browser does not support the audio element.
                                </audio>
                            <?php endif; ?>
                        <?php endif; ?>
                        <!-- ===========================Background Music End============================ -->
                    </div>

                    <div class="col-lg-4 col-md-4  p-0 footer-links mt-5">
                        <h4 style="color: white;font-size:25px;">ABOUT US<br>
                            
                        </h4>
                        <ul footer-links>
                            <li><a href="<?php echo e(route('about-temple')); ?>" style="color:white !important;">ABOUT
                                    TEMPLE</a></li>
                            <!-- <li><a href="<?php echo e('calendar'); ?>">UPCOMING EVENTS</a></li> -->
                            <li><a href="<?php echo e(route('services')); ?>" style="color:white !important;"> SERVICES</a></li>
                            <li><a href="<?php echo e(route('donations')); ?>" style="color:white !important;">DONATIONS</a>
                            </li>
                            <li><a href="#" style="color:white !important;">MEMERSHIP FORM</a>
                            </li>
                            <li><a href="<?php echo e(route('volunteer')); ?>" style="color:white !important;">VOLUNTEER
                                    FORM</a>
                            </li>
                            <li><a href="<?php echo e(route('priest-request-form')); ?>" style="color:white !important;">PRIEST
                                    REQUEST
                                    FORM</a></li>
                            
                        </ul>
                    </div>

                    <div class="col-lg-4 col-md-4 m-0 p-0 footer-links mt-5">
                        <div class="row">
                            <div class="col-lg-12 col-md-12 m-0 p-0">
                                <h4 style="color: white;font-size:25px;">TEMPLE TIMINGS<br>
                                    
                                </h4>
                                <table class="table table-responsive"
                                    style=" background-color:green;color: white;;">
                                    <tbody>
                                        <tr stye="color:white;">

                                            <td style="border-right: 1px solid #fff;">WEEKDAYS</td>


                                            <td><?= isset($footer_data[0]['weekdayMorningTime']) && $footer_data[0]['weekdayMorningTime'] != '' ? $footer_data[0]['weekdayMorningTime'] : '' ?>
                                                <br>
                                                <?= isset($footer_data[0]['weekDayEveningTime']) && $footer_data[0]['weekDayEveningTime'] != '' ? $footer_data[0]['weekDayEveningTime'] : '' ?>
                                            </td>


                                        </tr>
                                        <tr>

                                            <td style="border-right: 1px solid #fff;">WEEKENDS</td>
                                            <td> <?= isset($footer_data[0]['weekEndMorningTime']) && $footer_data[0]['weekEndMorningTime'] != '' ? $footer_data[0]['weekEndMorningTime'] : '' ?>
                                                <br>
                                                <?= isset($footer_data[0]['weekEndEveningTime']) && $footer_data[0]['weekEndEveningTime'] != '' ? $footer_data[0]['weekEndEveningTime'] : '' ?>
                                            </td>
                                        </tr>

                                    </tbody>
                                </table>
                            </div>
                            <div class="col-lg-12 col-md-12 mb-4 p-0">
                                <h4 style="color: white;font-size:25px;">FOLLOW US<br>
                                    
                                </h4>

                                <a href="<?= isset($footer_data[0]['facebookLink']) && $footer_data[0]['facebookLink'] != '' ? $footer_data[0]['facebookLink'] : 'javascript:void(0)' ?>"
                                    target="_blank"><i class="fa fa-facebook"
                                        style="border-radius: 50%;background-color: white;font-size: 20px;padding: 18px 22px;color:green;"></i></a>

                                <a href="<?= isset($footer_data[0]['youtubeLink']) && $footer_data[0]['youtubeLink'] != '' ? $footer_data[0]['youtubeLink'] : 'javascript:void(0)' ?>"
                                    target="_blank"><i class="fa fa-youtube"
                                        style="border-radius: 50%;background-color: white;font-size: 20px;padding: 18px 20px; color:green"></i></a>

                                <!-- <a href="<?= isset($footer_data[0]['twitterLink']) && $footer_data[0]['twitterLink'] != '' ? $footer_data[0]['twitterLink'] : 'javascript:void(0)' ?>" target="_blank"><i class="fa fa-twitter" style="border-radius: 50%;background-color: #9d17004d;font-size: 20px;padding: 18px 19px;"></i></a> -->

                            </div>
                        </div>

                    </div>


                </div>

            </div>
            <div class="col-md-4 m-0 p-0 mt-5">
                <div class="row m-0 p-0">
                    <div class="col-lg-4 col-md-4 m-0 p-0 footer-contact">
                        <div class="footer-divider"
                            style="border-style: solid;border-width: 2px 2px 2px 2px;border-color: #b78433;box-shadow: 0px 0px 10px 0px rgb(216 16 16 / 21%);transform: rotate(102deg);    margin: 113px -108px;width: 332px;">

                        </div>
                    </div>
                    <div class="col-lg-8 col-md-8 p-0 footer-contact">
                        <h4 class="m-0" style="color: white;font-size:25px;">CONNECT WITH US<br>
                            
                        </h4>
                        <p style="line-height: 3; font-size:16px!important;">
                            <a href="https://maps.google.com/?q=<?php echo e(isset($footer_data[0]['refDataCode']) && $footer_data[0]['refDataCode'] != '' ? $footer_data[0]['refDataCode'] : ''); ?>"
                                class="text-white" rel="nofollow" target="_blank" rel="nofollow">
                                <?php echo isset($footer_data[0]['refDataCode']) && $footer_data[0]['refDataCode'] != ''
                                    ? $footer_data[0]['refDataCode']
                                    : ''; ?>


                            </a><br />
                            <i class="fa fa-phone text-white"></i>
                            <a href="tel:+1 <?php echo e((isset($footer_data[0]['phone']) && $footer_data[0]['phone']) != '' ? '+1 ' . formatPhoneNumber($footer_data[0]['phone']) : ''); ?>"
                                class="text-white">
                                <?php echo e(isset($footer_data[0]['phone']) && $footer_data[0]['phone'] != '' ? '+1 ' . formatPhoneNumber($footer_data[0]['phone']) : ''); ?>

                            </a><br>
                            <i class="fa fa-envelope text-white"></i>
                            <a href='mailto:<?php echo e(isset($footer_data[0]['email']) && $footer_data[0]['email'] != '' ? $footer_data[0]['email'] : ''); ?>'
                                class="text-white">
                                <?php echo e(isset($footer_data[0]['email']) && $footer_data[0]['email'] != '' ? $footer_data[0]['email'] : ''); ?>

                            </a><br>
                        </p>

                        <a href="<?php echo e(route('contact-us')); ?>" class="btn btn-primary contact py-2"
                            style="color: white!important; border-radius: 20px;  border-color: var(--blue)!important; background: transparent !important; box-shadow: 1px 1px 10px #7e455561;">CONTACT
                            US</a>
                    </div>
                </div>
            </div>

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

<div class="mx-5 d-md-flex py-2">

    <div class="me-md-auto text-center text-md-start">
        <div class="copyright">
            Powered by<strong><span> VAAP</span></strong>.Technologies Inc., All rights reserved.
        </div>
        <div class="credits">
        </div>
    </div>
    <div class="social-links text-center text-md-right pt-3 pt-md-0">
        COPYRIGHT | TERMS OF USE | PRIVACY POLICY | SECURITY
    </div>
</div>
</footer>

<!-- End Footer -->
<?php /**PATH D:\project\vaap\carolinamurugantemple\resources\views/includes/footer.blade.php ENDPATH**/ ?>