diff --git a/resources/views/admin/statistics/index.blade.php b/resources/views/admin/statistics/index.blade.php index 35720f0..2e5648f 100644 --- a/resources/views/admin/statistics/index.blade.php +++ b/resources/views/admin/statistics/index.blade.php @@ -629,7 +629,20 @@ className: 'dt-body-right', buttons: { buttons: [ - 'excel','pdf', + { + extend: 'excel', + exportOptions: { + format: { + body: function (data, row, column, node) { + if ([2, 3, 4, 5, 6].includes(column)) { + return typeof data === 'string' ? data.replace(/ /g, '') : data; + } + return data; + } + } + } + }, + 'pdf', { footer:true, extend: 'print',