@extends('layouts.admin.app', ['page' => $menuAdmin['settings']['active'] ?? '']) @section('title', 'WhatsApp Settings') @section('header_data') @php $page_title = 'WhatsApp Settings'; $page_pretitle = __('labels.admin') . " " . __('labels.settings'); @endphp @endsection @section('admin-content') @include('admin.settings.partials._header', [ 'title' => 'WhatsApp Settings', 'category' => 'integrations', ])
@csrf @foreach(($settings['abandonedCartNotificationChannels'] ?? ['push']) as $channel) @endforeach

Meta API Credentials

Webhook Setup

Template Mapping

Statuses are synced from Meta. Only approved and active templates are used for sending.
@foreach($whatsAppTemplateModules ?? [] as $moduleKey => $moduleConfig) @php $template = ($whatsAppTemplates ?? collect())->get($moduleKey); $format = old("templates.$moduleKey.parameter_format", $template?->parameter_format ?? 'positional'); $variables = old("templates.$moduleKey.variables", json_encode($template?->variables ?: \App\Support\WhatsAppTemplateCatalog::defaultVariables($moduleKey, $format), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); @endphp @endforeach
Module Template Language Format Meta Status Active Variables Mapping Sync
{{ $moduleConfig['label'] }}
{{ $moduleConfig['audience'] }} ยท {{ $moduleKey }}
Triggered by this app event.
template_name) }}" placeholder="meta_template_name"> Paste from Meta. language ?? ($settings['whatsappDefaultLanguage'] ?? 'en_US')) }}"> Example: en_US. Positional: @{{1}}. Named: @{{name}}. @php $status = $template?->status ?? 'draft'; $statusColor = match ($status) { 'approved' => 'success', 'rejected' => 'danger', 'paused' => 'warning', 'submitted' => 'info', default => 'secondary', }; @endphp {{ ucfirst($status) }} @if($template?->quality_score)
Quality: {{ $template->quality_score }}
@endif @if($template?->category)
Category: {{ $template->category }}
@endif @if($template?->rejected_reason)
Rejected: {{ $template->rejected_reason }}
@endif @if($template?->last_synced_at)
Synced: {{ $template->last_synced_at->diffForHumans() }}
@else
Not synced yet.
@endif @if($template?->sync_error)
{{ \Illuminate\Support\Str::before($template->sync_error, ' Fetched from Meta:') }}
@endif
Use this mapping. Allowed app fields: {{ implode(', ', $moduleConfig['variables']) }}

Send Test Template

@endsection @push('scripts') @endpush