@php $preview = $isPreview ?? false; $metaTitle = $article->meta_title ?: $article->title.' — Ruang Medis'; $metaDescription = $article->meta_description ?: $article->excerpt; $canonical = $preview ? null : route('articles.show',$article->slug); $schema = $preview ? null : ['@context'=>'https://schema.org','@type'=>'Article','headline'=>$article->title,'description'=>$metaDescription,'datePublished'=>$article->published_at?->toIso8601String(),'dateModified'=>$article->updated_at->toIso8601String(),'author'=>['@type'=>'Person','name'=>$article->author->name],'publisher'=>['@type'=>'Organization','name'=>config('brand.name')],'image'=>$article->coverUrl()]; @endphp
@if($preview)
Mode preview · Artikel ini belum tentu tampil untuk publik.
@endif
Info Sehat

{{ $article->title }}

{{ ($article->published_at ?: $article->updated_at)->translatedFormat('d F Y') }} · {{ $article->reading_time }} menit baca · {{ $article->author->name }}

@if($article->excerpt)

{{ $article->excerpt }}

@endif
@if($article->coverUrl())
{{ $article->cover_alt ?: $article->title }}
@endif
{!! $article->content_html !!}
@if($relatedArticles->isNotEmpty())

Bacaan sehat lainnya

@foreach($relatedArticles as $related)

{{ $related->reading_time }} menit baca

{{ $related->title }}
@endforeach
@endif