Skip to content

Commit

Permalink
Review stars fix (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell authored Jun 30, 2022
1 parent 6b90426 commit e773151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/localbox/box_one.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class="img-fluid pull-left"
<dd class="text-muted">
<div class="rating rating-sm">
@php $reviewScore = $locationCurrent->reviews_score() @endphp @for ($value = 1; $value<6; $value++)
<span @class(['fa-star', 'fa' => $value < $reviewScore, 'far' => $value > $reviewScore])></span>
<span @class(['fa-star', 'fa' => $value <= $reviewScore, 'far' => $value > $reviewScore])></span>
@endfor
<span class="small">({{ $locationCurrent->reviews_count ?? 0 }})</span>
</div>
Expand Down

0 comments on commit e773151

Please sign in to comment.