@php if($data->suggest_page_id && $page = get_page(['id' => $data->suggest_page_id])) $url = $page->getViewUrl(); else $url = $data->url; @endphp