Enhanced the add activity modal in the ticket detail page, tested the changes, the changes take effect as it is, the ticket total hours, and the data table is reloaded when the activity is added. Created the function for the edit modal and tested it, as per testing, the activity is saved successfully but the activity is not updated but another activity is added. Checked the cause of this for modification and fixing, and will continue the checking tomorrow.