@php $bodyClass = 'article-detail'; $layout_path = 'frontend.layouts.content-sidebar'; if($item->layout_type == 'blocks') { $bodyClass .= ' article-detail--blocks'; $layout_path = 'frontend.layouts.main'; if($item->header_overlap) { $bodyClass .= ' header-over'; } } @endphp @extends($layout_path, [ 'body_class' => $bodyClass ]) @if($item->layout_type == 'blocks') @section('content')
@include('frontend.templates.components.blocks_section', ['blocks' => $item->blocks])
@stop @else @section('content-toolbar') @if(!$item->document->isEmpty() && $type != 'publication') @endif @if(!empty($item->pardot_url)) $item->title, "url" => $item->pardot_url ])) }}" data-controller="components/form-modal" data-popupid="download-modal" > @endif @include('frontend.templates.components.share_buttons') @stop @section('content-top')

@title($item->title)

@if($type == 'event') {{ event_date($item->date, $item->end_date) }} @else {{ format_date($item->date, true) }} @endif @if(!empty($item->author)) @lang('frontend.by') {{ $item->author }} @endif @if(!empty($item->location)) {{ $item->location }} @endif @if(!empty($item->type)) @lang('frontend.article_type_' . $item->type) @endif @if($type == 'event') {{ $eventsDetail->undertitle }} @endif
@stop @section('content-left') @if($item->media)
{!! getMediaImg($item->media, '800w', htmlspecialchars($item->title)) !!}
@endif
{!! $item->content ? $item->content : $item->summary !!}
@if($type == 'event' && $item->pardotForm) {{ !empty($item->pardot_button_label) ? $item->pardot_button_label : 'Register' }} @endif @if($type == 'publication' && !empty($item->pardot_url)) $item->title, "url" => $item->pardot_url ])) }}" data-controller="components/form-modal" data-popupid="download-modal" > Download Now @endif @if(!empty($item->cta)) {!! generateLink($eventsDetail->cta, 'std-button blue-button events-content-button') !!} @endif
@if(!empty($backUrl)) @lang('frontend.return_to_list') @endif @stop @endif