Staff kaise apply karta hai:
- Mobile app me Apply Leave screen se — type (Casual CL / Sick SL / Earned EL / Comp-off / Unpaid), from-to dates, half-day option (first/second slot), reason, aur optional proof attachment (jaise medical certificate).
- Web par staff apne portal (/staff-portal → 🌴 Leaves → Apply) se bhi apply kar sakta hai. Locked ESS login (clinic code + mobile + OTP) me bhi Leave tab hai.
Owner/admin approve kaise kare:
- Sidebar → People → Staff → Attendance card kholo → 📋 Leaves tab (pending requests ki ginti tab par hi dikhti hai).
- Status filter chips: pending / approved / rejected / cancelled / all.
- Pending row par 'Review' dabao — modal me staff, department, type, period, days, reason dikhta hai.
- ✓ Approve ya ✗ Reject (reject par reason poochha jata hai).
One-tap magic link (bina login): Staff ke apply karte hi owner ko turant EMAIL jata hai jisme Approve/Reject ka one-tap link hota hai (SMS bhi, agar DLT template register karke LEAVE_ALERT_SMS on hai). Link kholte hi leave details ka page dikhta hai — ek tap me decision ho jata hai. Link single-use hai, expiry ke baad ya decision ho jane par 'Already handled' dikhata hai.
Edge cases:
- Approved leave galti se ho gayi? Usi Leaves tab me 'Revoke' button — leave balance bucket REFUND hota hai aur us date-range ki attendance status clear ho jati hai.
- Approve par paid/unpaid auto: unpaid type chhod kar baaki paid maani jati hai.
- Har staff ka annual CL/SL/EL balance HR Masters → Staff Schedule tab me set hota hai.
Mobile parity: admin ke liye Leave Requests / Admin Leave Approvals screens, staff ke liye Apply Leave + My Leaves screens mobile app me hain.