@props([ 'article', 'author' => null, 'category' => null, 'tags' => [] ]) @php $articleUrl = route('articles.show', $article->slug); $imageUrl = $article->featured_image ? (str_starts_with($article->featured_image, 'http') ? $article->featured_image : url($article->featured_image)) : url(config('seo.default_image')); $authorName = $author?->name ?? $article->author?->name ?? config('seo.site_author'); $authorUrl = $author ? route('profile.show', $author->id) : ($article->author ? route('profile.show', $article->author->id) : config('seo.site_url')); @endphp