{{ $count ? $average : '–' }}
{{ str_repeat('★', (int) round($average)) }}{{ str_repeat('★', 5 - (int) round($average)) }}
{{ $count }} {{ Str::plural('review', $count) }}
@foreach ([5, 4, 3, 2, 1] as $s) @php($n = (int) ($stars[$s] ?? 0))
{{ $s }}★
{{ $n }}
@endforeach
@forelse ($reviews as $r)
{{ str_repeat('★', $r->rating) }}{{ str_repeat('★', 5 - $r->rating) }} @if ($r->title){{ $r->title }}@endif {{ $r->created_at->format('d M Y') }}

{{ $r->body }}

@if ($r->photos)
@foreach ($r->photos as $ph)Customer photo@endforeach
@endif {{ $r->authorName() }} · {{ $names[$r->product_slug] ?? $r->product_slug }}
@empty @endforelse @if ($reviews->hasPages())@endif