How to build Hierarchical Bayesian Logistic regression model?

I am in the process of building such a model myself. I am building a logistic regression with hyper priors on the slopes. Even though I can’t get it to work, it works with a single level. Perhaps my code can be of some inspiration.