@foreach ($templateComponents as $templateComponent)
@if ($templateComponent['type'] == 'HEADER')
@if ($templateComponent['format'] != 'TEXT')
@endif
@if ($templateComponent['format'] == 'LOCATION')
@{{location_name}}
@{{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}}}"] = "{{Header $exampleHeaderTextItemIndex}}";
$exampleHeaderTextItemIndex++;
}
@endphp
@endisset