Start by marinating the chicken pieces in ras el hanout, ginger, and half the cinnamon for at least 2 hours.
In a large pot, sauté onions until translucent. Add garlic and cook for another minute.
Add the marinated chicken and brown on all sides. Pour in the chicken broth, bring to a boil, then reduce heat and simmer for 45 minutes or until chicken is tender.
Remove the chicken, let it cool slightly, then shred it. Reserve the cooking liquid.
In the same pot, reduce the cooking liquid until thickened. Add beaten eggs and stir constantly until scrambled and mixed with the sauce.
Preheat oven to 375°F (190°C).
Butter a 9-inch round baking pan. Layer 8 sheets of phyllo, brushing each with melted butter, allowing edges to hang over.
Spread the shredded chicken mixture, followed by the egg mixture. Top with herbs.
Fold the overhanging phyllo over the filling, then layer remaining sheets on top, brushing each with butter.
Tuck edges under and brush top with remaining butter.
Bake for 30-35 minutes until golden brown.
Once cooled slightly, dust with powdered sugar and cinnamon in a traditional diamond pattern.