@extends("admin/layout") @section("content")
Premium Demo
@if (session('successMessage') || session('errorMessage'))
@if (session('successMessage'))
{{ session('successMessage') }}
@endif @if (session('errorMessage'))
{{ session('errorMessage') }}
@endif
@endif

Comment Reports

@if($reports->isEmpty())
There are no reports
@else @foreach($reports as $report) @endforeach
Comment ID Comment Text Reporter Name Violator Name Report Reason Report Date Action Taken
{{ $report->comment_id }} {{ $report->comment ? $report->comment->comment_text : 'Comment not available' }} {{ $report->reporter->username }} {{ $report->violator->username }} {{ $report->report_reason }} {{ date('d-m-Y', strtotime($report->report_date)) }} @if ($report->action_taken == 'none') {{ $report->action_taken }} @elseif ($report->action_taken == 'removed') {{ $report->action_taken }} @elseif($report->action_taken == 'no violation') {{ $report->action_taken }} @else {{ $report->action_taken }} @endif
@if ($report->status == 'pending')
@csrf
@csrf
@else @endif
@foreach ($reports->getUrlRange(1, $reports->lastPage()) as $page => $url) {{ $page }} @endforeach
Page {{ $reports->currentPage() }} of {{ $reports->lastPage() }}
@endif
@endsection