@php $page->loadMissing('metadata'); Theme::set('page', $page); @endphp @if($page->template == 'default') {!! apply_filters(PAGE_FILTER_FRONT_PAGE_CONTENT, clean($page->content), $page) !!} @endif @if ($page->template == 'default') @php $current_url = url()->current(); $uri_parts = explode('/', $current_url); $request_url = end($uri_parts); @endphp @else {!! apply_filters(PAGE_FILTER_FRONT_PAGE_CONTENT, clean($page->content), $page) !!} @endif @if($page->template == 'homepage') @endif