{{ __('Channel Integrations') }}

{{ __('Connect messaging channels to manage all conversations in one place.') }}

@php $channels = [ ['key' => 'whatsapp', 'name' => __('WhatsApp'), 'desc' => __('Connect WhatsApp Business API for messaging.'), 'icon' => 'message-circle', 'bg' => 'bg-success/10', 'text' => 'text-success'], ['key' => 'sms', 'name' => __('SMS (Twilio)'), 'desc' => __('Send and receive SMS via Twilio.'), 'icon' => 'phone', 'bg' => 'bg-danger/10', 'text' => 'text-danger'], ['key' => 'telegram', 'name' => __('Telegram'), 'desc' => __('Connect your Telegram bot.'), 'icon' => 'send', 'bg' => 'bg-info/10', 'text' => 'text-blue-600'], ['key' => 'slack', 'name' => __('Slack'), 'desc' => __('Message Slack channels two-way — bot posts replies, channel messages land in inbox.'), 'icon' => 'hash', 'bg' => 'bg-brand/10', 'text' => 'text-purple-600'], ['key' => 'chat', 'name' => __('Live Chat'), 'desc' => __('Embed a chat widget on your website.'), 'icon' => 'message-square', 'bg' => 'bg-cyan-50', 'text' => 'text-cyan-600'], ]; // Instagram is shipped as an addon — only show the connect card when // the addon is installed AND active. This keeps the channel grid clean // for installs without the addon and avoids "ghost" channel cards that // would error out on save. $igActive = \Illuminate\Support\Facades\Schema::hasTable('addons') && \App\Models\Addon::where('slug', 'instagram')->where('status', 'active')->exists(); if ($igActive) { $channels[] = ['key' => 'instagram', 'name' => __('Instagram'), 'desc' => __('Send and receive Instagram DMs via Meta Graph API.'), 'icon' => 'instagram', 'bg' => 'bg-pink-50', 'text' => 'text-pink-600']; } @endphp
@foreach($channels as $ch) @php $integration = $integrations[$ch['key']] ?? null; $connected = $integration && $integration->status === 'active'; @endphp

{{ $ch['name'] }}

{{ $ch['desc'] }}

{{ $connected ? 'Connected' : 'Not connected' }} @if($connected) Send test message → @endif
@if($connected) @endif
@endforeach
{{-- Configure Modal --}} @if($configuringChannel) @endif