beforeShowDay: This function is called for each day in the datepicker and allows you to specify whether a given day should be selectable.
date.getDay(): This method returns the day of the week as a number, where 0 represents Sunday and 6 represents Saturday.
Condition: The condition day !== 0 && day !== 6 ensures that both weekends (Saturday and Sunday) are disabled.
admin
administrator