@extends('layouts.app') @section('content')

{{ $blog->title }}

@if ($blog->user) {{ $blog->user->name }} @endif @if ($blog->category) {{ $blog->category->name }} @endif @if ($blog->tags->isNotEmpty()) {{ $blog->tags->pluck('name')->join(', ') }} @endif
@if ($blog->image) {{ $blog->title }} @endif
{!! $blog->content !!}

Komentar

@if (session('success'))

{{ session('success') }}

@endif
@csrf @error('name')

{{ $message }}

@enderror @error('content')

{{ $message }}

@enderror
@forelse ($blog->blogComments()->where('is_approved', true)->latest()->get() as $comment)

{{ $comment->name }} ยท {{ $comment->created_at->diffForHumans() }}

{{ $comment->content }}

@empty

Belum ada komentar.

@endforelse
@endsection