<?php

$pageTitles = [
    "user_master.php" => "User Master",
    "dashboard.php" => "Dashboard",
    "doctors_list.php" => "Doctors List",
    "doctors_add.php" => "Doctors Add",
    "doctors_details.php" => "Doctors Details",
    "doctorschedules_list.php" => "Doctor Schedules",
    "patient_add.php" => "Patient Add",
    "patient_list.php" => "Patient List",
    "patient_details.php" => "Patient Details",
    "appointment_add.php" => "Appointment Add",
    "appointment_list.php" => "Appointment List",
    "medicines_add.php" => "Medicines Add",
    "medicines_list.php" => "Medicines List",
    "prescription_add.php" => "Prescription Add",
    "prescription_list.php" => "Prescription List",
    "reports_list.php" => "Report",
];


$currentFile = basename($_SERVER['PHP_SELF']);


$title = $pageTitles[$currentFile] ?? "Default Title";

?>
<title><?php echo htmlspecialchars($title); ?></title>
