In the following html template, I am trying to get the percentage, in the form:
4%
but when I perform multiplication and division, it appears as
You must do the calculation inside the brackets:
{{ number_format($i->count / $total * 100, 2) }}%