root = Card([header, statsTable, nextPatient, sep1, appointmentsHeading, appointmentsTable, sep2, roomsHeading, roomsTags, sep3, checkInHeading, checkInForm, sep4, navHeading, navButtons, navDateForm], "card", "column", "l")
header = CardHeader("Front Desk — Day View", "Monday, June 24 · 10:20 AM")
statsTable = Table([statNameCol, statValueCol])
statNameCol = Col("Metric", ["Patients expected today", "No-show rate this month"])
statValueCol = Col("Value", ["6", "8%"])
nextPatient = Callout("info", "Next patient called out", "Emma Wilson — 10:30 AM · Room 3")
sep1 = Separator("horizontal")
appointmentsHeading = Heading("Today's Appointments", "h3")
appointmentsTable = Table([timeCol, patientCol, roomCol, statusCol])
timeCol = Col("Time", ["09:00", "09:30", "10:00", "10:30", "11:00", "11:30"])
patientCol = Col("Patient", ["James Carter", "Sophia Lee", "Oliver Brown", "Emma Wilson", "Liam Johnson", "Ava Martinez"])
roomCol = Col("Room", ["Room 1", "Room 2", "Room 4", "Room 3", "Room 5", "Room 6"])
statusCol = Col("Status", ["Done", "Done", "In session", "Called", "Waiting", "Waiting"])
sep2 = Separator("horizontal")
roomsHeading = Heading("Rooms Free Right Now", "h3")
roomsTags = TagBlock(["Room 1", "Room 2", "Room 5", "Room 6"])
sep3 = Separator("horizontal")
checkInHeading = Heading("Check In a Patient", "h3")
checkInForm = Form("checkin", checkInButtons, [patientSelectField])
checkInButtons = Buttons([checkInButton])
checkInButton = Button("Check in selected patient", null, "primary")
patientSelectField = FormControl("Patient", patientSelect, "Select a patient who has arrived")
patientSelect = Select("patient", [patientEmma, patientLiam, patientAva], "Choose patient")
patientEmma = SelectItem("emma", "Emma Wilson (10:30)")
patientLiam = SelectItem("liam", "Liam Johnson (11:00)")
patientAva = SelectItem("ava", "Ava Martinez (11:30)")
sep4 = Separator("horizontal")
navHeading = Heading("Move to Another Day", "h3")
navButtons = Buttons([prevDayBtn, todayBtn, nextDayBtn])
prevDayBtn = Button("← Previous Day")
todayBtn = Button("Today")
nextDayBtn = Button("Next Day →")
navDateForm = Form("go-date", goButtons, [dateField])
goButtons = Buttons([goBtn])
goBtn = Button("Go to Date", null, "secondary")
dateField = FormControl("Jump to date", dateInput)
dateInput = DatePicker("target_date", "single")