From 88bed2a3eff9031920258f6b3b8046805c716e5f Mon Sep 17 00:00:00 2001 From: arifal Date: Fri, 19 Sep 2025 23:07:56 +0700 Subject: [PATCH] fix + datatable --- resources/views/transaction/index.blade.php | 76 +++------------------ 1 file changed, 10 insertions(+), 66 deletions(-) diff --git a/resources/views/transaction/index.blade.php b/resources/views/transaction/index.blade.php index 4f8c89e..847ff8d 100755 --- a/resources/views/transaction/index.blade.php +++ b/resources/views/transaction/index.blade.php @@ -477,62 +477,6 @@ use Illuminate\Support\Facades\Auth; overflow: hidden !important; } - #claimTransactionsTable_wrapper .dataTables_scrollBody { - overflow-x: auto !important; - } - - /* Ensure responsive controls are visible */ - #claimTransactionsTable_wrapper .dtr-control { - position: relative !important; - cursor: pointer !important; - background-color: #f8f9fa !important; - border: 1px solid #dee2e6 !important; - width: 30px !important; - height: 30px !important; - display: flex !important; - align-items: center !important; - justify-content: center !important; - font-weight: bold !important; - color: #495057 !important; - } - - #claimTransactionsTable_wrapper .dtr-control:before { - content: "+" !important; - font-size: 16px !important; - line-height: 1 !important; - } - - #claimTransactionsTable_wrapper .dtr-control.dtr-expanded:before { - content: "-" !important; - } - - /* Ensure responsive child rows are properly styled */ - #claimTransactionsTable_wrapper .dtr-details { - background-color: #f8f9fa !important; - border: 1px solid #dee2e6 !important; - padding: 10px !important; - margin: 5px 0 !important; - border-radius: 4px !important; - } - - #claimTransactionsTable_wrapper .dtr-details li { - border-bottom: 1px solid #e9ecef !important; - padding: 5px 0 !important; - } - - #claimTransactionsTable_wrapper .dtr-details li:last-child { - border-bottom: none !important; - } - - #claimTransactionsTable_wrapper .dtr-title { - font-weight: 600 !important; - color: #495057 !important; - margin-right: 10px !important; - } - - #claimTransactionsTable_wrapper .dtr-data { - color: #6c757d !important; - } /* Responsive adjustments for smaller screens */ @media (max-width: 768px) { @@ -2807,16 +2751,16 @@ use Illuminate\Support\Facades\Auth; } }, columns: [ - {data: 'date', name: 'date', title: 'Tanggal'}, - {data: 'spk', name: 'spk', title: 'SPK'}, - {data: 'police_number', name: 'police_number', title: 'No Polisi'}, - {data: 'work_name', name: 'work_name', title: 'Pekerjaan'}, - {data: 'qty', name: 'qty', title: 'Qty'}, - {data: 'sa_name', name: 'sa_name', title: 'Service Advisor'}, - {data: 'status', name: 'status', title: 'Status', orderable: false}, - {data: 'action', name: 'action', title: 'Aksi', orderable: false, searchable: false}, - {data: 'action_precheck', name: 'action_precheck', title: 'Pre Check', orderable: false, searchable: false}, - {data: 'action_postcheck', name: 'action_postcheck', title: 'Post Check', orderable: false, searchable: false}, + {data: 'date', name: 'date'}, + {data: 'spk', name: 'spk'}, + {data: 'police_number', name: 'police_number'}, + {data: 'work_name', name: 'work_name'}, + {data: 'qty', name: 'qty'}, + {data: 'sa_name', name: 'sa_name'}, + {data: 'status', name: 'status', orderable: false}, + {data: 'action', name: 'action', orderable: false, searchable: false}, + {data: 'action_precheck', name: 'action_precheck', orderable: false, searchable: false}, + {data: 'action_postcheck', name: 'action_postcheck', orderable: false, searchable: false}, ], pageLength: 10, responsive: true,