could someone suggest me the best way to work with a model, lest say a grades model that I pass to my blade view, and as I go throug it with a foreach I need to do some calculations, like to sum the grades of a specific subject and after all calc the median using the count of the collection pased, should I use the @php tag to specify a local variable in the view to sum the grades and make the calc or is there a better solution that you could suggest me?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire