@php /** @var \App\Models\FacebookCommentRule|null $rule */ // On edit, prefill from the rule; on create, from old() after a failed submit. $v = fn ($k, $d = '') => $rule ? ($rule->{$k} ?? $d) : old($k, $d); $mode = $v('keyword_mode', 'contains'); $pageId = (int) $v('fb_page_id', 0); $flowId = (int) $v('dm_flow_id', 0); $active = $rule ? (bool) $rule->is_active : (bool) old('is_active', true); $lbl = 'block text-[11px] font-mono uppercase tracking-wide text-ink-500 mb-1'; $inp = 'w-full border border-paper-200 rounded-lg px-3 py-2 text-[13px] bg-paper-0 focus:outline-none focus:border-wa-deep'; @endphp
{{ $message }}
@enderror{{ __('Comma-separated. Matches if the comment contains any of them. Leave blank only for the "any comment" mode.') }}
@error('keyword'){{ $message }}
@enderror{{ __('Posted publicly under the comment. With AI reply on, this is used only if the AI can\'t answer.') }}
@error('public_reply'){{ $message }}
@enderror{{ __('AI reads each comment and answers it in the commenter\'s language.') }}
{{ __('Sent privately to the commenter (Messenger).') }}