Peer Review: {{ $dispute->summary }}

Opened by {{ $dispute->openedBy->name }} | {{ $dispute->status }}

Claim

{{ $dispute->claim }}

Evidence notes

{{ $dispute->evidence_notes }}

Recommended resolution

{{ $dispute->recommended_resolution ?? 'Pending peer review.' }}

Peer votes

@php $voteGroups = $dispute->votes->groupBy('recommendation')->map->count(); $voteTotal = max($dispute->votes->count(), 1); @endphp
@foreach (['provider' => 'Provider', 'buyer' => 'Buyer', 'split' => 'Split', 'insufficient_evidence' => 'Insufficient evidence'] as $key => $label) @php $count = $voteGroups[$key] ?? 0; @endphp

{{ $label }}

{{ $count }} vote{{ $count === 1 ? '' : 's' }} | {{ round(($count / $voteTotal) * 100) }}%

@endforeach
@csrf Save vote @foreach ($dispute->votes as $vote)

{{ $vote->user->name }} | {{ str_replace('_', ' ', $vote->recommendation) }}

{{ $vote->reason }}

@endforeach

Comments

@csrf Comment @foreach ($dispute->comments as $comment)

{{ $comment->user->name }}

{{ $comment->body }}

@endforeach