diff --git a/resources/views/backend/pages/report/generate_jurnal.blade.php b/resources/views/backend/pages/report/generate_jurnal.blade.php
index 2cec8e0..c8185b4 100644
--- a/resources/views/backend/pages/report/generate_jurnal.blade.php
+++ b/resources/views/backend/pages/report/generate_jurnal.blade.php
@@ -150,20 +150,44 @@
extend: 'excel',
text: 'Export Excel',
customize: function (xlsx) {
- var sheet = xlsx.xl.worksheets['sheet1.xml'];
- // Add additional information to the Excel sheet
- var additionalInfo = `
- Cabang: {{ $cabang->name }}
- Periode: {{ ucfirst($month) }} {{ $year }}
- Cost Centre: {{ $cabang->cost->code }}
- `;
- var rows = additionalInfo.split('\n').map(function (text) {
- return `${text.trim()}
`;
- }).join('');
+ var sheet = xlsx.xl.worksheets['sheet1.xml'];
- // Inject the additional information at the top of the sheet
- var data = $(sheet).find('sheetData').prepend(rows);
- }
+ // Add a blank row for spacing
+ var blankRow = `
`;
+
+ // Bold text using Excel XML structure
+ var additionalInfo = `
+
+ Cabang: {{ $cabang->name }}
+
+
+ Periode: {{ ucfirst($month) }} {{ $year }}
+
+
+ Cost Centre: {{ $cabang->cost->code }}
+
+ `;
+
+ // Locate the sheet data and append the blank row and additional information
+ var sheetData = $(sheet).find('sheetData');
+ var existingRows = sheetData.children();
+ existingRows.last().after(blankRow + additionalInfo);
+
+ // Add bold style to the sheet
+ var styles = xlsx.xl['styles.xml'];
+ var cellXfs = $(styles).find('cellXfs');
+ cellXfs.append(`
+
+
+
+
+
+
+
+
+
+ `);
+ }
},
{
extend: 'csv',