@extends('website_builder.agency_template.admin.layout') @section('title', 'WhatsApp Floating Chatbot Widget - Website Admin') @section('content')

WhatsApp Floating Chatbot Widget

Manage and customize your interactive floating WhatsApp Chatbot popup widget for your client website.

Preview Live Website
@if(session('success')) @endif
@csrf
WhatsApp Widget CRUD Settings

Enable or disable the floating chat widget, set the receiver WhatsApp number, screen position, header title, welcome message, icon, and preset actions.

enable_whatsapp_btn ?? true) ? 'checked' : '' }}>
Include your country code without '+' or spaces (e.g., 919876543210 for India). Leave blank to hide.
Controls where the floating WhatsApp action icon and popup window will appear on client devices.
The title/author header displayed at the top of the WhatsApp chatbot bubble window.
Default icon: fa-brands fa-whatsapp
@if(!empty($agency->whatsapp_avatar_image)) Avatar @endif
Upload a custom support agent photo or avatar icon for the header.
The main greeting message displayed inside the WhatsApp popup chat bubble when opened by visitors.
This text will be pre-loaded into the user's chat input when they click the WhatsApp button.
Quick Action Preset Buttons (Inside Chat Bubble)

Visitors can click these preset buttons inside the chatbot window to quickly populate a query message.

@php $rawPresets = $agency->whatsapp_presets_data ?? null; if (is_string($rawPresets)) { $dec = json_decode($rawPresets, true); $rawPresets = is_string($dec) ? json_decode($dec, true) : $dec; } $presets = (is_array($rawPresets) && count($rawPresets) > 0) ? $rawPresets : [ ['icon' => 'fa-solid fa-tag', 'title' => 'Ask about Pricing & Packages', 'msg' => 'Hello! I would like to inquire about your pricing and packages.'], ['icon' => 'fa-solid fa-calendar-check', 'title' => 'Book a Service / Appointment', 'msg' => 'Hi! I need help with booking a service / appointment.'], ['icon' => 'fa-solid fa-headset', 'title' => 'Connect with Customer Agent', 'msg' => 'Hello! I would like to speak directly with a representative.'] ]; @endphp
@for($i = 0; $i < 3; $i++) @php $preset = $presets[$i] ?? ['icon' => 'fa-solid fa-comment-dots', 'title' => '', 'msg' => '']; @endphp
Preset Option #{{ $i + 1 }}
@endfor
Floating Direct Call Button Settings
enable_call_btn ?? true) ? 'checked' : '' }}>
@endsection