@extends('layouts.admin') @section('title', 'Reviews') @section('content')
$currentStatus === '', 'pill-idle' => $currentStatus !== ''])> Awaiting a decision {{ $counts['pending'] ?? 0 }} $currentStatus === 'all', 'pill-idle' => $currentStatus !== 'all'])> All {{ $counts->sum() }} @foreach ($statuses as $value => $label) @continue(! $counts->has($value)) $currentStatus === $value, 'pill-idle' => $currentStatus !== $value])> {{ $label }} {{ $counts[$value] }} @endforeach
@if ($reviews->isEmpty()) @else
@foreach ($reviews as $review)

{{ str_repeat('★', $review->rating) }}{{ str_repeat('☆', 5 - $review->rating) }} @if ($review->title) {{ $review->title }} @endif

{{ $review->author?->name }} ({{ $review->author?->email }}) → {{ $review->subject?->display_name ?? 'Deleted' }} · {{ $review->created_at->format('d M Y') }} {{-- Whether there is a real dealing behind it is the single most useful thing on this screen. --}} @if ($review->isVerifiedDealing()) Verified dealing @else No dealing on record @endif

{{ $review->status->label() }}
@if ($review->listing)

About: {{ $review->listing->title }}

@endif

{{ $review->body }}

@if ($review->hasReply())

Seller's reply

{{ $review->reply }}

@endif
@csrf
@foreach (['publish' => 'Publish', 'reject' => 'Reject', 'hide' => 'Hide'] as $value => $label) @endforeach
@endforeach
{{ $reviews->links() }}
@endif @endsection