@props([ 'post', 'showActions' => true, ])
{{ $post->title }} @if($post->user_id !== auth()->id()) автор: {{ $post->user->name }} @endif

{{ Str::limit($post->content, 100) }}

{{ $post->created_at->diffForHumans() }} @if($showActions)
@can('update-post', $post) Edit @endcan @can('delete-post', $post)
@csrf @method('DELETE')
@endcan
@endif