@extends('layouts.app') @section('title', 'Edit WhatsApp Template - Tiqkets') @section('page-title', 'Edit WhatsApp Template') @section('header-action')
{{-- --}} Cancel & Go Back
@endsection @section('content')
{{ $whatsapp->template_name }}
{{ ucfirst($whatsapp->message_type) }}
This template is automatically sent to customers when: {{ $whatsapp->template_name }}
{{ $whatsapp->updated_at->format('M d, Y H:i') }}
{{-- --}} Active {{-- --}}
@csrf @method('PUT')
@if ($whatsapp->message_type === 'text') @error('message_content')
{{ $message }}
@enderror
Maximum 1000 characters 0/1000 characters
@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
@if ($whatsapp->message_type === 'text')
{{-- --}} 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
\n
For New Line (Space Event)
{{-- --}} 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
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush