Salam Alaikum,
If you are in state of haiz (najasath due to periods) can you view the dead body or be present at the funeral and can you pray namaaz e mayyit?

Yes you can view the dead body
It is makrooh to present near the dead body and presence in funeral is makrooh
Can't pray namaz e maiyat