{{-- Star rating display. rounds to the nearest half star. --}}
@props(['rating' => 0, 'size' => null])
@php($r = round(((float) $rating) * 2) / 2)
class(['stars', 'stars-'.$size => $size]) }} role="img" aria-label="Rated {{ rtrim(rtrim(number_format((float) $rating, 1), '0'), '.') }} out of 5">
@for ($i = 1; $i <= 5; $i++)
@endfor