{{-- Info banner --}}
{{ __('Set the number of days to keep each log type. Rows older than the window are deleted automatically once a day. Set 0 to disable cleanup for that table.') }}
@foreach ($rows as $r) {{-- Label + table name --}} {{-- Row count --}} {{-- Retention days selector --}} {{-- Last cleanup info --}} {{-- Actions: clean by retention window + force-clear all --}} @endforeach
{{ __('Log type') }} {{ __('Rows now') }} {{ __('Keep for (days)') }} {{ __('Last cleanup') }} {{ __('Actions') }}
{{ $r['label'] }}
{{ $r['table'] }}
{{ number_format($r['count']) }}
@if ($r['last_run'])
{{ \Carbon\Carbon::parse($r['last_run'])->diffForHumans() }}
@if ($r['deleted'] !== null)
{{ __(':n rows removed', ['n' => number_format($r['deleted'])]) }}
@endif @else {{ __('Never') }} @endif
{{-- Clean by window (only rows older than N days) --}} {{-- Force-clear ALL rows regardless of age --}} @if($r['count'] > 0) @endif
{{-- Save footer --}}

{{ __('Cleanup runs automatically once a day via the scheduler.') }}