@use('App\Modules\Sellers\Http\Controllers\Admin\ModerationController')
@forelse ($reviews as $r)
{{ str_repeat('★', $r->rating) }}{{ str_repeat('★', 5 - $r->rating) }} @if ($r->title){{ $r->title }}@endif {{ ModerationController::STATUSES[$r->status] ?? $r->status }}

{{ $r->body }}

@if ($r->photos)
@foreach ($r->photos as $ph)Customer photo@endforeach
@endif {{ $r->user?->name }} ({{ $r->user?->email }}) · {{ $names[$r->product_slug] ?? $r->product_slug }} · {{ $r->created_at->format('d M Y') }}
@if ($r->status !== 'published')
@csrf @method('PATCH')
@endif @if ($r->status !== 'hidden')
@csrf @method('PATCH')
@endif
@csrf @method('DELETE')
@empty @endforelse @if ($reviews->hasPages())@endif