@extends('client.layouts.dashboard') @section('title', 'Templates') @section('content')

Message Templates

Customize auto-reply templates for your organization

@if(request()->hasAny(['search', 'type'])) @endif
@forelse($templates as $template)
{{ $template->name }}
@if($template->type === 'auto_reply') Auto Reply @elseif($template->type === 'promotion') Promotion @endif @if($template->channel === 'sms') SMS @elseif($template->channel === 'whatsapp') WhatsApp @else Both @endif @if($template->call_type && $template->call_type !== 'all') {{ ucfirst($template->call_type) }} @endif
@csrf
{{ $template->content }}
@if($template->trigger_keywords)
Keywords
@foreach(array_slice(explode(',', $template->trigger_keywords), 0, 5) as $keyword) {{ trim($keyword) }} @endforeach @if(count(explode(',', $template->trigger_keywords)) > 5) +{{ count(explode(',', $template->trigger_keywords)) - 5 }} @endif
@endif
@empty

No templates assigned yet

Contact SuperAdmin to get templates assigned to your organization.

@endforelse
@if($templates->hasPages())
{{ $templates->withQueryString()->links() }}
@endif @endsection