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