<?php $footer = $this->mainMenu()->getCompanyData(); ?>

<footer id="footer" class="midnight-blue">
    <div class="container">
        <div class="row">
            <div class="col-sm-6">
                Copyright &copy; <?php echo date("Y"); ?> Powered By <a target="_blank" href="<?php echo $footer['frontend_footer_url']; ?>" title="<?php echo $footer['frontend_footer']; ?>"><?php echo $footer['frontend_footer']; ?></a>. All Rights Reserved.
            </div>
            <div class="col-sm-6">
                <p class="text-right">
                    Designed & Developed by <a href="<?php echo $footer['developed_by']; ?>" target="_blank">tracoweb.com</a>
                </p>

            </div>
        </div>

    </div>
</footer>
<!-- Modal HTML -->
<div id="ajax-modal" class="modal fade" aria-hidden="true" role="dialog" tabindex="-1">
    <div class="modal-dialog">
        <div class="modal-content">
            <!-- Content will be loaded here from "remote" file -->
        </div>
    </div>
</div>

<div class="modal fade" id="myModalprintsmscancle" role="dialog">
    <div class="modal-dialog modal-dialogprint">
        <div class="modal-content">

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


<div class="modal fade" id="myModalfeedbackss" role="dialog">
    <div class="modal-dialog  modal-dialogfeedback">
        <!-- Modal content-->
        <div class="modal-content">
        </div>
    </div>
</div>

<div id="Modal-offerenquiry" class="modal fade" role="dialog">
    <div class="modal-dialog widthpercent40">
        <!-- Modal content-->
        <div class="modal-content">
        </div>
    </div>
</div>

<div class="modal fade" id="termsModal" role="dialog">
    <div class="modal-dialog  modal-dialogfeedback modal-dialog-terms">
        <!-- Modal content-->
        <div class="modal-content modal-content-terms">
        </div>
    </div>
</div>

<?php
echo $this->headScript()
        ->prependFile($this->basePath() . '/js/jquery.ihavecookies.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/jQuery.print.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/custom/base.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/custom/user.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/mloading.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/custom/point2point.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/common.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/jquery.timepicker.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        //->prependFile($this->basePath() . '/js/libs/clockface.js')
        ->prependFile($this->basePath() . '/js/load-modal-content.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/analytics.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/selectize.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/selecttag.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/wow.min.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/calendar.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/bootstrap-clockpicker.min.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/bootstrap-slider.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/bootstrap.min.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/jquery.flexisel.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/jquery.image-crop.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/jquery.tooltip.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/jquery-ui.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/jquery.min.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/libs/jquery.mCustomScrollbar.concat.min.js', $type = 'text/javascript', $attrs = ['defer' => 'defer']);
?>

<?php echo $this->inlineScript() ?>
<?php echo $this->inlineScript()->prependFile('https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', $type = 'text/javascript') ?>
<script type="text/javascript">
    $(document).ready(function () {
        $(".inputMaterial").each(function () {
            var val = $(this).val();
            if (val != "") {
                $(this).addClass("test");
            }
            if (val == "0") {
                $(this).removeClass("test");
            }
        });
    });
    document.onreadystatechange = function() { 
        if (document.readyState !== "complete") { 
            document.querySelector("body").style.visibility = "hidden"; 
            document.querySelector("#loader").style.visibility = "visible"; 
        } else { 
            document.querySelector("#loader").style.display = "none"; 
            document.querySelector("body").style.visibility = "visible"; 
        } 
    };
</script>

<script type="text/javascript">
    var link = "<?php echo $this->url('cms-pages', ['page-type' => 'cms', 'page' => 'privacy-policy']); ?>";
    var options = {
        title: 'Accept Cookies & Privacy Policy?',
        message: 'There are no cookies used on this site, but if there were this message could be customised to provide more details. Click the <strong>accept</strong> button below to see the optional callback in action...',
        delay: 0,
        expires: 1,
        link: link,
        onAccept: function () {
            var myPreferences = $.fn.ihavecookies.cookie();
            console.log('Yay! The following preferences were saved...');
            console.log(myPreferences);
        },
        uncheckBoxes: true,
        acceptBtnLabel: 'Accept Cookies',
        moreInfoLabel: 'More information',
        cookieTypesTitle: 'Select which cookies you want to accept',
        fixedCookieTypeLabel: 'Essential',
        fixedCookieTypeDesc: 'These are essential for the website to work correctly.'
    }

    $(document).ready(function () {
        $('body').ihavecookies(options);
        if ($.fn.ihavecookies.preference('marketing') === true) {
            console.log('This should run because marketing is accepted.');
        }
        $('#ihavecookiesBtn').on('click', function () {
            $('body').ihavecookies(options, 'reinit');
        });
        $(document).on('click', '#close-cooki', function () {
            $('#gdpr-cookie-message').css('display', 'none');
        });
    });

</script>

<!--Start of Tawk.to Script-->
<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 = 'https://embed.tawk.to/5d94b35bdb28311764d6ee58/default';
        s1.charset = 'UTF-8';
        s1.setAttribute('crossorigin', '*');
        s0.parentNode.insertBefore(s1, s0);
    })();
</script>
<!--End of Tawk.to Script-->
<!--<script src="https://account.snatchbot.me/script.js"></script><script>window.sntchChat.Init(74201)</script>-->
</body>
</html>