@extends('layouts.app') @section('title', $article->title) @section('og_title', $article->title) @section('og_description', $article->excerpt ?? Str::limit(strip_tags($article->content), 150)) @section('og_image', $article->cover_url) @push('head') @endpush @section('content') {{-- Reading Progress Bar --}}
@if($article->category) {{ $article->category }} @endif

{{ $article->title }}

@if($article->author)
{{ strtoupper(substr($article->author, 0, 1)) }}
{{ $article->author }}
@endif {{ $article->published_at?->format('d M Y') }} {{ $article->views_count }} views @php $readTime = max(1, round(str_word_count(strip_tags($article->content ?? '')) / 200)); @endphp {{ $readTime }} min read
{{-- Cover Image --}} @if($article->cover_image)
{{ $article->title }}
@endif {{-- Article Content --}}
{!! $article->content !!}
{{-- Share Buttons --}}

Bagikan Artikel

{{-- Related Articles --}} @if(isset($relatedArticles) && $relatedArticles->isNotEmpty())

Artikel Terkait

@foreach($relatedArticles as $index => $related)
{{ $related->title }}

{{ $related->title }}

{{ $related->published_at?->diffForHumans() }}

@endforeach
@endif @endsection