@extends('admin.layout') @section('title', 'Gemelde profielen') @section('content') {{-- Filters --}}
Reset
{{-- Summary bar --}}
{{ $grouped->count() }} gemeld profiel(en) @if ($openCount) {{ $openCount }} openstaande melding(en) @endif
@forelse ($grouped as $userId => $entry) @php $reported = $entry['user']; $reports = $entry['reports']; $openCount = $entry['open']; $profile = $reported?->profile; $photo = $reported?->primaryPhoto; $suspended = $reported?->suspended_at !== null; $visible = $profile?->is_visible ?? false; @endphp @if (!$reported) @continue @endif
{{-- Header: profile info + status badges --}}
{{-- Avatar --}} @if ($photo) @else
{{ mb_substr($reported->name, 0, 1) }}
@endif
{{ $reported->name }} #{{ $reported->id }} {{-- Status badges --}} @if ($suspended) Geschorst @else Actief @endif @if ($profile) @if ($visible) Profiel zichtbaar @else Profiel verborgen @endif @endif @if ($openCount) {{ $openCount }} open @endif

{{ $reported->email }} @if ($entry['latest'])  ·  Laatste melding: {{ \Carbon\Carbon::parse($entry['latest'])->format('d/m/Y H:i:s') }} @endif

{{-- Admin profile link --}} Admin profiel →
{{-- Reports list --}}

Meldingen ({{ $entry['total'] }})

{{-- Action panel --}}
{{-- Profile visibility --}} @if ($profile) @if ($visible)
@csrf
@else
@csrf
@endif @endif {{-- Suspend / unsuspend --}} @if ($suspended)
@csrf
@else {{-- Suspend with reason — inline toggle --}}
@endif {{-- Permanent ban --}} @if (!$suspended)
@csrf
@endif {{-- Contact reported user --}} Contact eigenaar {{-- Contact all reporters --}} @php $reporterEmails = $reports->pluck('email')->unique()->implode(','); @endphp Contact melder(s) {{-- Dismiss all open reports --}} @if ($entry['open'] > 0)
@csrf
@endif
@empty
Geen gemelde profielen gevonden.
@endforelse @endsection