diff --git a/Resources/views/parameter/branches/index.blade.php b/Resources/views/parameter/branches/index.blade.php
index 31ced92..608cfb9 100644
--- a/Resources/views/parameter/branches/index.blade.php
+++ b/Resources/views/parameter/branches/index.blade.php
@@ -27,11 +27,62 @@
-
@@ -96,7 +147,65 @@
$('#kt_modal_add_branch').on('hidden.bs.modal', function () {
$(this).find('form').trigger('reset');
Livewire.dispatch('reload', false);
- })
+ });
+
+ $(function(){
+ const documentTitle = 'Branch Report';
+ var buttons = new $.fn.dataTable.Buttons(LaravelDataTables['branch-table'], {
+ buttons: [
+ {
+ extend: 'copyHtml5',
+ title: documentTitle,
+ exportOptions: {
+ columns: [0, 1, 2, 3, 4]
+ }
+ },
+ {
+ extend: 'excelHtml5',
+ title: documentTitle,
+ exportOptions: {
+ columns: [0, 1, 2, 3, 4]
+ }
+ },
+ {
+ extend: 'csvHtml5',
+ title: documentTitle,
+ exportOptions: {
+ columns: [0, 1, 2, 3, 4]
+ }
+ },
+ {
+ extend: 'pdfHtml5',
+ title: documentTitle,
+ exportOptions: {
+ columns: [0, 1, 2, 3, 4]
+ }
+ },
+ {
+ extend: 'print',
+ title: documentTitle,
+ exportOptions: {
+ columns: [0, 1, 2, 3, 4]
+ }
+ }
+ ]
+ }).container().appendTo($('#kt_datatable_example_buttons'));
+
+ // Hook dropdown menu click event to datatable export buttons
+ const exportButtons = document.querySelectorAll('#kt_datatable_example_export_menu [data-kt-export]');
+ exportButtons.forEach(exportButton => {
+ exportButton.addEventListener('click', e => {
+ e.preventDefault();
+ console.log(e.target.getAttribute('data-kt-export'));
+ // Get clicked export value
+ const exportValue = e.target.getAttribute('data-kt-export');
+ const target = document.querySelector('.dt-buttons .buttons-' + exportValue);
+
+ // Trigger click event on hidden datatable export buttons
+ target.click();
+ });
+ });
+ });
@endpush
diff --git a/Resources/views/parameter/currencies/index.blade.php b/Resources/views/parameter/currencies/index.blade.php
index 1608172..69a8d4b 100644
--- a/Resources/views/parameter/currencies/index.blade.php
+++ b/Resources/views/parameter/currencies/index.blade.php
@@ -32,6 +32,57 @@
Add Mata Uang
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+