<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<section class="footer_color" id="contact">
    <div class=" container-fluid">
        <div class="row flex-column-reverse flex-md-row">
            <?php if($settings['contact_form']['hide']): ?>
            <div class="col-sm-6">
                <div class="container">
                    <p><?php echo e(trans('admin.form_text')); ?></p>
                    <p class="font_cost h1"><?php echo e(trans('default.form_heading')); ?></p>
                    <br>
                    <form id="contact_save">
                        <?php echo csrf_field(); ?>
                        <div class="mb-3">
                            <label for="name" class="form-label"></label>
                            <input type="text" class="form-control border_radi" id="name"  placeholder="<?php echo e(trans('default.form_name')); ?>" name="name">
                            <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <script>
                                    swal("<?php echo e($message); ?>",'error');
                                </script>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="mb-3">
                            <label for="mobile" class="form-label"></label>
                            <input type="text" class="form-control border_radi" id="mobile"  placeholder="<?php echo e(trans('default.mob_number')); ?>" name="mobile">
                        </div>
                        <div class="mb-3">
                            <label for="email" class="form-label"></label>
                            <input type="email" class="form-control border_radi" id="email"  placeholder="<?php echo e(trans('default.form_email')); ?>" name="email">
                            <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <script>
                                    swal("<?php echo e($message); ?>",'error');
                                </script>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <div class="mb-3">
                            <label for="text" class="form-label"></label>
                            <textarea class="form-control border_radi" id="text" rows="3" placeholder="<?php echo e(trans('default.form_message')); ?>" name="text"></textarea>
                            <?php $__errorArgs = ['text'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <script>
                                    swal("<?php echo e($message); ?>",'error');
                                </script>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                        <button type="submit" class="btn btn-primary px-5 border_radi"><?php echo e(trans('default.form_button')); ?></button>
                    </form>
                </div>
            </div>
            <?php endif; ?>
            <?php if($settings['footer']['hide']): ?>
            <div class="col-sm-6 col-md-5 offset-md-1">
                <div class="container">
                    <p><?php echo e(trans('default.footer_sub_heading')); ?></p>
                    <p class="font_cost h1"><?php echo e(trans('default.footer_heading')); ?></p>

                    <div class="my-5">
                        <?php echo $settings['footer']['description'][$locale]; ?>



                        <ul class="list-inline my-4">
                            <?php $__currentLoopData = $socials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $social): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li class="list-inline-item">
                                    <a href="<?php echo e($social['link']); ?>" target="_blank" class="text-white">
                                        <b class="bi bi-<?php echo e($social['icon']); ?>"></b>
                                    </a>
                                </li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>

                </div>
            </div>
            <?php endif; ?>
        </div>
    </div>

</section>

<?php if($settings['footer_bar']['hide']): ?>
<section class="footer_color_b">
  <div class="container">
    <div class="d-inline-flex col-6"><span><?php echo e($settings['footer_bar']['copy_right']['name'][$locale]); ?></span></div>
        <div class="float-end text-end col-6">
            <a class="text-decoration-none px-2 text-capitalize" href="/privacy"><?php echo e($settings['footer_bar']['privacy_policy']['name'][$locale]); ?></a>
            <a class="text-decoration-none px-2 text-capitalize" href="/terms"><?php echo e($settings['footer_bar']['terms_and_condetion']['name'][$locale]); ?></a>
        </div>
    </div>
</section>
<?php endif; ?>
<script src="<?php echo e(asset('assets/theme/js/jquery.js')); ?>"></script>
<script src="<?php echo e(asset('assets/frontend/slider/js/lightslider.js')); ?>"></script>
<script src="<?php echo e(asset('assets/frontend/js/main.js')); ?>"></script>

<style>
    .nav-link, .bar_link{
        color: <?php echo e($settings['topbar']['colors']['text_color']); ?> !important;
    }
    .footer_color{
        color: <?php echo e($settings['footer']['colors']['text_color']); ?> !important;
        background-color: <?php echo e($settings['footer']['colors']['background_color']); ?> !important;
    }
    .footer_color  p.h1, .footer_color  h6{
        color: <?php echo e($settings['footer']['colors']['title_color']); ?> !important;
    }
    .footer_color_b, .footer_color_b a{
        background-color: <?php echo e($settings['footer_bar']['colors']['background_color']); ?>;
        color:<?php echo e($settings['footer_bar']['colors']['text_color']); ?> !important;
    }

    .footer_color .form-control{
        background-color: <?php echo e($settings['contact_form']['colors']['inputs_background']); ?>;
        color: <?php echo e($settings['contact_form']['colors']['inputs_foreground']); ?>;
    }
    .footer_color .btn{
        border:none;
        color: <?php echo e($settings['contact_form']['colors']['button_foreground']); ?> !important;
        background-color: <?php echo e($settings['contact_form']['colors']['button_background']); ?> !important;

    }

</style>
<script>
    $('body').on('submit','#contact_save',function(e){
        e.preventDefault();
        var form_data = new FormData(this);
        $.ajax({
            url: '<?php echo e(url("/contact_msg")); ?>',
            data: form_data,
            contentType: false,
            processData: false,
            cache: false,
            type:'POST',
            dataType: 'json',
        })
        .done(function (res) {
            swal('',res.text, res.cls);
        })
        .fail(function () {
        console.log("error");
        }).always(function(){
            console.log("stop");
        });
    });

    $(document).ready(function(){
        // menu
        $('.navbar-nav>li>a').on('click', function(){
            $('.navbar-collapse').collapse('hide');
        });

        // Slider
            var slider = $('#light-slider').lightSlider({
            slideEndAnimation: true,
                keyPress: true,
                item: 4,
                loop: true,
                auto: false,
                controls: false,
                pauseOnHover: true,
                adaptiveHeight: true,
                pager : false,
                rtl: <?php echo e($locale == 'ar' ? 'true' : 'false'); ?>,
                responsive : [
                    {
                        breakpoint:900,
                        settings: {
                            item:5,
                            slideMove:1
                        }
                    },
                    {
                        breakpoint:800,
                        settings: {
                            item:3,
                            slideMove:1,
                            slideMargin:6,
                        }
                    },
                    {
                        breakpoint:480,
                        settings: {
                            item:2,
                            slideMove:1
                        }
                    }
                ]
        });
    });

    var btn = $('#button');

    $(window).scroll(function() {
        if ($(window).scrollTop() > 300) {
            btn.addClass('show');
        } else {
            btn.removeClass('show');
        }
    });

    btn.on('click', function(e) {
        e.preventDefault();
        $('html, body').animate({scrollTop:0}, '300');
    });



</script>

<script src="<?php echo e(asset('assets/theme/js/bootstrap.min.js')); ?>"></script>

  </body>
</html>
<?php /**PATH /home/vagrant/code/manage_sarfapp/resources/views//frontend/default/footer.blade.php ENDPATH**/ ?>