<?php $footer   =   $this->mainMenu()->getCompanyData(); ?>
<footer class="main-footer">
    <div class="pull-right hidden-xs">
    </div>
    <strong>Copyright &copy; <?php echo date("Y"); ?> <a target="_blank" href="<?php echo $footer['admin_footer_url']; ?>" title="<?php echo $footer['admin_footer']; ?>"><?php echo $footer['admin_footer']; ?></a>.</strong> All rights reserved.
</footer>

<div class="control-sidebar-bg"></div>


</div><!-- ./wrapper -->

<?php
echo $this->headScript()
        ->prependFile($this->basePath() . '/js/jquery.ihavecookies.js', $type = 'text/javascript', $attrs = ['defer' => 'defer'])
        ->prependFile($this->basePath() . '/js/dashboard/lib/flexible-menu.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/jquery.nestable.js')
        //->prependFile($this->basePath() . '/js/dashboard/lib/editor.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/jquery_002.js')
        ->prependFile($this->basePath() . '/js/libs/calendar.js')
        ->prependFile($this->basePath() . '/js/jquery.form.js')
        ->prependFile($this->basePath() . '/js/jquery.imgareaselect.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/jquery.slimscroll.min.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/jquery-ui-timepicker-addon.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/jquery.PrintArea.js')
        ->prependFile($this->basePath() . '/js/dashboard/app/price.js')
        ->prependFile($this->basePath() . '/js/libs/mloading.js')
        ->prependFile($this->basePath() . '/js/common.js')
        ->prependFile($this->basePath() . '/js/load-modal-content-dashboard.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/base.js')
        ->prependFile($this->basePath() . '/js/dashboard/app/test.js')
        ->prependFile($this->basePath() . '/js/dashboard/app/dashboard.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/color_picker.js')
        ->prependFile($this->basePath() . '/js/dashboard/app/demo.js')
        ->prependFile($this->basePath() . '/js/dashboard/app/bootstrap-select.js')
        //->prependFile($this->basePath() . '/js/dashboard/lib/dataTables.bootstrap.min.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/jquery.dataTables.min.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/app.min.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/bootstrap.min.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/selectize.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/selecttag.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/jquery-ui.js')
        ->prependFile($this->basePath() . '/js/libs/bootstrap-clockpicker.min.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/jquery.min.js')
        ->prependFile($this->basePath() . '/js/dashboard/lib/fastclick.min.js')
?>

<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>
