@if (session('status'))
{{ session('status') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
{{ __('LinkedIn / Automation') }}

{{ __('Comment') }} {{ __('auto-reply') }}.

{{ __('Reply to comments on your published LinkedIn posts automatically when they match a keyword — with a fixed reply or AI.') }}

{{ __('Back to posts') }}
{{ __('Reading & replying to comments uses LinkedIn\'s Community Management API — your LinkedIn app needs that product approved for this to run. Rules you add here start working automatically once it is.') }}
{{-- Composer --}}
@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'])
{{-- Rules + activity --}}

{{ __('Rules') }}

@forelse ($rules as $r)
{{ $r->match_type === 'any' ? __('Any comment') : ($r->match_type.': '.$r->keywords) }}
{{ $r->use_ai ? __('AI reply') : \Illuminate\Support\Str::limit($r->reply_text, 70) }} · {{ $r->matched_count }} {{ __('matched') }}
@csrf
@csrf @method('DELETE')
@empty

{{ __('No rules yet. Add one on the left.') }}

@endforelse

{{ __('Recent activity') }}

@forelse ($log as $l)
{{ \Illuminate\Support\Str::limit($l->comment_urn, 40) }} {{ $l->action }}
@empty

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

@endforelse