@extends('layouts.app', ['title' => 'WhatsApp templates']) @section('content') @php($canManage = auth()->user()->can('automations.manage'))

WhatsApp templates

Messages Meta has approved for starting chats, broadcasts and workflow steps.

@if ($canManage)
@csrf
@endif
@error('whatsapp')
{{ $message }}
@enderror
@if ($canManage)
Add a template manually

Create and get templates approved in Meta WhatsApp Manager, then sync them, or record one here with the exact same name.

@csrf
@error('name')
{{ $message }}
@enderror
@endif
@if ($templates->isEmpty())
No templates yet.
@else
@foreach ($templates as $t) @endforeach
NameCategoryBodyStatus
{{ $t->name }}
{{ $t->language }} ยท {{ $t->variables }} {{ \Illuminate\Support\Str::plural('variable', $t->variables) }}
{{ $t->category }} {{ \Illuminate\Support\Str::limit($t->body, 160) }} {{ $t->status }} @if ($canManage)
@csrf @method('DELETE')
@endif
@endif
@endsection