@extends('layouts.app') @section('title', $article->title . ' - IDN Menulis') @section('description', Str::limit($article->excerpt ?? strip_tags($article->content), 160)) @section('styles') @endsection @section('content')
{{ $article->category->icon ?? '📁' }} {{ $article->category->name }}

{{ $article->title }}

@if($article->excerpt)

{{ $article->excerpt }}

@endif
{{ $article->user->full_name }}
{{ $article->user->full_name }}

{{ ucfirst($article->user->role) }}

{{ $article->published_at?->format('d M Y') }}
{{ $article->reading_time ?? 5 }} menit baca
{{ number_format($article->views_count) }} views likes {{ $article->allComments()->count() }} komentar
Ukuran:
@if($article->featured_image)
{{ $article->title }}
@else
@endif
@if($related->count() > 0) @endif
{!! $article->content !!}
@if($article->tags->count() > 0)
@foreach($article->tags as $tag) #{{ $tag->name }} @endforeach
@endif
{{ $article->user->full_name }}

{{ $article->user->full_name }}

{{ ucfirst($article->user->role) }}

{{ $article->user->bio ?? 'Penulis di IDN Menulis' }}

{{ $article->user->articles()->where('status', 'published')->count() }} artikel @if($article->user->school) {{ $article->user->school }} @endif
@auth @else Login @endauth
{{ $article->allComments()->count() }} @auth @if(auth()->user()->id === $article->user_id) @endif @endauth

Komentar ({{ $article->allComments()->count() }})

@auth @if(auth()->user()->isAdmin())
@endif @endauth
@if(!$article->comments_enabled)

Komentar untuk artikel ini telah ditutup.

@elseif(Auth::check())
{{ auth()->user()->full_name }}
@else

Masuk untuk menambahkan komentar.

@endif
@forelse($comments as $comment) @if($comment->deleted_by_admin)
Komentar dihapus {{ $comment->created_at->diffForHumans() }}

Komentar ini telah dihapus oleh Admin.

@else
{{ $comment->user->full_name }}
{{ $comment->user->full_name }} @if($comment->user->id === $article->user_id) Penulis @endif {{ $comment->created_at->diffForHumans() }}
@auth @if(auth()->user()->isAdmin())

Hapus komentar ini? Akan diganti dengan keterangan "Dihapus oleh Admin".

@endif @endauth

{{ $comment->content }}

@auth
@if($article->comments_enabled) @endif @else {{ $comment->likes_count }} @endauth @if($comment->replies->count() > 0) @endif
@auth @if($article->comments_enabled)
{{ auth()->user()->full_name }}
@endif @endauth
Memuat balasan...
@auth @if($article->comments_enabled)
Membalas
{{ auth()->user()->full_name }}
@endif @endauth
@endif @empty

Belum Ada Komentar

Jadilah yang pertama memberikan komentar!

@endforelse @if($comments->hasPages())
@endif
@endsection @section('scripts') @endsection