@extends('layouts.app') @section('title', __('whatsappnotification::lang.whatsapp_notification') . ' - ' . __('whatsappnotification::lang.settings')) @section('content')

WhatsApp Connect

Configure Big Brains Flow / Meta Official API once, then use it for POS notifications and B2B customer login OTP.

@component('components.widget', ['class' => 'box-primary']) @slot('title') {{ __('whatsappnotification::lang.whatsapp_notification') }} — {{ __('whatsappnotification::lang.settings') }} @endslot @slot('tool') {{ __('whatsappnotification::lang.manage_templates') }} {{ __('whatsappnotification::lang.notification_logs') }} @endslot @if(session('status')) @if(session('status.success'))
{{ session('status.msg') }}
@else
{{ session('status.msg') }}
@endif @endif @php $selected_channel = !empty($settings->meta_api_key) || !empty($settings->meta_connection_id) ? 'meta_official' : 'unofficial'; @endphp
{{-- WhatsApp Connection Panel --}}

WhatsApp Connection

Use the buttons below to connect your WhatsApp account to this instance. Save your Access Token and API URL first, then click Create Instance if you don't have an Instance ID yet, or Get QR Code to scan with WhatsApp.

{!! Form::open(['route' => 'whatsappnotification.save_settings', 'method' => 'POST']) !!} {{-- Compatibility flags for the legacy sale listener. Template activation now controls the actual automation/message setup from Manage Templates. --}} @if(!empty($settings->notify_on_sale_update)) @endif {{-- API Configuration --}}

Channel Configuration


Common API Base URL

Keep this as your Big Brains Flow / MultiCRM API URL. Both official and unofficial channels use it as the base host.

{!! Form::label('api_url', __('whatsappnotification::lang.api_url') . ':') !!} {!! Form::text('api_url', $settings->api_url, ['class' => 'form-control', 'placeholder' => 'https://multicrm.bigbrainscrm.com/api/send_template']) !!}

Unofficial WhatsApp / QR Setup

Use this only if you selected Unofficial WhatsApp. Create an instance, scan QR, then use templates with provider “Unofficial”.

  1. Enter Access Token.
  2. Click Create Instance if you do not have Instance ID.
  3. Click Get QR Code and scan from WhatsApp Linked Devices.
  4. Create templates using provider “Unofficial”.
{!! Form::label('instance_id', __('whatsappnotification::lang.instance_id') . ':') !!} {!! Form::text('instance_id', $settings->instance_id, ['class' => 'form-control wa-unofficial-input', 'required', 'placeholder' => 'Your Instance ID']) !!}
{!! Form::label('access_token', __('whatsappnotification::lang.access_token') . ':') !!} {!! Form::text('access_token', $settings->access_token, ['class' => 'form-control wa-unofficial-input', 'required', 'placeholder' => 'Your Access Token']) !!}

Official Meta Cloud API Setup

Use this if you selected Official Meta Cloud API. Enter your Big Brains Flow / MultiCRM Meta API key and Meta connection ID, then create active Meta templates for B2B Login OTP, New Sale, Abandoned Cart, and Due Reminders.

  1. Enter Meta API Key from Big Brains Flow / MultiCRM API Keys.
  2. Enter Meta Connection ID from Connections page.
  3. Go to Manage Templates and create template rows with provider “Meta Official Cloud API”.
  4. For B2B OTP, create template name B2B Login OTP and body params {otp}.
{!! Form::label('meta_api_key', 'Meta API Key:') !!} {!! Form::text('meta_api_key', $settings->meta_api_key ?? '', ['class' => 'form-control wa-meta-input', 'placeholder' => 'mck_live_...']) !!}
{!! Form::label('meta_connection_id', 'Meta Connection ID:') !!} {!! Form::text('meta_connection_id', $settings->meta_connection_id ?? '', ['class' => 'form-control wa-meta-input', 'placeholder' => 'e.g. 12']) !!}
{!! Form::label('type', __('whatsappnotification::lang.message_type') . ':') !!} {!! Form::select('type', ['button' => 'Button', 'list' => 'List'], $settings->type, ['class' => 'form-control wa-unofficial-input']) !!}
{{-- Master Switch --}}

{{ __('whatsappnotification::lang.enable_module_help') }}

Message content, buttons, tags, and trigger-specific automation are now managed from Manage Templates.

{{-- Test Notification --}}

{{ __('whatsappnotification::lang.test_notification') }}




{!! Form::close() !!}
WhatsApp Connect v{{ config('whatsappnotification.module_version', '1.0') }} — {{ __('whatsappnotification::lang.powered_by') }} | bigbrainstechnolabs.com
@endcomponent @stop @section('javascript') @endsection