@extends('layouts.portal') @section('title', 'WhatsApp templates') @section('subtitle', 'Messages approved by Meta. Outside the 24-hour reply window, and for campaigns, WhatsApp only allows these. Create or edit templates in Meta WhatsApp Manager, then sync.') @section('actions') Inbox
@csrf
@endsection @section('content') @unless($waba)
Add your WhatsApp Business Account ID and token in Integrations to sync templates.
@endunless
@forelse($templates as $t) @empty @endforelse
TemplateCategoryBodyValuesStatusSynced
{{ $t->name }}
{{ $t->language }}
{{ ucfirst(strtolower((string) $t->category)) }} {{ $t->body }} {{ $t->variables }} {{ ucfirst(strtolower((string) $t->status)) }} {{ $t->synced_at?->diffForHumans() }}

No templates yet. Create them in Meta WhatsApp Manager (e.g. infotics_update: “INFOTICS update: {{1}}”, or a marketing template for new batches), then press Sync from Meta.

@endsection