@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) }}
Automatically sent 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
@else
@if ($whatsapp->message_content && Storage::exists($whatsapp->message_content))
Current file: {{ basename($whatsapp->message_content) }}
View
@endif @error('message_content')
{{ $message }}
@enderror
@endif
@if ($whatsapp->message_type === 'text')
Available Variables
@{{ customer_name }} Customer name
@{{ booking_id }} Booking ID
@{{ guest_count }} Guests
@{{ booking_date }} Date
@{{ booking_time }} Time
@{{ branch_name }} Branch
@{{ table_no }} Table
\n New line
Best Practices
  • Keep messages short and clear
  • Use friendly language
  • Include booking details
  • Verify variables
  • Reset if unsure
@endif
@endsection @push('scripts') @endpush