@extends('admin.layouts.home') @section('title', 'Reported Groups') @section('content')

Reported Groups

Filter Reports
@if(request()->has('status')) Clear @endif
Group Reports
@if($pendingCount > 0) {{ $pendingCount }} pending @endif {{ $resolvedCount }} resolved {{ $dismissedCount }} dismissed
@if($reports->isEmpty())
No reports found with the selected filters.
@else
{{-- {{dd($reports)}} --}} @foreach($reports as $report) @endforeach
ID Group Reported By Reason Reported On Status Actions
{{ $report->id }} {{ $report->group->name ?? 'Unknown Group' }}
{{ ucfirst($report->group->type) }}
{{ $report->user->name ?? 'Unknown User' }} {{ $report->reason }}
{{ Str::limit($report->details, 100) }} @if(strlen($report->details) > 100) (Read more) @endif
{{ $report->created_at->format('D M-Y H:i') }} {{ ucfirst($report->status) }}
@if($report->status === 'pending')
@csrf @method('PUT')
@csrf @method('PUT')
{{--
@csrf @method('PUT')
--}} @endif
@csrf @method('PUT')
{{ $reports->appends(request()->query())->links('pagination::bootstrap-5') }}
@endif
@endsection @section('scripts') @endsection