@include('auto_reply._tabs')
@php
$isAdmin = auth()->check() && auth()->user()->auth_id == 0;
$ready = $readyCategories->count();
@endphp
{{-- Readiness first: "enabled" on its own does not send anything. --}}
Status
@if (!$settings->enabled)
Off
@elseif ($ready === 0)
On, but nothing can send
@else
On
@endif
Categories ready to reply
{{ $ready }} of {{ $categories->count() }}
Approved templates
{{ $approvedTemplates }}
@if ($settings->enabled && $ready === 0)
Auto-reply is on, but no category is ready. A category sends only when it is
active, has auto-reply enabled, and points at an
approved template.
Review categories.
@endif
@if ($ready > 0)
Replying for:
@foreach ($readyCategories as $category)
{{ $category->name }}
@endforeach