@extends('layouts.app') @section('title', 'Edit WhatsApp Template - Tiqkets') @section('page-title', 'Edit WhatsApp Template: ' . $whatsapp->template_name) @section('header-action') Back to Templates @endsection @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.
Available Variables
{customer_name} - Customer's name
{booking_id} - Booking reference ID
{guest_count} - Number of guests
{booking_date} - Booking date
{booking_time} - Booking time
{branch_name} - Restaurant branch name
{table_no} - Table number
{wait_time} - Estimated wait time
@else
@if($whatsapp->message_content && Storage::disk('public')->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') }}

@if($whatsapp->message_content !== $whatsapp->default_content)
Modified: This template has been customized.
@endif
When is this sent?

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

Best Practices
  • Keep messages clear and concise
  • Use friendly and professional language
  • Include relevant booking details
  • Test variables work correctly
  • Reset to default if unsure
@endsection @push('scripts') @endpush