<!--dynamic table-->
<script type="text/javascript">
    const btnDTable = [];

    const langDTable = {
        "lengthMenu": "แสดง _MENU_ หน้า"
        , "zeroRecords": "ไม่มีข้อมูล"
        , "info": "หน้า _PAGE_ จาก _PAGES_"
        , "infoEmpty": "ไม่มีข้อมูล"
        , "infoFiltered": "(filtered from _MAX_ total records)"
    };

    $("#dynamic-table-1").dataTable({
        language: langDTable
        , order: [
            [0, "desc"]
        ]
        , aoColumnDefs: [{
            'bSortable': true
            , 'aTargets': [0] /* 1st one, start by the right */
        }]
        , pageLength: 100
        , dom: 'Blfrtip'
        , lengthMenu: [
            [10, 25, 50, 100, 500]
            , [10, 25, 50, 100, 500]
        ]
        , buttons: btnDTable
        , responsive: !0
    });

</script>
