@for ($i = 1; $i <= 5; $i++) @if ( (ceil($rating * 2) / 2) == $i - 0.5 ) @elseif ( (ceil($rating * 2) / 2) >= $i) @else @endif @endfor