@php $templates = $templates ?? collect(); $categoryCounts = $categoryCounts ?? ['all' => 0]; $statusCounts = $statusCounts ?? ['all' => 0, 'approved' => 0, 'pending' => 0, 'rejected' => 0]; $totalCount = $totalCount ?? 0; $currentCategory = $currentCategory ?? 'all'; $currentStatus = $currentStatus ?? 'all'; $currentSearch = $currentSearch ?? ''; $currentSort = $currentSort ?? 'newest'; @endphp
{{ __('Campaigns / Templates') }}

{{ __('Template') }} {{ __('library') }}.

{{ __('Pick a starter or submit your own. All templates must adhere to') }} {{ __("WhatsApp's guidelines") }} before they're approved by Meta.

@php $primaryTabs = [ ['key' => 'all', 'label' => 'All'], ['key' => 'travel', 'label' => 'Travel'], ['key' => 'healthcare', 'label' => 'Healthcare'], ['key' => 'education', 'label' => 'Education'], ]; @endphp @foreach ($primaryTabs as $tab) @php $active = $currentCategory === $tab['key']; @endphp @endforeach
@include('user.templates._cards', ['templates' => $templates])
@include('user.partials.pagination', [ 'paginator' => $templates, 'dataAttr' => 'data-tpl-page', 'label' => 'templates', ])
{{ __('Help - 01') }}
{{ __('What is a template message?') }}

{{ __('A pre-approved message format required by Meta for starting new conversations with customers outside the 24-hour service window.') }}

{{ __('Help - 02') }}
{{ __('How to improve approval times?') }}

{{ __('Keep your message body clear, avoid overly promotional language in Utility categories, and always provide sample values for variables.') }}

{{ __('Help - 03') }}
{{ __('Why was my template rejected?') }}

{{ __('Common reasons include incorrect formatting, mismatched category, or abusive content. Check the rejection reason and edit to resubmit.') }}