@extends('admin.layouts.app') @section('title', 'Correction Reports Queue') @section('content')
{{-- Page Header --}}
Moderation & Quality Control

Correction Reports Queue {{ $openCount }} Open

Visitor reports regarding incorrect or outdated public information. Reviewing maintains an audit trail without mutating records unmoderated.

{{-- Alerts --}} @if(session('success'))
{{ session('success') }}
@endif {{-- KPI Cards --}} @php $activeStatus = $filters['status'] ?? ''; @endphp
All Reports
{{ number_format($stats['total']) }}
Total submissions
Open / Pending
{{ number_format($stats['open']) }}
Needs investigation
Resolved
{{ number_format($stats['resolved']) }}
Corrected & archived
Rejected
{{ number_format($stats['rejected']) }}
Invalid submissions
{{-- Filter Toolbar --}}
{{-- Search Input --}}
{{-- Status Filter --}}
{{-- Issue Category --}}
{{-- Record Type --}}
{{-- Per Page & Submit --}}
@if(request()->hasAny(['q', 'status', 'category', 'entity', 'per_page'])) @endif
{{-- Bulk Action Form --}}
@csrf
{{-- Floating Bulk Actions Bar --}}
Selected
{{-- Reports Table Card --}}
@forelse($rows as $report) {{-- Issue Category --}} {{-- Reported Record --}} {{-- Reporter & Details --}} {{-- Status Pill --}} {{-- Received Date --}} {{-- Actions --}} @empty @endforelse
Issue Category Reported Record Reporter & Details Status Received Date Actions
{{ $report->categoryLabel() }}
{{ \App\Http\Controllers\Frontend\ReportController::labelFor($report->reportable_type) }} #{{ $report->reportable_id }}
{{ $report->reporter_name ?? 'Anonymous Devotee' }} @if($report->reporter_contact) ({{ $report->reporter_contact }}) @endif
{{ Str::limit($report->description, 70) }}
@if($report->status === 'resolved') Resolved @elseif($report->status === 'under_review') Under Review @elseif($report->status === 'rejected') Rejected @else Open / Pending @endif {{ $report->created_at->format('d M Y, h:i A') }}
No correction reports found

No reports matched your current search filters.

{{-- Pagination --}} @if(method_exists($rows, 'hasPages') && $rows->hasPages())
{{ $rows->links() }}
@endif
@endsection