{{ $page->name }}
{!! $blogBodyHtml !!}
@php $photo = $page->photos->first(); $photoUrl = ($photo && $photo->filename) ? url('assets/uploads/' . $photo->filename) : \App\Models\Page::blogPlaceholderImageUrl(); $author = $page->author; $authorProfile = $author ? $author->authorProfile : null; $authorName = ($author && $author->name) ? $author->name : 'SEO Specialist Kenya'; $authorUrl = ($authorProfile && $authorProfile->slug) ? url('author/' . $authorProfile->slug) : url('/'); $injectBeforeH2 = function (string $html, int $h2Index, string $block): string { if ($html === '' || $block === '') { return $html; } if (!preg_match_all('/