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

Post Reports

Back to Dashboard
Filter Reports
{{ ucfirst($status) }} Post Reports
@if(session('success'))
{{ session('success') }}
@endif
@forelse($reports as $report) @empty @endforelse
ID Post Reported By Reason Status Date Actions
{{ $report->id }} @if($report->post)
@if($report->post->media && count($report->post->media) > 0) @else
@endif
{{ Str::limit($report->post->text, 30) }}
ID: {{ $report->post_id }}
By: {{ $report->post->user->name ?? 'Unknown' }}
@else Post not found or deleted @endif
@if($report->reportingUser)
{{ $report->reportingUser->name }}
ID: {{ $report->user_id }}
@else User not found @endif
{{ $report->reason }} @if($report->status == 'pending') Pending @elseif($report->status == 'resolved') Resolved @elseif($report->status == 'dismissed') Dismissed @endif {{ $report->created_at->format('M d, Y H:i') }}
@if($report->status == 'pending') @endif
@csrf @method('DELETE')
No reports found
{{ $reports->appends(['status' => $status])->links('pagination::bootstrap-5') }}
@endsection @section('scripts') @endsection