{{$post->post_content ?? ''}}
@php $jsonDecodeTags = json_decode($post->post_tags); @endphp @if ($jsonDecodeTags !== null && is_array($jsonDecodeTags)) @foreach ($jsonDecodeTags as $tag) {{ $tag }} @endforeach @endif @if($post->post_video)
{{$categories->categories}}
+ Create Post
@if(count($posts) != 0)
@foreach($posts as $post)
@endif
@if($post->post_image)
@endif
@endforeach
@else
{{ $post->user->name ?? '' }}
{{ $post->created_at->diffForHumans() }}
@if($post->user_id == $user->id)
- Delete Post
- Hide Post
@if(isset($post->like))
@if($post->like->user_id != $user->id)
@else
{{--UNDOLIKE BTN--}}
@endif
@else
@endif
@foreach ($post->latest_comments as $comment)
{{ $comment->user->name ?? '' }}
{{ $comment->comment ?? '' }}
{{ $comment->created_at->diffForHumans() }}
@endforeach
@if ($post->comment->count() >= 3)
@endif
{{-- --}}