@extends('layouts.admin') @section('title', 'Report') @section('content')
Back to reports

{{ $report->subjectLabel() }}

{{ $report->status->label() }} {{ $report->reason->label() }} {{ $report->subjectType() }} · {{ $report->created_at->format('d M Y, H:i') }}

What was said

{{ $report->detail ?: 'No further detail was given.' }}

Reported by {{ $report->reporter?->name ?? 'somebody who was not signed in' }}@if ($report->reporter) ({{ $report->reporter->email }})@endif

{{-- A pattern of reports means something a single one does not. --}} @if ($related->isNotEmpty())

Also reported {{ $related->count() }} other {{ Str::plural('time', $related->count()) }}

    @foreach ($related as $other)
  • {{ $other->reason->label() }} {{ $other->status->label() }} · {{ $other->created_at->format('d M Y') }}
  • @endforeach
@endif

Decision

@if ($report->isOpen())
@csrf
@foreach (['uphold' => 'Uphold', 'dismiss' => 'Dismiss'] as $value => $label) @endforeach
{{-- The action is separate from the decision: a report can be correct without removal being the right response. --}} @if ($actions !== [])
@endif
@error('note')

{{ $message }}

@enderror
@else

{{ $report->status->label() }} {{ $report->resolved_at?->format('d M Y, H:i') }}@if ($report->resolver) by {{ $report->resolver->name }}@endif

@if ($report->resolution_note)

{{ $report->resolution_note }}

@endif @endif
@endsection