associated offices to loan product

In this request create/edit  loan products with associate offices . And showing loan products based on the group/client office id while creating/editing loan a /c(group loan, jlg loan, individual loan) and loan products which are not associated with office for client/group