added document vault and bug fixes on profile and staff members controllers

This commit is contained in:
Kwesi Banson Jnr
2026-08-20 19:08:31 +00:00
parent 81d26dc138
commit cc129bccac
7 changed files with 456 additions and 261 deletions

View File

@@ -148,4 +148,14 @@ class StaffMembersController extends Controller
return $upcomingStaff;
}
public function showDetails($id)
{
$staff = StaffMember::with('dependents')->findOrFail($id);
return response()->json([
'success' => true,
'staff' => $staff,
'dependents' => $staff->dependents
]);
}
}