@extends('layouts.admin') @section('content')
{{-- Back Button --}}

{{ $article->title }}

{{ $article->created_at->format('d M Y') }}

{{ $article->description }}

@if($article->thumbnail)
@endif @if($article->subheadings->count()) @foreach($article->subheadings as $subheading)

{{ $subheading->title }}

@foreach($subheading->paragraphs as $paragraph)

{{ $paragraph->content }}

@endforeach
@endforeach @endif

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

@forelse($article->comments()->with('user')->latest()->get() as $comment)
{{ $comment->user->name }}
{{ $comment->created_at->diffForHumans() }}

{{ $comment->content }}

@csrf @method('DELETE')
@empty

Belum ada komentar.

@endforelse
@endsection