<!-- jQuery  -->

<script src="{{ asset('admin-assets/js/jquery.min.js') }}"></script>
<script src="{{ asset('admin-assets/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('admin-assets/js/detect.js') }}"></script>
<script src="{{ asset('admin-assets/js/fastclick.js') }}"></script>
<script src="{{ asset('admin-assets/js/jquery.slimscroll.js') }}"></script>
<script src="{{ asset('admin-assets/js/jquery.blockUI.js') }}"></script>
<script src="{{ asset('admin-assets/js/waves.js') }}"></script>
<script src="{{ asset('admin-assets/js/wow.min.js') }}"></script>
<script src="{{ asset('admin-assets/js/jquery.nicescroll.js') }}"></script>
<script src="{{ asset('admin-assets/js/jquery.scrollTo.min.js') }}"></script>

<!-- Datatables-->
<script src="{{ asset('admin-assets/plugins/datatables/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/dataTables.bootstrap.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/dataTables.buttons.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/buttons.bootstrap.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/jszip.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/pdfmake.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/vfs_fonts.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/buttons.html5.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/buttons.print.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/dataTables.fixedHeader.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/dataTables.keyTable.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/dataTables.responsive.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/responsive.bootstrap.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/datatables/dataTables.scroller.min.js') }}"></script>

<!-- Datatable init js -->
<script src="{{ asset('admin-assets/pages/jquery.datatables.init.js') }}"></script>

<!-- App js -->
<script src="{{ asset('admin-assets/js/jquery.core.js') }}"></script>
<script src="{{ asset('admin-assets/js/jquery.app.js') }}"></script>

<script src={{asset('admin-assets/js/jqueryPrint.js')}}></script>
<script src={{asset('admin-assets/js/printThis.js')}}></script>

<script type="text/javascript">
    $(document).ready(function () {
        $('#datatable').dataTable();
        $('#datatable-keytable').DataTable({keys: true});
        $('#datatable-responsive').DataTable();
        $('#datatable-scroller').DataTable({
            ajax: "{{ asset('admin-assets/plugins/datatables/json/scroller-demo.js') }}on",
            deferRender: true,
            scrollY: 380,
            scrollCollapse: true,
            scroller: true
        });
        var table = $('#datatable-fixed-header').DataTable({fixedHeader: true});
    });
    TableManageButtons.init();

    function printDiv()
    {
        var divToPrint=document.getElementById('printableArea');
        var newWin=window.open('','Print-Window');
        newWin.document.open();
        newWin.document.write('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>');
        newWin.document.close();
        // setTimeout(function(){newWin.close();},10);
    }
</script>

</body>
</html>