{{-- @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