<?php
    $footer_contact=App\ContactUs::first();
    $setting=App\Setting::first();
    $contactInfo=App\ContactInformation::first();
    $footer_banner=App\BannerImage::find(22);
    $navigations=App\Navigation::all();
    $websiteLang=App\ManageText::all();
?>



<?php if($setting->live_chat==1): ?>
<script type="text/javascript">
    var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
    (function(){
        var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
        s1.async=true;
        s1.src='<?php echo e($setting->livechat_script); ?>';
        s1.charset='UTF-8';
        s1.setAttribute('crossorigin','*');
        s0.parentNode.insertBefore(s1,s0);
    })();
</script>

<?php endif; ?>

<?php
    $modalConsent=App\ModalConsent::first();

?>

<?php if($modalConsent->status==1): ?>
<script src="<?php echo e(asset('user/js/cookieconsent.min.js')); ?>"></script>

<script>
window.addEventListener("load",function(){window.wpcc.init({"border":"<?php echo e($modalConsent->border); ?>","corners":"<?php echo e($modalConsent->corners); ?>","colors":{"popup":{"background":"<?php echo e($modalConsent->background_color); ?>","text":"<?php echo e($modalConsent->text_color); ?> !important","border":"<?php echo e($modalConsent->border_color); ?>"},"button":{"background":"<?php echo e($modalConsent->btn_bg_color); ?>","text":"<?php echo e($modalConsent->btn_text_color); ?>"}},"content":{"href":"<?php echo e(route('privacy-policy')); ?>","message":"<?php echo e($modalConsent->message); ?>","link":"<?php echo e($modalConsent->link_text); ?>","button":"<?php echo e($modalConsent->btn_text); ?>"}})});
</script>
<?php endif; ?>



  <!--=====FOOTER START=====-->
  <footer class="pt_45">
    <div class="container">
      <div class="row justify-content-between">
        <div class="col-xl-4 col-sm-8 col-md-7 col-lg-4">
          <div class="wsus__footer_content">
            <a href="<?php echo e(route('home')); ?>" class="footer_logo"><img src="<?php echo e(asset($setting->footer_logo)); ?>" alt=""></a>
            <!-- <p class="footer_text"><?php echo e($contactInfo->about); ?></p> -->
            <p class="address"><i class="fal fa-location-circle"></i> <?php echo nl2br(e($footer_contact->footer_address)); ?></p>
            <a class="call_mail" href="javascript:;"><i class="fal fa-phone-alt"></i> <?php echo nl2br(e($footer_contact->footer_phone)); ?></a>
            <a class="call_mail" href="javascript:;"><i class="fal fa-envelope-open"></i> <?php echo nl2br(e($footer_contact->footer_email)); ?></a>
          </div>
        </div>
        <div class="col-xl-2 col-md-4 col-lg-2">
          <div class="wsus__footer_content">
            <h4><?php echo e($websiteLang->where('lang_key','short_link')->first()->custom_text); ?></h4>
            <ul class="footer_link">
                <?php
                    $about_menu=$navigations->where('id',4)->first();
                ?>
                <?php if($about_menu->status==1): ?>
                <li><a href="<?php echo e(route('about.us')); ?>"><?php echo e($about_menu->navbar); ?></a></li>
                <?php endif; ?>
                <?php
                    $all_property_menu=$navigations->where('id',3)->first();
                ?>
                <?php if($all_property_menu->status==1): ?>
                <li><a href="<?php echo e(route('properties',['page_type' => 'list_view'])); ?>"><?php echo e($all_property_menu->navbar); ?></a></li>
                <?php endif; ?>

                <?php
                    $blog_menu=$navigations->where('id',7)->first();
                ?>
                <?php if($blog_menu->status==1): ?>
                <li class="nav-item">
                    <li><a href="<?php echo e(route('blog')); ?>"><?php echo e($blog_menu->navbar); ?></a></li>
                </li>
                <?php endif; ?>

                <?php
                    $pricing_menu=$navigations->where('id',5)->first();
                ?>
                <?php if($pricing_menu->status==1): ?>
                    <li><a href="<?php echo e(route('pricing.plan')); ?>"><?php echo e($pricing_menu->navbar); ?></a></li>
                <?php endif; ?>
            </ul>
          </div>
        </div>
        <div class="col-xl-2 col-md-4 col-lg-2 order-md-4">
          <div class="wsus__footer_content">
            <h4><?php echo e($websiteLang->where('lang_key','help_link')->first()->custom_text); ?></h4>
            <ul class="footer_link">
                <?php
                    $terms_and_condition=$navigations->where('id',15)->first();
                ?>
                <?php if($terms_and_condition->status==1): ?>
                <li><a href="<?php echo e(route('terms-and-conditions')); ?>"><?php echo e($terms_and_condition->navbar); ?></a></li>
                <?php endif; ?>

                <?php
                    $privacy_policy=$navigations->where('id',16)->first();
                ?>
                <?php if($privacy_policy->status==1): ?>
                <li><a href="<?php echo e(route('privacy-policy')); ?>"><?php echo e($privacy_policy->navbar); ?></a></li>
                <?php endif; ?>


                <?php
                    $faq_menu=$navigations->where('id',17)->first();
                ?>
                <?php if($faq_menu->status==1): ?>
                <li><a href="<?php echo e(route('faq')); ?>"><?php echo e($faq_menu->navbar); ?></a></li>
                <?php endif; ?>

                <?php
                    $contact_menu=$navigations->where('id',8)->first();
                ?>
                <?php if($contact_menu->status==1): ?>
                <li class="nav-item">
                    <li><a href="<?php echo e(route('contact.us')); ?>"><?php echo e($contact_menu->navbar); ?></a></li>
                </li>
                <?php endif; ?>
            </ul>
          </div>
        </div>
        <div class="col-xl-3 col-xl-2 col-sm-7 col-md-7 col-lg-3 order-lg-4">
          <div class="wsus__footer_content">
            <h4><?php echo e($websiteLang->where('lang_key','follow_us')->first()->custom_text); ?></h4>
            <ul class="footer_icon d-flex flex-wrap">
                <?php if($footer_contact->facebook): ?>
                    <li><a href="<?php echo e($footer_contact->facebook); ?>"><i class="fab fa-facebook-f"></i></a></li>
                <?php endif; ?>
                <?php if($footer_contact->twitter): ?>
                <li><a href="<?php echo e($footer_contact->twitter); ?>"><i class="fab fa-twitter"></i></a></li>
                <?php endif; ?>
                <?php if($footer_contact->linkedin): ?>
                <li><a href="<?php echo e($footer_contact->linkedin); ?>"><i class="fab fa-linkedin-in"></i></a></li>
                <?php endif; ?>
                <?php if($footer_contact->instagram): ?>
                <li><a href="<?php echo e($footer_contact->instagram); ?>"><i class="fab fa-instagram"></i></a></li>
                <?php endif; ?>
                <?php if($footer_contact->youtube): ?>
                <li><a href="<?php echo e($footer_contact->youtube); ?>"><i class="fab fa-youtube"></i></a></li>
                <?php endif; ?>
            </ul>
            <!-- <h4 class="mt_30 mb_30"><?php echo e($websiteLang->where('lang_key','subscribe')->first()->custom_text); ?></h4>
            <form id="subscribeForm">
              <input type="text" placeholder="<?php echo e($websiteLang->where('lang_key','email')->first()->custom_text); ?>" name="email">
              <button id="subscribeBtn" type="submit"><i id="subscribe-spinner" class="loading-icon fa fa-spin fa-spinner d-none mt-1"></i>  <i id="angleRight" class="fal fa-angle-right"></i></button>
            </form> -->
          </div>
        </div>
      </div>
      <div class="row large_subscribe">
        <div class="col-xl-4 col-lg-5">
          <div class="large_subscribe_text">
            <h4 class=""><?php echo e($websiteLang->where('lang_key','subscribe_us')->first()->custom_text); ?></h4>
          </div>
        </div>
        <div class="col-xl-8 pe-0 col-lg-7">
            <form id="subscribeForm">
              <input type="text" placeholder="<?php echo e($websiteLang->where('lang_key','email')->first()->custom_text); ?>" name="email">
              <button id="subscribeBtn" type="submit"><i id="subscribe-spinner" class="loading-icon fa fa-spin fa-spinner d-none mt-1"></i>  <i id="angleRight" class="fal fa-angle-right"></i></button>
            </form>
        </div>
      </div>
    </div>
    <div class="wsus__copyright mt_45">
      <div class="ontainer">
        <div class="row">
          <div class="col-12 text-center">
            <p><?php echo e($contactInfo->copyright); ?></p>
          </div>
        </div>
      </div>
    </div>
  </footer>
  <!--=====FOOTER END=====-->


  <!--=====SCROLL BUTTON START=====-->
    <div class="wsus__scroll_btn">
      <i class="fas fa-chevron-up"></i>
  </div>
  <!--=====SCROLL BUTTON END=====-->



  <!--bootstrap js-->
  <script src="<?php echo e(asset('user/js/bootstrap.bundle.min.js')); ?>"></script>
  <!--font-awesome js-->
  <script src="<?php echo e(asset('user/js/Font-Awesome.js')); ?>"></script>
  <!--slick js-->
  <script src="<?php echo e(asset('user/js/slick.min.js')); ?>"></script>
  <!--select-2 js-->
  <script src="<?php echo e(asset('user/js/select2.min.js')); ?>"></script>
  <!--counter-2 js-->
  <script src="<?php echo e(asset('user/js/jquery.waypoints.min.js')); ?>"></script>
  <script src="<?php echo e(asset('user/js/jquery.countup.min.js')); ?>"></script>
  <!--add row custon js-->
  <script src="<?php echo e(asset('user/js/add_row_custon.js')); ?>"></script>
  <!--sticky sidebar js-->
  <script src="<?php echo e(asset('user/js/sticky_sidebar.js')); ?>"></script>
  <!--summer note js-->



  <!--main/custom js-->
  <script src="<?php echo e(asset('user/js/main.js')); ?>"></script>

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

    <script>
        <?php if(Session::has('messege')): ?>
          var type="<?php echo e(Session::get('alert-type','info')); ?>"
          switch(type){
              case 'info':
                   toastr.info("<?php echo e(Session::get('messege')); ?>");
                   break;
              case 'success':
                  toastr.success("<?php echo e(Session::get('messege')); ?>");
                  break;
              case 'warning':
                 toastr.warning("<?php echo e(Session::get('messege')); ?>");
                  break;
              case 'error':
                  toastr.error("<?php echo e(Session::get('messege')); ?>");
                  break;
          }
        <?php endif; ?>
    </script>

    <?php if($errors->any()): ?>
        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <script>
                toastr.error('<?php echo e($error); ?>');
            </script>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>

<script>
        (function($) {
        "use strict";
        $(document).ready(function () {


            $("#subscribeBtn").on('click',function(e) {
                e.preventDefault();
                // project demo mode check
                var isDemo="<?php echo e(env('PROJECT_MODE')); ?>"
                var demoNotify="<?php echo e(env('NOTIFY_TEXT')); ?>"
                if(isDemo==0){
                    toastr.error(demoNotify);
                    return;
                }
                // end

                $("#subscribe-spinner").removeClass('d-none')
                $("#subscribeBtn").addClass('custom-opacity')
                $("#subscribeBtn").removeClass('common_btn_2')
                $("#subscribeBtn").attr('disabled',true);
                $("#angleRight").addClass('d-none');

                $.ajax({
                    url: "<?php echo e(route('subscribe-us')); ?>",
                    type:"get",
                    data:$('#subscribeForm').serialize(),
                    success:function(response){
                        if(response.success){
                            $("#subscribeForm").trigger("reset");
                            toastr.success(response.success)

                            $("#subscribe-spinner").addClass('d-none')
                            $("#subscribeBtn").removeClass('custom-opacity')
                            $("#subscribeBtn").addClass('common_btn_2')
                            $("#subscribeBtn").attr('disabled',false);
                            $("#angleRight").removeClass('d-none');

                        }
                        if(response.error){
                            toastr.error(response.error)
                            $("#subscribeForm").trigger("reset");
                            $("#subscribe-spinner").addClass('d-none')
                            $("#subscribeBtn").removeClass('custom-opacity')
                            $("#subscribeBtn").addClass('common_btn_2')
                            $("#subscribeBtn").attr('disabled',false);
                            $("#angleRight").removeClass('d-none');
                        }
                    },
                    error:function(response){
                        if(response.responseJSON.errors.email){

                            toastr.error(response.responseJSON.errors.email[0])

                            $("#subscribe-spinner").addClass('d-none')
                            $("#subscribeBtn").removeClass('custom-opacity')
                            $("#subscribeBtn").addClass('common_btn_2')
                            $("#subscribeBtn").attr('disabled',false);
                            $("#angleRight").removeClass('d-none');

                        }
                    }

                });

            })

        });

        })(jQuery);
    </script>

</body>

</html>
<?php /**PATH E:\AR-8u191-IT\well-known (1)\resources\views/layouts/user/footer.blade.php ENDPATH**/ ?>