@php $templateValue = fn (string $field, mixed $default = null) => old($field, $isWaTemplateRead ? $templateRow->{$field} : $default); $templatePayloadValue = fn (string $field, mixed $default = null) => old($field, $isWaTemplateRead ? data_get($templateRow->gw_payload ?? [], $field, $default) : $default); $previewButtons = collect(data_get($templateRow ?? null, 'buttons', data_get($templateRow ?? null, 'gw_payload.buttons', []))) ->filter(fn ($button) => is_array($button) && trim((string) ($button['label'] ?? '')) !== '') ->values(); $previewHeaderType = strtoupper((string) $templateValue('header_type', 'TEXT')); $previewHeaderLabel = trim((string) $templatePayloadValue('headerLabel', $templateValue('name', ''))); @endphp @if ($errors->any()) @endif @if ($isWaTemplateRead)
@else
@csrf @endif

Informasi Template

@unless ($isWaTemplateRead) @endunless
@unless ($isWaTemplateRead) @else
@endunless
@unless ($isWaTemplateRead)
@else
@endunless

Konten Pesan

Lengkapi bagian header dan isi pesan untuk template Anda.

0/60 Karakter

Upload gambar untuk header template.

0/550 Karakter

Tombol Aksi

Kembali @unless ($isWaTemplateRead) @endunless
@if ($isWaTemplateRead)
@else @endif