← Back to Posts

{{ $post->title }}

By {{ $post->user->name ?? 'Guest' }}

{{-- Display image if exists --}} @if($post->image) Post image @endif {{-- Display video if exists --}} @if($post->video) @endif

{{ $post->body }}

{{-- Edit/Delete Buttons (Admins only) --}} @auth('admin')
✏️ Edit
@csrf @method('DELETE')
@endauth {{-- Likes --}}
@csrf

👁️ {{ $post->views }} views

{{-- Comments --}}
Comments ({{ $post->comments->count() }})
@foreach($post->comments as $comment)
{{ $comment->name }} says:

{{ $comment->body }}

@endforeach {{-- Add Comment Form --}}
@csrf