In a large pot, add the olive oil on medium high heat. Sear the chicken legs on both sides until lightly golden, 1 to 2 minutes on each side. Work in batches if required to avoid overcrowding.
Add the onion, carrot, garlic cloves, water, salt, cardamom pods, cinnamon sticks, bay leaves and black peppercorns. Cover and bring to a boil.
If you see any foam rising to the surface, skim and discard. Continue to boil for at least 40 minutes until the chicken is cooked through.
Remove the chicken and set it aside. Strain the broth and discard the vegetables. Set the broth aside.
For the Moghrabieh
While the broth cooks, in another medium pot, add the 1/4 cup olive oil on medium heat.
Add all the peeled pearl onions and brown on all sides, for approximately 6 to 7 minutes. If there is a lot of splatter, cover the pot. Once golden and softened, remove and set aside.
Add the butter to the pot that was used for the onions, then add the dry moghrabieh. Toast the moghrabieh in the butter for a few minutes, stirring.
Add in the ground caraway, seven spice, cinnamon, cumin and black pepper and stir through with the moghrabieh for a few more minutes.
Add enough chicken broth to cover the moghrabieh. Close the lid and cook on medium heat for 20 minutes until the moghrabieh is soft and chewy.
Meanwhile, take the meat off the chicken and shred the cooked chicken into bite sized pieces.
Once the moghrabieh is cooked, in the same pot used for the chicken stock, add the chickpeas, along with the onions, the shredded chicken and the rest of the chicken broth. The stew should be soupy in consistency. Taste and adjust for more salt. Allow everything to simmer for a few minutes, then remove from the heat.
To serve, spoon some of the moghrabieh into individual serving bowls, then spoon a few ladles of the chicken, onion and chickpea stew on top. Garnish with parsley if desired.
The moghrabieh can also be mixed in with the chicken, onions and chickpeas all in one pot. However, doing that will result in a dryer consistency since the moghrabieh will continue to absorb all the soupy broth. Serving the moghrabieh separately is more traditional, but both methods work based on preference.
Notes
Moghrabieh can be found at a middle eastern grocery store.
The dish can be served with the moghrabieh separately in bowls, then followed by the chicken, chickpeas and onion stew. This way, we avoid the moghrabieh absorbing all the liquid as it sits.