Pošalji tekstualnu poruku: Atom state evolution and collapse in ultracold gases during light scattering into a cavity