Created the index for the activity module and this is where the modal for adding activity is added, created a separate function for dropdown and calling of modal in the ticket script as this is where the modal for adding the activity is located, it is on when the ticket table row is clicked. Tested the changes, as per testing, an error is encountered in the query of the dropdown, fixed the error and tested it again, as per testing, it is now ok, and the dropdown is showing when checked in the console but the modal is not showing, check for the error and as per checking, the modal for add activity is not defined by the script. Re-construct the modal for add activity for fixing the error, as of now, the modal still not showing, will continue to fix and modify this. All the functions and query has been created, the only error is the modal which is not showing.