@extends('layouts/contentLayoutMaster') @section('title', __('WhatsApp Templates')) @section('content')
@include('customer.WhatsAppTemplates._connect_account') {{-- Templates Table --}}

{{ __('locale.whatsapp_templates.templates') }} @if($gatewayId) — filtered by gateway @endif

@if($hasOwnAccount && $ownGateway)
@csrf
@endif
@forelse($templates as $template) @empty @endforelse
Name Language Category Status Variables Last Synced Actions
{{ $template->template_name }} @if($template->body_text)
{{ Str::limit($template->body_text, 60) }} @endif
{{ $template->language }} {{ $template->category->label() }} {{ $template->status->label() }} {{ $template->variable_count }} {{ $template->last_synced_at ? $template->last_synced_at->diffForHumans() : '—' }} @if($hasOwnAccount && (int) $template->user_id === (int) auth()->id()) @endif
{{ __('locale.whatsapp_templates.empty_customer') }}
{{-- Template Detail Modal --}} @endsection @section('page-script') @endsection