@extends('layouts.admin', [ 'title' => 'Reports' ]) @section('content')
@forelse ($reports as $report)
Reporter:
Type:
{{ $report->type() }} @if ($report->url()) [Click to view] @endif
Category:
{{ $report->category }}
Comment:
{!! (!empty($report->comment)) ? nl2br(e($report->comment)) : '
This report does not have a comment.
' !!}
@if (!$report->url())
Content:
{{ $report->content->body }}
@endif

@csrf
@if (staffUser()->staff('can_ban_users'))
@endif
@empty
There are currently no pending reports.
@endforelse
{{ $reports->onEachSide(1) }} @endsection