<script type="text/javascript" src="{{ asset('assets/js/jquery.min.js') }}"></script>

{{--<script type="text/javascript" src="{{ asset('assets') }}/js/jquery.min.js"></script>--}}
{{--<script type="text/javascript" src="{{ asset('assets') }}/bootstrap-rtl-master/dist/js/bootstrap-rtl.min.js"></script>--}}
{{--<script src="{{ asset('assets') }}/js/metisMenu.min.js"></script>--}}
{{--<script src="{{ asset('assets') }}/js/jquery.nanoscroller.min.js"></script>--}}


<script type="text/javascript" src="{{ asset('assets/bootstrap/js/bootstrap.min.js') }}"></script>
{{--<script type="text/javascript" src="{{ asset('assets/dist/js/bootstrap-rtl.min.js') }}"></script>--}}
{{--<script src="{{ asset('assets/js/metisMenu.min.js') }}"></script>--}}
{{--<script src="{{ asset('assets/js/jquery.nanoscroller.min.js') }}"></script>--}}
{{--<script src="{{ asset('assets/js/jquery-jvectormap-1.2.2.min.js') }}"></script>--}}
<!-- Flot -->


<script src="{{ asset('assets/js/flot/jquery.flot.js') }}"></script>
<script src="{{ asset('assets/js/flot/jquery.flot.tooltip.min.js') }}"></script>
<script src="{{ asset('assets/js/flot/jquery.flot.resize.js') }}"></script>
<script src="{{ asset('assets/js/flot/jquery.flot.pie.js') }}"></script>
{{--<script src="{{ asset('assets/js/chartjs/Chart.min.js') }}"></script>--}}
<script src="{{ asset('assets/js/pace.min.js') }}"></script>
<script src="{{ asset('assets/js/waves.min.js') }}"></script>

<script src="{{ asset('assets/js/jquery.sparkline.min.js') }}"></script>
{{--<script src="{{ asset('assets/js/jquery-jvectormap-world-mill-en.js') }}"></script>--}}
<!--        <script src="js/jquery.nanoscroller.min.js"></script>-->
<script src="{{ asset('assets/js/data-tables/jquery.dataTables.js') }}"></script>
<script src="{{ asset('assets/js/data-tables/dataTables.tableTools.js') }}"></script>
<script src="{{ asset('assets/js/data-tables/dataTables.bootstrap.js') }}"></script>
<script src="{{ asset('assets/js/data-tables/dataTables.responsive.js') }}"></script>
<script src="{{ asset('assets/js/waves.min.js') }}"></script>
{{--<script type="text/javascript" src="{{ asset('assets/js/custom.js') }}"></script>--}}
<script src="{{ asset('assets/js/data-tables/tables-data.js') }}"></script>
<!-- ChartJS-->
<script src="{{ asset('assets/js/chartjs/Chart.min.js') }}"></script>
<!--page plugins-->
{{--<script src="{{ asset('assets/js/select/fancySelect.js') }}"></script>--}}
{{--<script src="{{ asset('assets/js/input-mask/jquery.inputmask.bundle.min.js') }}"></script>--}}
{{-- <script src="{{ asset('assets/js/select/select2.js') }}"></script> --}}
<script src="{{ asset('assets/js/slider/bootstrap-slider.min.js') }}"></script>
{{--<script src="{{ asset('assets/js/custom-advanced-form.js') }}"></script>--}}
<script src="{{ asset('assets/plugins/select2/js/select2.min.js') }}"></script>
<!--        <script src="js/jquery.nanoscroller.min.js"></script>-->
<script type="text/javascript" src="{{ asset('assets') }}/js/custom.js"></script>
{{--<!-- ChartJS-->--}}
{{--<script src="{{ asset('assets') }}/js/chartjs/Chart.min.js"></script>--}}
<!-- Alertify js -->
<script src="{{ asset('assets/plugins/alertify/js/alertify.js') }}"></script>


<script>
    $.fn.modal.Constructor.prototype.enforceFocus = function() {};
    // $("select").select2();
    // below code with move the focus of input to
    // next input filed by pressing enter key
    $(document).on('keypress', '.change_focus', function (e) {
        var next_id = $(this).data('id');
        if (e.which === 13) {
            e.preventDefault();
            document.getElementById(next_id).focus();
        }
    });

</script>

<script>
    /*for navbar*/
    $("#tableFilterNav").on("keyup", function () {
        var value = $(this).val().toLowerCase();
        $(".table-nav tbody tr").filter(function () {
            $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
        });
    });

    $("#tableFilter").on("keyup", function () {
        var value = $(this).val().toLowerCase();
        $("table tbody tr").filter(function () {
            $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
        });
    });
    $('body').on('keyup keypress', function (e) {
        var keyCode = e.keyCode || e.which;
        if (keyCode == 17 || keyCode == 'ControlLeft') {
            $('#tableFilter').focus();
            $('#tableFilterNav').focus();
        }
    });
</script>
<script>
    $('#start_date').bind('keypress', function (e) {
        if (e.which === 13) {
            e.preventDefault();
            document.getElementById('end_date').focus();
        }
    });

</script>
