@if ($block->anchor_id )
@endif
@if($block->image1) {{ htmlentities($block->block_title) }} @endif
@if ($block->block_title)

@title($block->block_title)

@endif @if (!empty($heroEvent))
@include('frontend.svg.icon-calendar')
@lang('frontend.when')
@if($type == 'event') {{ event_date($item->date, $item->end_date) }} @else {{ format_date($item->date, true) }} @endif
@if($item->time)
@include('frontend.svg.icon-time')
@lang('frontend.time')
@foreach(explode("\n", $item->time) as $timeEntry){{ $timeEntry }}@endforeach
@endif
@include('frontend.svg.icon-marker')
@lang('frontend.where')
{{ $eventsDetail->location }}
@elseif ($block->block_subject)

{{ $block->block_subject }}

@endif
@if ($block->block_subtitle)

{{ $block->block_subtitle }}

@endif
{!! $block->content !!}
@php $registrationClosed = isset($type) && $type == 'event' && !empty($block->pardotForm) && $item->end_date < now()->startOfDay(); @endphp
@if(!$registrationClosed) {{ $block->form_title }} @elseif(!empty($block->pardotForm)) @lang('frontend.registration_closed') @endif
@if(!$registrationClosed && !empty($block->pardotForm))
@include("frontend.components.pardot_form", array( "pardotForm" => $block->pardotForm, "pageUrl" => getRequestUrl(), "pageTitle" => !empty($metaData->meta_title) ? $metaData->meta_title : '', "downloadUrl" => !empty($block->publication->pardot_url) ? $block->publication->pardot_url : null, "extraQueryVars" => !empty($block->publication->pardot_url) ? "File_URL=" . urlencode($block->publication->pardot_url) . "&File_Title=" . urlencode($block->publication->title) : null ))
@elseif(!empty($block->pardotForm)) @lang('frontend.registration_closed') @endif
@if ($block->block_subtitle)

{{ $block->block_subtitle }}

@endif
{!! $block->content !!}