Overview
The staff status system in Phyzioline manages whether staff members are Active or Inactive in your clinic. This allows you to temporarily deactivate staff without permanently deleting them.
How Staff Status Works
Status Types:
- ✅ Active - Staff member is currently working and can access the system
- ❌ Inactive - Staff member is temporarily deactivated (on leave, terminated, etc.)
Where Status is Stored:
- Status is managed in the
clinic_stafftable via theis_activefield - This is separate from the
userstable to allow multi-clinic scenarios
Where to Manage Staff Status
Location: Staff Directory Page
URL: /clinic/staff
Navigation: Sidebar → Staff
Features Available:
- View All Staff - See both active and inactive staff members
- Toggle Status - Click the status toggle button (🟡 Deactivate / 🟢 Activate)
- Edit Staff - Click the Edit (✏️) button to modify staff details
- Delete Staff - Click the Delete (🗑️) button to permanently remove staff
How to Activate/Deactivate Staff
Method 1: Using Toggle Button (Recommended)
- Go to Staff Directory (
/clinic/staff) - Find the staff member you want to activate/deactivate
- Click the status button:
- 🟡 Yellow button = Currently Active (click to deactivate)
- 🟢 Green button = Currently Inactive (click to activate)
- Confirm the action in the dialog
- Status updates immediately
What Happens When You Change Status
When Activating Staff:
- ✅
is_activeset totrue - ✅
terminated_datecleared (set tonull) - ✅ Staff member appears in active staff lists
- ✅ Staff can log in and access the system
When Deactivating Staff:
- ❌
is_activeset tofalse - ❌
terminated_dateset to current date - ❌ Staff member removed from active staff lists
- ❌ Staff cannot log in (if authentication checks
is_active)