@for($i = 0; $i < 5; $i++) @if($i < $ratings) @if($i < intval($ratings) ) @else @if($i + 0.5 >= number_format( $ratings, 1)) @else @endif @endif @else @endif @endfor