You should have the column with the name "AvailableLeave" in the table in the database.
Whenever the employee log in and apply for the leave and submit , just decrease the value of that column to one and just show the same column value as available leave balance.
Hope this may help u