When Zayd is the subject, a visible ḍamma marks the nominative: marfūʿ bi-l-ḍamma.
When hāʾulāʾi is the subject, its ending stays fixed: mabnī ʿalā l-kasr fī maḥalli rafʿ.
Similarly, fī maḥalli naṣb and fī maḥalli jarr name its syntactic position without changing the noun’s built ending.