<?php if(Request::is('application/history')): ?>
    <div class="footer" style="position: fixed; left: 0; bottom: 0; width: 100%;">
        <?php else: ?>
            <div class="footer" >
                <?php endif; ?>
                <div>
                    <h6 class="text-white p-2">©<?php echo date('Y'); ?> by Credit Fair | All Rights Reserved | <a href="<?php echo e(asset('privacy-policy')); ?>">Privacy Policy</a> | <a href="<?php echo e(asset('terms-conditions')); ?>">Terms of Use</a> | <a href="<?php echo e(asset('kyc-policy')); ?>">KYC Policy</a> | <a href="<?php echo e(asset('fair-practice-policy')); ?>">Fair Practice Code</a></h6>
                    <h6 class="text-white p-2">Contact no: +91 99672 35047</h6>
                </div>
                <div style="font-size: 9px; color: white;padding-top: 20px;">
                    <p>RBI registration number: <b>N.13-02278</b>
                        <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Disclaimer: a) “Reserve Bank of India neither accepts any responsibility nor guarantees the present position as to the financial soundness of the company or for the correctness of any of the statements or representations made or opinions expressed by the company and for discharge of any liability by the company.” b) “Neither there is any provision in law to keep, nor does the company keep any part of the deposits with the Reserve Bank of India and by issuing a Certificate of Registration to the company, the Reserve Bank of India, neither accepts any responsibility nor guarantees the payment of deposits to any depositor or any person who has lent any sum to the company.”
                    </p>
                </div>
            </div>

            <!-- JQuery -->
            <script type="text/javascript" src="<?php echo e(asset('assets/front/js/jquery-3.2.1.min.js')); ?>"></script>
            <!-- Bootstrap tooltips -->
            <script type="text/javascript" src="<?php echo e(asset('assets/front/js/popper.min.js')); ?>"></script>
            <!-- Bootstrap core JavaScript -->
            <script type="text/javascript" src="<?php echo e(asset('assets/front/js/bootstrap.min.js')); ?>"></script>
            <!-- MDB core JavaScript -->
            <script type="text/javascript" src="<?php echo e(asset('assets/front/js/mdb.min.js')); ?>"></script>
            <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/jquery.validate.min.js"></script>
            <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/additional-methods.min.js"></script>

            <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script>

            <script type="text/javascript" src="<?php echo e(asset('assets/front/js/app.js')); ?>?v=<?php echo time(); ?>"></script>

            <script>
                <?php if(!isset($hide_table)): ?>
                $( "tr" ).click(function() {
                    $(".collapse").hide();
                    $('table.header-table > tbody > tr > td > div > span > i.fa').removeClass('fa-arrow-circle-o-down').addClass('fa-arrow-circle-right');
                    $($(this).attr('href')).show();
                    $(this).find('td > div > span > i.fa').removeClass('fa-arrow-circle-right').addClass('fa-arrow-circle-o-down');
                });
                <?php endif; ?>

//                $( "#esign" ).click(function() {
//                    $('#loading').show();
//                    var dt = new Date();
//                    var time = dt.getFullYear() + "-" + dt.getMonth() + "-"+ dt.getDate() + " " + dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds();
//                    $("#clickdatetime").html(time);
//                });

                $(document).ready(function(){
                    $("#signed").prop('checked', false);
                });

                $("#signed").on("click", function(){
                    if(signed.checked) {
                        $('#esign').removeAttr("disabled");
                    } else {
                        $('#esign').attr("disabled", 'disabled');
                    }
                });


                function enableesign() {
                    var iHeight = $('#page-width').height();
                    var iScrollHeight = $("#page-width").prop("scrollHeight");
                    var itotalheight = iScrollHeight-iHeight;
                    var iScrollHeightMax = itotalheight+500;
                    var iScrollHeightMin = itotalheight-500;
                    var scrollposition = $('#page-width').scrollTop();
                    if(scrollposition >= iScrollHeightMin && scrollposition <= iScrollHeightMax) {
//                        console.log((iScrollHeightMin)+"-"+scrollposition+"-"+iScrollHeightMax);
                        $("#enableSubmit").html(1);
//                        $('#esign').removeAttr("disabled");
                    }else{
                    }
                }

                function merchantenableesign() {
                    var iHeight = $('#page-width-merchant').height();
                    var iScrollHeight = $("#page-width-merchant").prop("scrollHeight");
                    var itotalheight = iScrollHeight-iHeight;
                    var iScrollHeightMax = itotalheight+500;
                    var iScrollHeightMin = itotalheight-500;
                    var scrollposition = $('#page-width-merchant').scrollTop();
                    if(scrollposition >= iScrollHeightMin && scrollposition <= iScrollHeightMax) {
                        $("#enableSubmit").html(1);
                    }
                }
            </script>
            </body>

            </html>