Heat a little oil in a pan. Fry the onions and green chilli. Keep aside.
Grind the onions and chilli with the coconut gratings, ginger and garlic, turmeric powder and coriander powder.
Add a little water, if necessary. Keep aside.
Now, add 2 tbsp of oil to a pan and heat it. Add cumin seeds, cardamom(with the skin), cinnamon and the bay leaves.
Fry for a minute and then carefully add the ground paste and allow it to cook. Let it cook for 4 minutes.
Add the rice and water. Mix well. Cover and cook for upto 15 minutes or until the rice is done.
Boil the eggs separately and cut into rings.
Arrange in the corners of a dish and add the rice in the center.