@extends('layouts.admin') @section('title', 'Reports') @section('content')

{{ $reports->total() }} {{ Str::plural('report', $reports->total()) }}

$currentStatus === '', 'pill-idle' => $currentStatus !== ''])> Open {{ ($counts['open'] ?? 0) + ($counts['under_review'] ?? 0) }} $currentStatus === 'all', 'pill-idle' => $currentStatus !== 'all'])> All {{ $counts->sum() }} @foreach ($statuses as $value => $label) @continue(! $counts->has($value)) $currentStatus === $value, 'pill-idle' => $currentStatus !== $value])> {{ $label }} {{ $counts[$value] }} @endforeach
@if ($reports->isEmpty()) @else
@foreach ($reports as $report) @endforeach
What Reason Reported by When Status Actions
{{ $report->subjectLabel() }} {{ $report->subjectType() }} {{ $report->reason->label() }} {{ $report->reporter?->name ?? 'Not signed in' }} {{ $report->created_at->format('d M Y') }} {{ $report->status->label() }} Review
{{ $reports->links() }}
@endif @endsection