{{-- @dd($templateComponentValues) --}}
{{-- --}}
{{-- @dd($templateComponents) --}} @foreach ($templateComponents as $templateComponent) @if ($templateComponent['type'] == 'HEADER') @if ($templateComponent['format'] != 'TEXT')
@if ($templateComponent['format'] == 'LOCATION') @elseif ($templateComponent['format'] == 'VIDEO') @elseif ($templateComponent['format'] == 'IMAGE') @elseif ($templateComponent['format'] == 'DOCUMENT') @endif
@endif @if ($templateComponent['format'] == 'LOCATION')
{{ $headerItemValues['location']['name'] ?? '' }}
{{ $headerItemValues['location']['address'] ?? '' }}
@elseif ($templateComponent['format'] == 'TEXT')
@php $exampleHeaderItems = [ "\n" => '
', ]; @endphp @isset($templateComponent['example']) @php $headerTextItems = $templateComponent['example']['header_text']; $exampleHeaderTextItemIndex = 1; foreach ($headerTextItems as $headerTextItem) { $exampleHeaderItems["{{{$exampleHeaderTextItemIndex}}}"] = $headerItemValues['text'][$exampleHeaderTextItemIndex-1] ?? ''; $exampleHeaderTextItemIndex++; } @endphp @endisset
Warning: Undefined variable $templateComponent in /home/wtconnects/public_html/backup2808/resources/views/whatsapp-service/message-template-partial.blade.php on line 44

Warning: Trying to access array offset on value of type null in /home/wtconnects/public_html/backup2808/resources/views/whatsapp-service/message-template-partial.blade.php on line 44

Warning: Undefined variable $exampleHeaderItems in /home/wtconnects/public_html/backup2808/resources/views/whatsapp-service/message-template-partial.blade.php on line 44

Deprecated: strtr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/wtconnects/public_html/backup2808/resources/views/whatsapp-service/message-template-partial.blade.php on line 44

Deprecated: strtr(): Passing null to parameter #2 ($from) of type array|string is deprecated in /home/wtconnects/public_html/backup2808/resources/views/whatsapp-service/message-template-partial.blade.php on line 44

Fatal error: Uncaught TypeError: strtr(): Argument #2 ($from) must be of type array, string given in /home/wtconnects/public_html/backup2808/resources/views/whatsapp-service/message-template-partial.blade.php:44 Stack trace: #0 /home/wtconnects/public_html/backup2808/resources/views/whatsapp-service/message-template-partial.blade.php(44): strtr('', '') #1 {main} thrown in /home/wtconnects/public_html/backup2808/resources/views/whatsapp-service/message-template-partial.blade.php on line 44