@extends('admin.layouts.home') @section('title', 'User Report Details') @section('content')

User Report Details

Back to User Reports
@if(session('success'))
{{ session('success') }}
@endif
Report Information
@if($report->status == 'pending') Pending @elseif($report->status == 'resolved') Resolved @elseif($report->status == 'dismissed') Dismissed @endif
Report Details
Report ID {{ $report->id }}
Date Reported {{ $report->created_at->format('F d, Y h:i A') }}
Status @if($report->status == 'pending') Pending @elseif($report->status == 'resolved') Resolved @elseif($report->status == 'dismissed') Dismissed @endif
Last Updated {{ $report->updated_at->format('F d, Y h:i A') }}
Reason for Report

{{ $report->reason }}

Reported User
@if($report->reportedUser)
{{ $report->reportedUser->name }}

{{ $report->reportedUser->email }}

@if($report->reportedUser->is_blocked) Blocked @else Active @endif
{{ $report->reportedUser->posts_count ?? 0 }}
Posts
{{ $report->reportedUser->followers_count ?? 0 }}
Followers
{{ $userReports->count() }}
Reports
User Reports History
@if(count($userReports) > 0)
@foreach($userReports as $userReport) id == $report->id) class="table-active" @endif> @endforeach
Date Reason Status
{{ $userReport->created_at->format('M d, Y') }} {{ $userReport->reason }} @if($userReport->status == 'pending') Pending @elseif($userReport->status == 'resolved') Resolved @elseif($userReport->status == 'dismissed') Dismissed @endif
@else

No previous reports found.

@endif @else
User Not Found

The reported user may have been deleted from the system.

@endif
Reporting User
@if($report->reportingUser)
{{ $report->reportingUser->name }}

{{ $report->reportingUser->email }}

@if($report->reportingUser->is_blocked) Blocked @else Active @endif
{{ $report->reportingUser->posts_count ?? 0 }}
Posts
{{ $reportsSubmittedCount }}
Reports Submitted
@else
User Not Found

The reporting user may have been deleted from the system.

@endif
@if($report->status == 'pending')
Take Action
@csrf @method('DELETE')
@endif
@endsection