I have two models Projects and Programs. both of them are in relation. WHen I submit a new project then I must have to select a related program in dropdown menu, and also specify that whether the project_status is completed or inProgress.
Now I want to display the Total no of projects in the program detail view and also the total no of projects that are inProgress and also the total no of projects that are Completed.