Leave Management

Hi, our company is situated in more than one state. There are some different leaves for different states. How can I define leaves accordingly?
Thanks

I have found solution for this. I am sharing if it is helpful for someone.

I have created my own database table with UI for leave management of our company. I am using that table for storing event name date and for which location it is applicable.

In the file htdocs/main.inc.php saving the town of logging user in session array like this

$_SESSION["dol_town"]=$user->town;

In the file \core\lib\date.lib.php file I am checking the town of the logged user with event applicable location like this

if ($result->num_rows > 0){
	while($row = $result->fetch_assoc()){
		$day = date("d",strtotime($row["eventDate"]));
		$month = date("m",strtotime($row["eventDate"]));
		if($row["location"]==$_SESSION["dol_town"]){
			if($jour == $day && $mois == $month) {
				$ferie=true;
				break;
			}
		} elseif($row["location"]=="All locations"){
			if($jour == $day && $mois == $month) {
				$ferie=true;
				break;
			}
		}
				
	}
}

Hope this answer may be helpful for others.