diff --git a/app/Views/accountsDashboard.php b/app/Views/accountsDashboard.php index 06813377..68baa677 100644 --- a/app/Views/accountsDashboard.php +++ b/app/Views/accountsDashboard.php @@ -1688,7 +1688,20 @@ table = $('#view_inward_gate_register').DataTable({ dom: 'Blfrtip', buttons: [ - 'excel', 'pdf' + { + extend: 'excel', + text: 'Excel', + exportOptions: { + columns: ':not(:last-child)' // Exclude the last column + } + }, + { + extend: 'pdf', + text: 'PDF', + exportOptions: { + columns: ':not(:last-child)' // Exclude the last column + } + } ], pageLength: 10, lengthMenu: [