@extends('layouts.admin') @section('title', 'Moderation') @section('content') {{-- Counts alone say nothing. The oldest waiting item is the number that tells you whether a queue is being worked: three items sitting for a week is worse than thirty filed this morning. --}}
@foreach ($queues as $queue) @php $count = $queue['query']->count(); $oldest = (clone $queue['query'])->min('created_at'); $waiting = $oldest ? \Illuminate\Support\Carbon::parse($oldest) : null; $stale = $waiting?->lt(now()->subDays(3)); @endphp {{ $queue['label'] }} {{ $count }} @if ($waiting) $stale, 'text-text-muted' => ! $stale, ])>{{ __('Oldest :age', ['age' => $waiting->diffForHumans(short: true)]) }} @else {{ __('Nothing waiting') }} @endif @endforeach

{{ __('What the team has done') }}

{{ __('Full log') }}
@if ($recent->isEmpty()) @else
    @foreach ($recent as $log)
  1. {{ $log->describe() }} {{ $log->created_at?->diffForHumans() }}
  2. @endforeach
@endif

{{ __('Suspended') }}

@if (Route::has('admin.accounts.index')) {{ $suspendedCount }} @endif
@if ($suspensions->isEmpty())

{{ __('No account is currently suspended.') }}

@else @endif
@endsection