@extends('layouts.account') @section('title', __('Reviews')) @section('heading', __('Reviews')) @section('subheading', __('What you have written, and what has been written about you.')) @section('account') @if (session('error')) {{ session('error') }} @endif {{-- People this buyer has actually dealt with. A review needs a dealing behind it — a ratings system open to strangers is one that gets bought. --}} @if ($pending->isNotEmpty())

{{ __('People you have dealt with') }}

@foreach ($pending as $lead) @php($profile = $lead->seller->sellerProfile)

{{ $profile->display_name }}

{{ $lead->listing?->title }}

@csrf
{{ __('Rating') }}
@foreach (range(1, 5) as $star) @endforeach
@endforeach
@endif @if ($received->isNotEmpty())

{{ __('About you') }}

@foreach ($received as $review)

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

{{ $review->author?->name }} · {{ $review->created_at->format('j M Y') }}

{{ $review->status->label() }}

{{ $review->body }}

@if ($review->hasReply())

{{ __('Your reply') }}

{{ $review->reply }}

@elseif ($review->isVisible()) {{-- Replying is offered only on a published review: answering something nobody can see is answering an accusation in an empty room. --}}
@csrf
@endif
@endforeach
@endif @if ($written->isNotEmpty())

{{ __('Written by you') }}

@foreach ($written as $review)

{{ str_repeat('★', $review->rating) }}{{ str_repeat('☆', 5 - $review->rating) }} {{ $review->subject?->display_name }}

{{ $review->status->label() }}

{{ $review->body }}

@if ($review->moderation_note && ! $review->isVisible())

{{ $review->moderation_note }}

@endif
@endforeach
@endif @if ($pending->isEmpty() && $received->isEmpty() && $written->isEmpty()) @endif @endsection