@extends('setting.nav') @section('title', 'Auto Reply Settings') @section('content')
@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
@endif
@csrf
Sending rules
enabled)) @disabled(!$isAdmin)>
The master switch. With this off, mail is still categorised and logged, but nothing is sent.
A mail is only answered when the AI is at least this sure of the category. A category can set its own stricter or looser value.
manual_review_below_threshold)) @disabled(!$isAdmin)>
Logs them as MANUAL_REVIEW instead of quietly skipping, so someone can answer by hand.
reply_once_per_thread)) @disabled(!$isAdmin)>
Follow-up mails in a thread that was already acknowledged are logged as ALREADY_SENT.
reply_to_internal_senders)) @disabled(!$isAdmin)>
Off by default — colleagues are not customers. Turn it on to test the feature by mailing yourself from another mailbox on this account. Mail the mailbox sends to itself is never acknowledged either way.
A safety net against reply loops. 0 removes the limit.
Template values

These fill the matching placeholders in your templates.

Used when a template asks for a product name. Falls back to the category name.
For example "Customer Success Team".
@if ($isAdmin)
@else
Only the account administrator can change these settings.
@endif
@endsection @section('scripts') @endsection