{{-- author --}}

{{ $post->user->name }}

{{ $post->user->bio }}

{{-- --}} {{-- comment section --}} @auth @if ($errors->any())
Validation Errors
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Comment As: {{ auth()->user()->name }}

@csrf
@else

Signin to able to comment !

@endauth

Comments

{{-- user comments --}} @foreach ($comments as $comment)

{{ $comment->user->name }}

{{ $comment->body }}

@can('delete', $comment)
@csrf @method('DELETE')
@endcan
@endforeach {{-- --}}
@if (isset($post->previous))

Previous

{{ $post->previous->title }}

@else

This is the first post

@endif @if (isset($post->next))

Next

{{ $post->next->title }}

@else

This is the last post

@endif