{"body": [{"id": "leaveRequestsTable", "type": "table", "options": {"tableName": "leave_requests", "rowActions": [{"label": "Apply", "onClick": "leaveManagementApply"}, {"label": "Approve", "onClick": "leaveManagementApprove"}], "columnLabels": {"reason": "Reason", "status": "Status", "enddate": "End Date", "leavetype": "Type", "startdate": "Start Date"}, "showGlobalSearch": true}}], "title": "Leave Management", "footer": [{"type": "button", "label": "Close", "onClick": "closeModal"}], "header": [{"type": "button", "label": "Apply for Leave", "formId": 1}, {"type": "filter-select", "options": {"options": [{"label": "All", "value": ""}, {"label": "Pending", "value": "Pending"}, {"label": "Approved", "value": "Approved"}, {"label": "Rejected", "value": "Rejected"}], "data_column": "status"}}, {"type": "filter-date-range", "options": {"data_column": "startdate"}}], "modulePath": "modules/leave/leaveManagement"}