r>
        </tbody>
    </table>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
<!-- Contact End -->
<th:block th:insert="~{fragments/footer}"></th:block>
</body>
<script>
    document.getElementById('exportExcel').addEventListener('click', function () {
        // Select the table
        const table = document.querySelector('.table');
        const rows = table.querySelectorAll('tr');

        // Initialize data array
        const data = [];

        //