@php $ctaHref = $slide->cta_url ? (Str::startsWith($slide->cta_url, ['http://', 'https://']) ? $slide->cta_url : url($slide->cta_url)) : null; $cta2Href = $slide->cta2_url ? (Str::startsWith($slide->cta2_url, ['http://', 'https://']) ? $slide->cta2_url : url($slide->cta2_url)) : null; @endphp
{!! \Purifier::clean($slide->content, 'article') !!}
@if ($ctaHref)
{{ $slide->cta_text }} @if ($cta2Href) {{ $slide->cta2_text }} @endif
@endif