@if (session('status'))
{{ session('status') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
{{ __('Threads') }}

{{ __('Reply automation') }}

{{ __('When a reply to your posts matches a keyword, auto-post a public reply and/or hide it. Replies are checked when you open the Threads pages.') }}

{{ __('Posts') }}
@if ($accounts->isEmpty())

{{ __('Connect a Threads account first.') }}

{{ __('Connect Threads') }}
@else
{{-- New rule --}}
@csrf

{{ __('New rule') }}

@include('user.social._ai-agent-select', ['selected' => null, 'class' => 'w-full px-3 py-2 border border-paper-200 rounded-xl text-[12.5px] bg-paper-50'])

{{ __('When AI is on, this steers the reply. The fixed reply above is used as a fallback.') }}

{{-- Rules + activity --}}

{{ __('Rules') }}

@forelse ($rules as $r)
{{ $r->is_active ? __('On') : __('Off') }}
{{ $r->name ?: ($r->keyword_mode === 'any' ? __('Any reply') : $r->keyword) }}
{{ $r->keyword_mode }}{{ $r->keyword_mode !== 'any' ? ': '.$r->keyword : '' }} @if ($r->reply_text) · {{ __('reply') }} @endif @if ($r->hide) · {{ __('hide') }} @endif · {{ $r->matched_count }} {{ __('matched') }}
@csrf
@csrf @method('DELETE')
@empty

{{ __('No rules yet.') }}

@endforelse

{{ __('Recent activity') }}

@forelse ($activity as $log)
"{{ \Illuminate\Support\Str::limit($log->text, 80) }}"
{{ '@'.$log->from_username }} · {{ $log->action }} · {{ $log->created_at->diffForHumans() }}
@empty

{{ __('No auto-replies yet.') }}

@endforelse
@endif