@extends('layouts.app') @section('meta_title', $post->meta_title) @section('meta_description', $post->meta_description) @section('meta_keywords', $post->meta_keywords) @section('canonical_url', $post->canonical_url ?: route('blog.show', $post->slug)) @section('og_title', $post->og_title) @section('og_description', $post->og_description) @section('og_type', $post->og_type) @section('og_image', $post->og_image ?: $post->featured_image) @section('og_url', route('blog.show', $post->slug)) @section('twitter_title', $post->twitter_title) @section('twitter_description', $post->twitter_description) @section('twitter_image', $post->twitter_image ?: $post->featured_image) @section('twitter_card', $post->twitter_card) @push('structured_data') @if($post->schema_data) @endif @endpush @php $breadcrumbs = [ ['title' => 'Home', 'url' => route('blog.index')], ['title' => $post->category->name, 'url' => route('blog.category', $post->category->slug)], ['title' => $post->title] ]; @endphp @section('content')
{{-- Main Content --}}
{{-- Featured Image --}} @if($post->featured_image)
{{ $post->title }}
@endif
{{-- Article Meta --}}
{{ $post->category->name }} {{ str_word_count(strip_tags($post->content)) }} kata
{{-- Article Title --}}

{{ $post->title }}

{{-- Article Excerpt --}} @if($post->excerpt)
{{ $post->excerpt }}
@endif {{-- Article Content --}}
{!! nl2br(e($post->content)) !!}
{{-- Tags --}} @if($post->tags->count() > 0)

Tags:

@foreach($post->tags as $tag) #{{ $tag->name }} @endforeach
@endif {{-- Share Buttons --}}
{{-- Related Posts --}} @if($relatedPosts->count() > 0)

Artikel Terkait

@foreach($relatedPosts as $relatedPost) @endforeach
@endif
{{-- Sidebar --}}
{{-- Recent Posts --}} @if($recentPosts->count() > 0)

Artikel Terbaru

@foreach($recentPosts as $recentPost)
@if($recentPost->featured_image)
{{ $recentPost->title }}
@endif

{{ $recentPost->title }}

{{ $recentPost->published_at->format('d M Y') }}

@endforeach
@endif {{-- Table of Contents (if content is long) --}}

Daftar Isi

Artikel ini membahas tentang {{ $post->category->name }} dengan detail yang lengkap dan mudah dipahami.

@endsection