diff --git a/app/Views/drierMachineDetails.php b/app/Views/drierMachineDetails.php
index 0ccbf018..eccfebc6 100644
--- a/app/Views/drierMachineDetails.php
+++ b/app/Views/drierMachineDetails.php
@@ -359,10 +359,17 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
if ($date === $currentDate) {
echo 'style="background: #cef0ad;"';
}
- ?>>
+ ?>
+
+ format('d-m-Y');
+ ?>
+
+ >
+
-
format('d-m-Y'); ?> |
+ |
@@ -781,6 +788,58 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
+
+
+
-
-
\ No newline at end of file
diff --git a/app/Views/incomingSilicaSandDetails.php b/app/Views/incomingSilicaSandDetails.php
index ace3f7f4..c90d89c7 100644
--- a/app/Views/incomingSilicaSandDetails.php
+++ b/app/Views/incomingSilicaSandDetails.php
@@ -1693,13 +1693,38 @@ $(document).ready(function() {
$(document).ready(function(){
function exportTableToExcel(tableID, filename = '') {
+
let table = document.getElementById(tableID);
- let ws = XLSX.utils.table_to_sheet(table); // Convert table to worksheet
- let wb = XLSX.utils.book_new(); // Create a new workbook
- XLSX.utils.book_append_sheet(wb, ws, 'Sheet1'); // Append sheet to workbook
- XLSX.writeFile(wb, filename || 'export.xlsx'); // Save the file
+ let rows = table.rows;
+ let data = [];
+
+ for (let i = 0; i < rows.length; i++) {
+ let row = rows[i];
+ let cols = row.querySelectorAll('td, th');
+ let rowData = [];
+
+ for (let j = 0; j < cols.length; j++) {
+ let cell = cols[j];
+
+ // Check if the cell contains a