@extends('layouts.app', ['title' => $contact ? __tr('Send Greeting Engine Message') : __tr('Create New Greeting Engine')]) @section('content') @include('users.partials.header', [ 'title' => $contact ? __tr('Send Greeting Engine Message') : __tr('Create New Greeting Engine'), 'description' => '', ])
@if ($contact)
Contact Information
{{ __tr('Name') }}: {{ $contact->full_name }}
{{ __tr('Phone') }}: {{ $contact->wa_id }}
{{ __tr('Country') }}: {{ $contact->country?->name }}
@else @if(!getVendorSettings('test_recipient_contact'))
{{ __tr('Test Contact missing, You need to set the Test Contact first, do it under the WhatsApp Settings') }}
@endif @endif

{{ __tr('Select Template') }}

Choose a WhatsApp template to configure

@foreach ($whatsAppTemplates as $whatsAppTemplate) @php $firstComponent = $whatsAppTemplate['__data']['template']['components'][0] ?? null; @endphp @if ($firstComponent && isset($firstComponent['format']) && $firstComponent['format'] == "IMAGE") @endif @endforeach
@if ($contact)
@if(isset($carouselTemplateData) && !empty($carouselTemplateData['cards'])) @include('whatsapp-service.message-preparation', [ 'template' => $carouselTemplateData['template'], 'carouselTemplateData' => $carouselTemplateData, 'headerFormat' => null, 'headerParameters' => [], 'bodyParameters' => [], 'buttonParameters' => [], 'buttonItems' => [], 'bodyComponentText' => '', 'templateComponents' => [], 'onlyTemplatePreview' => false, 'contactDataMaps'=> $contactDataMaps ]) @else {!! $template !!} @endif
@include('whatsapp.from-phone-number')
@else @csrf
Basic Information
Content Elements
Live Preview
You can drag & drop to replace the current image.

Drag & Drop or Click to Upload

PNG, JPG supported

Preview

Upload an image to see preview

{!! $template !!}

{{ __tr('Contacts and Schedule') }}

{{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}}
@foreach($vendorContactGroups as $vendorContactGroup) @endforeach
@if (isset($allLabels) && count($allLabels) > 0)
@foreach($allLabels as $label) @endforeach
@endif
@foreach (getTimezonesArray() as $timezone) @endforeach
{{--
--}}
@include('whatsapp.from-phone-number')
@endif
@foreach(getCountryPhoneCodes() as $getCountryCode) @endforeach
@if(isAiBotAvailable()) @endif
{{ __tr('Other Information') }}
@endsection() @push('appScripts') @endpush