@php use App\Models\Game\Moderation\PlayerReport; @endphp @props([ 'reports' => collect() ]) @php /** @var \Illuminate\Support\Collection<\App\Models\Game\Moderation\PlayerReport>|\Illuminate\Pagination\LengthAwarePaginator $reports*/ $handledReports = collect(); $unhandledReports = collect(); $reports->each(function (PlayerReport $report) use ($handledReports, $unhandledReports) { if($report->handled) $handledReports->add($report); else $unhandledReports->add($report); }) @endphp
@if($reports->count() <= 0)

No Reports

@endif @if($unhandledReports->count() > 0)

Unhandled Reports

@foreach($unhandledReports as $report) @endforeach
Time Reporter Reported Reason Details Match Info Actions
@endif @if($handledReports->count() > 0)

Handled Reports

@foreach($handledReports as $report) @endforeach
Time Reporter Reported Reason Details Match Info Consequences Handled By
@endif
{{ $reports->links() }}