
    <!-- latest jquery-->
    <script src="<?php echo SITEURL;?>assets/js/jquery-3.2.1.min.js"></script>

    <!-- Bootstrap js-->
    <script src="<?php echo SITEURL;?>assets/js/bootstrap/popper.min.js"></script>
    <script src="<?php echo SITEURL;?>assets/js/bootstrap/bootstrap.js"></script>

    <!-- Counter js-->
    <script src="<?php echo SITEURL;?>assets/js/counter/jquery.waypoints.min.js"></script>
    <script src="<?php echo SITEURL;?>assets/js/counter/jquery.counterup.min.js"></script>
    <!-- <script src="<?php echo SITEURL;?>assets/js/counter/counter-custom.js"></script> -->

    <!-- owlcarousel js-->
    <script src="<?php echo SITEURL;?>assets/js/owlcarousel/owl.carousel.js"></script>

    <!-- prism js -->
    <script src="<?php echo SITEURL;?>assets/js/prism/prism.min.js"></script>

    <!-- clipboard js -->
    <script src="<?php echo SITEURL;?>assets/js/clipboard/clipboard.min.js"></script>

    <!-- custom card js  -->
    <script src="<?php echo SITEURL;?>assets/js/custom-card/custom-card.js"></script>

    <!--Height Equal Js-->
    <script src="<?php echo SITEURL;?>assets/js/height-equal.js"></script>

    <!-- Sidebar jquery-->
    <script src="<?php echo SITEURL;?>assets/js/sidebar-menu.js"></script>
    <script src="<?php echo SITEURL;?>assets/js/compact-small-button.js"></script>

    <!-- Theme js-->
    <script src="<?php echo SITEURL;?>assets/js/script.js"></script>

    <!-- tour js -->
    <script src="<?php echo SITEURL;?>assets/js/tour/intro.js"></script>
    <script src="<?php echo SITEURL;?>assets/js/tour/intro-init.js"></script>

    <!-- Chartist  -->
    <script src="<?php echo SITEURL;?>assets/js/chartis/chartist.js"></script>

    <!--Sparkline  Chart JS-->
    <script src="<?php echo SITEURL;?>assets/js/sparkline/sparkline.js"></script>

    <!--Dashboard business js-->
    <!-- <script  src="<?php echo SITEURL;?>assets/js/dashboard-business.js"></script> -->
    <script src="<?php echo SITEURL;?>assets/js/date-picker/datepicker.js"></script>
    <script src="<?php echo SITEURL;?>assets/js/date-picker/datepicker.en.js"></script>

    <script src="<?php echo SITEURL;?>assets/js/bootbox.min.js"></script>

    <!-- bootstrap notify js -->
    <script src="<?php echo SITEURL;?>assets/js/notify/bootstrap-notify.min.js"></script>

    <!-- Select2 js -->
    <script type="text/javascript" src="<?php echo SITEURL;?>assets/js/select2/select2.full.min.js"></script>


    <script src="<?php echo SITEURL;?>assets/js/datatables/jquery.dataTables.min.js"></script>
    <script src="<?php echo SITEURL;?>assets/js/datatables/datatable.custom.js"></script>
<script src="https://cdn.datatables.net/buttons/1.6.1/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.6.1/js/buttons.flash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.6.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.6.1/js/buttons.print.min.js"></script>
    <script>
$(document).ready(function() {
    $('#invoice').DataTable( {
        "deferRender": true,
     "dom": 'Bfrtip',
        "buttons": [
            'copy', 'csv', 'excel', 'pdf', 'print'],
 "sAjaxDataProp":"",
                  
                    "processing": true,
        "serverSide": true,
        "ajax": "addDealers.php?view=dealers", 
                    "sAjaxSource": "addDealers.php?view=dealers",
					"columns": [
            { "data": "COAID" },
            { "data": "COAName" },
            { "data": "Degree" },
            { "data": "Active" },
            { "data": "NatureId" }
        ]
    } );
   /*  $('#example').DataTable( {
"bProcessing": true,
"sAjaxDataProp":"",
"bServerSide": true,
        "ajax": 'addDealers.php?view=dealers',
        "columns": [
            { "data": "COAName" },
            { "data": "Attr4" },
            { "data": "Attr10" },
            { "data": "Attr11" },
            { "data": "Attr15" }
        ]
    } );*/
} );