{{-- ── Heading ─────────────────────────────────────────────────────── --}}
{{ __('Facebook') }} · {{ __('Messenger') }}

{{ __('Messenger') }} {{ __('setup') }}

{{ __('Set up how your Messenger chat greets and guides customers — the Get Started button, a welcome greeting, an always-on menu, and tappable FAQs. Pick a feature on the left, read what it does, then fill it in. Changes save straight to Facebook.') }}

@if ($pages->count() > 1)
@endif {{ __('Composer') }}
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif @if ($pages->isEmpty())

{{ __('No Facebook Page connected yet.') }}

{{ __('Connect a Facebook account') }}
@else @php $tabs = [ 'getstarted' => ['label' => __('Get Started button'), 'set' => $getStarted !== '', 'icon' => 'M4 8h8M8 4l4 4-4 4'], 'greeting' => ['label' => __('Greeting'), 'set' => $greeting !== '', 'icon' => 'M3 5.5A2.5 2.5 0 0 1 5.5 3h5A2.5 2.5 0 0 1 13 5.5v3A2.5 2.5 0 0 1 10.5 11H8l-3.5 2v-2A2.5 2.5 0 0 1 3 8.5z'], 'menu' => ['label' => __('Persistent menu'), 'set' => count($menuItems) > 0, 'icon' => 'M2.5 4h11M2.5 8h11M2.5 12h11'], 'icebreakers' => ['label' => __('Ice breakers'), 'set' => count($iceBreakers) > 0, 'icon' => 'M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2zM6 6.5a2 2 0 0 1 4 0c0 1.5-2 1.5-2 3M8 12h.01'], ]; $firstTab = 'getstarted'; foreach ($tabs as $k => $t) { if ($t['set']) { $firstTab = $k; break; } } @endphp
{{-- ── Feature tabs (horizontal bar) ───────────────────────── --}}
{{ $page->name ?: $page->page_id }}
{{ __('Messenger profile') }}
@foreach ($tabs as $key => $t) @endforeach
{{-- ── One panel per feature ───────────────────────────────── --}}
{{-- ══ Get Started ══════════════════════════════════════ --}} {{-- ══ Greeting ═════════════════════════════════════════ --}} {{-- ══ Persistent Menu ══════════════════════════════════ --}} {{-- ══ Ice Breakers ═════════════════════════════════════ --}}

{{ __('These settings write to the Facebook Messenger profile via the Graph API and apply to new conversations. Meta may take a moment to propagate changes.') }}

@endif