Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get percentage rating in laravel

@foreach($ratings as $rating)
  
    Percentage: {{ ($rating->count / 100) * $total); }}
   
@endforeach
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #percentage #rating #laravel
ADD COMMENT
Topic
Name
4+1 =