@extends('admin.layouts.app') @section('title', 'Review Report') @section('content')
Dashboard /Reports /Review

Review Report

@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@endif
Issue
{{ $report->categoryLabel() }}
Status
{{ ucfirst(str_replace('_', ' ', $report->status)) }}
Description
{{ $report->description }}
Reporter
{{ $report->reporter_name ?? '—' }}@if($report->reporter_contact) · {{ $report->reporter_contact }}@endif
Received
{{ $report->created_at->format('d M Y, h:i A') }}
Record
{{ \App\Http\Controllers\Frontend\ReportController::labelFor($report->reportable_type) }} #{{ $report->reportable_id }}
Reviewed by
{{ $report->reviewer?->name ?? '—' }}@if($report->reviewed_at) · {{ $report->reviewed_at->format('d M Y, h:i A') }}@endif
@if($record)
Linked record (opens its admin edit page)
@php $editUrl = match ($report->reportable_type) { \App\Models\DirectoryListing::class => route('admin.directory.listings.edit', $record), \App\Models\Place::class => route('admin.places.edit', $record), default => null, }; @endphp @if($editUrl){{ $record->name ?? $record->title ?? ('Record #' . $record->id) }} → @else{{ $record->name ?? $record->title ?? ('Record #' . $record->id) }}@endif
@endif
@if($similar->isNotEmpty())

Similar reports on this record ({{ $similar->count() }})

@foreach($similar as $s)
{{ $s->categoryLabel() }} — {{ \Illuminate\Support\Str::limit($s->description, 80) }} {{ ucfirst(str_replace('_', ' ', $s->status)) }} →
@endforeach
@endif

Decision (recorded with your name and time)

@csrf @method('PUT')
@endsection