Begin with putting the pistachios in a pan with hot water. Allow the pistachios to cook for a minute or two, until they get tender. Once done, immediately transfer the pistachios to cold water to stop the cooking process. After a while drain the water and keep the blanched pistachios aside.
Take a deep bottomed bowl and add gram flour in it by carefully strain the flour using a strainer.
Heat a deep bottomed pan on low heat and add in the strained gram flour in it followed by ghee. Allow the gram flour to be cooked until you see a nice golden shade to it.
Carefully add in the khoya to the cooked gram flour mixture and stir well until both the ingredients combine. Keep the mixture aside.
Take another deep bottomed pan, keep it on medium flame and add enough water and sugar in it. Allow the mixture to thicken and cook it until you get a syrup like consistency. Once done remove the pan from flame and keep it aside.
Now add in the prepared sugar syrup in the pan fried gram flour mixture followed by cardamom powder. Transfer the mixture carefully on a clean tray and spread it evenly. Allow it to rest for a while and then add in the blanched pistachios and almonds in it. Cut into desired shapes,