Hi guyz I have this scenario.. I have a looped table of different class(Class Name) in my view... My problem is I want to count the number of students that are present and absent.. where am I suppose to have the counting? Is it in the view? cotroller? or model? and how am I going do that? I'm quite new to this so please help me guyz.. Thanks in advance.. If you need more info please tell me..
Class Name: Star Class
Class Adviser: James Anderson
__________________
| Students Status |
|__________________|
|Johny Jo | Absent |
|_________|________|
|Jenny Ye | Present|
|_________|________|
number of present: ?
number of absent: ?