import streamlit as st
# =============================================================================
# Modular Pages for the Dashboard
# =============================================================================
def treatment_planning_page():
st.header("Treatment Planning")
st.write("This section will help with planning dental treatments.")
def inventory_page():
st.header("Inventory")
st.write("Manage and view your inventory here.")
def scheduling_page():
st.header("Scheduling")
st.write("Schedule appointments and manage calendars here.")
def lab_records_page():
st.header("Lab Records")
st.write("Access and manage dental lab records here.")
def dashboard_page():
st.title("Dental Clinic Dashboard")
menu = ["Treatment Planning", "Inventory", "Scheduling", "Lab Records", "Return to Home"]
choice = st.sidebar.radio("Navigation", menu)
if choice == "Treatment Planning":
treatment_planning_page()
elif choice == "Inventory":
inventory_page()
elif choice == "Scheduling":
scheduling_page()
elif choice == "Lab Records":
lab_records_page()
elif choice == "Return to Home":
st.session_state.current_page = "landing"
st.rerun()
# =============================================================================
# Landing Page with Introduction and a Button to Enter Dashboard
# =============================================================================
def landing_page():
st.title("Welcome to Our Dental Clinic")
st.markdown("## About Our Clinic")
st.write(
"""
Our clinic offers comprehensive dental services including routine check-ups,
cosmetic dentistry, orthodontics, and emergency dental care. We are committed to
providing high-quality patient care with a focus on compassion and excellence.
"""
)
if st.button("Enter Dashboard"):
st.session_state.current_page = "dashboard"
st.rerun()
# =============================================================================
# Main Application Control
# =============================================================================
def main():
if "current_page" not in st.session_state:
st.session_state.current_page = "landing"
if st.session_state.current_page == "dashboard":
dashboard_page()
else:
landing_page()
if __name__ == "__main__":
main()