import streamlit as st import pandas as pd from datetime import date # 1. CORE CONFIG & STYLING st.set_page_config(page_title="Sajha Pro 2026", page_icon="๐ณ๐ต", layout="wide") # 2. 2026 DATA ENGINE npr_rate = 9.414 # Live Feb 2026 kurangi_deadline = date(2026, 4, 2) site_deadline = date(2026, 6, 1) # iBay Feb 2026 Rental Data rentals = [ {"Title": "2BR Apartment (No Lift)", "Price": 16000, "Loc": "Machchangolhi", "ID": "6472479"}, {"Title": "1BR Apartment (AC)", "Price": 10500, "Loc": "Hulhumale P2", "ID": "6488093"}, {"Title": "Shared Room (Male)", "Price": 3500, "Loc": "Male City", "ID": "iBay-Shared"} ] # 3. SIDEBAR NAVIGATION with st.sidebar: st.title("๐ณ๐ต Sajha Pro") menu = st.radio("Updates", ["๐ Dashboard", "๐ข Housing (iBay)", "๐ Ramadan Transit", "โ๏ธ Legal & 100 Scenarios", "๐ฅ Health & Insurance", "๐งพ Bill Splitter"]) st.markdown("---") st.caption("Consular Support: +94 11-268-9656") # --- 1. DASHBOARD --- if menu == "๐ Dashboard": st.title("Sajha Connect Dashboard ๐ฒ๐ป") st.write(f"Today: {date.today().strftime('%B %d, 2026')}") c1, c2, c3 = st.columns(3) c1.metric("MVR to NPR", f"{npr_rate}", "Live") c2.metric("Kurangi Deadline", "Apr 2", f"{(kurangi_deadline - date.today()).days} Days") c3.metric("Worksite Update", "June 1", "Employer Deadline") st.error("๐จ **OPERATION KURANGI:** If you are undocumented, register before **April 2, 2026**. Biometrics are mandatory at the Ministry of Homeland Security.") st.info("๐ข **Consular News:** The Feb 9, 2026 camp at Kamana Maalam provided medical and passport aid to hundreds. Stay tuned for the next camp.") # --- 2. HOUSING (iBay Integration) --- elif menu == "๐ข Housing (iBay)": st.header("๐ Rental Finder (Feb 2026 Trends)") cols = st.columns(2) for i, r in enumerate(rentals): with cols[i % 2]: st.markdown(f"""
๐ {r['Loc']} | MVR {r['Price']:,}
Ref ID: {r['ID']} | Source: iBay.mv