A polaritonic two-component Bose–Hubbard model