@extends('layouts.app') @section('title', 'Edit WhatsApp Template - Tiqkets') @section('page-title', 'Edit WhatsApp Template: ' . $whatsapp->template_name) @section('content')
Edit Template Content
@csrf @method('PUT')
@if($whatsapp->message_type === 'text')
@error('message_content')
{{ $message }}
@enderror
Maximum 1000 characters. Use clear and friendly language.
@else
@if($whatsapp->message_content && Storage::exists($whatsapp->message_content))
Current file: {{ basename($whatsapp->message_content) }}
View
@endif @error('message_content')
{{ $message }}
@enderror
@if($whatsapp->message_type === 'image') Supported formats: JPG, JPEG, PNG, GIF (Max: 5MB) @elseif($whatsapp->message_type === 'video') Supported formats: MP4, MOV, AVI (Max: 20MB) @elseif($whatsapp->message_type === 'document') Supported formats: PDF, DOC, DOCX, TXT (Max: 10MB) @elseif($whatsapp->message_type === 'sticker') Supported format: WEBP (Max: 1MB) @endif
@endif
Cancel @if($whatsapp->message_content !== $whatsapp->default_content) @csrf @endif
Template Information
Default Content:

{{ $whatsapp->default_content }}

Status: Active
Last Updated:

{{ $whatsapp->updated_at->format('M d, Y H:i') }}

Usage

This template is automatically sent to customers when: {{ $whatsapp->template_name }}

Tips
  • Keep messages clear and concise
  • Use friendly and professional language
  • Test your changes before saving
  • Reset to default if unsure
@endsection @push('scripts') @endpush